diff --git a/README.md b/README.md index 7e5c0b3..5cd143b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libx86emu +Small x86 emulation library with focus of easy usage and extended execution logging functions. + diff --git a/libx86emu.spec b/libx86emu.spec new file mode 100644 index 0000000..1bcb5c0 --- /dev/null +++ b/libx86emu.spec @@ -0,0 +1,69 @@ +%define pkgver %(echo %version | tr _ -) +%define majver %(echo %version | cut -d_ -f1) +Name: libx86emu +Version: 1.1_21.6 +Release: 1mamba +Summary: A small x86 emulation library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://download.opensuse.org/source/distribution/11.2/repo/oss/suse/src/ +# autospec -x libx86emu-%{version}-%{oss_release}.src.rpm -F libx86emu-%{version}.tar.bz2 +Source: http://download.opensuse.org/source/factory/repo/oss/suse/src/libx86emu-%{pkgver}.src.rpm +#Source: libx86emu-%{version}.tar.bz2 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +License: BSD +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Small x86 emulation library with focus of easy usage and extended execution logging functions. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Small x86 emulation library with focus of easy usage and extended execution logging functions. + +This package contains static libraries and header files need for development. + +%prep +%setup -q -c -T +rpm2cpio %{SOURCE0} | cpio -id +tar xf %{name}-%{majver}.tar.bz2 + +%build +cd %{name}-%{majver} +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd %{name}-%{majver} +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/*.so.* +%doc %{name}-%{majver}/LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/*.h +%{_libdir}/*.so + +%changelog +* Sun Apr 13 2014 Silvan Calarco 1.1_21.6-1mamba +- update to 1.1_21.6 + +* Wed Feb 17 2010 Stefano Cotta Ramusino 1.1-1mamba +- package created by autospec