70 lines
1.9 KiB
RPMSpec
70 lines
1.9 KiB
RPMSpec
%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 <stefano.cotta@openmamba.org>
|
|
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 <silvan.calarco@mambasoft.it> 1.1_21.6-1mamba
|
|
- update to 1.1_21.6
|
|
|
|
* Wed Feb 17 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.1-1mamba
|
|
- package created by autospec
|