[521] | 1 | Name: libx86 |
---|
| 2 | Version: 1.1 |
---|
[1887] | 3 | Release: 3%{?_dist_release} |
---|
[521] | 4 | Summary: Library for making real-mode x86 calls |
---|
| 5 | |
---|
| 6 | Group: System Environment/Libraries |
---|
| 7 | License: MIT |
---|
| 8 | URL: http://www.codon.org.uk/~mjg59/libx86 |
---|
| 9 | Source0: http://www.codon.org.uk/~mjg59/libx86/downloads/%{name}-%{version}.tar.gz |
---|
[581] | 10 | Patch0: libx86-add-pkgconfig.patch |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[521] | 12 | # does not build on ppc or ppc64 yet, due to the lack of port i/o redirection |
---|
| 13 | # and video routing |
---|
| 14 | ExcludeArch: ppc ppc64 |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | A library to provide support for making real-mode x86 calls with an emulated |
---|
| 18 | x86 processor. |
---|
| 19 | |
---|
| 20 | %package devel |
---|
| 21 | Summary: Development tools for programs which will use libx86 |
---|
| 22 | Summary(ja): Development tools for programs which will use libx86 |
---|
| 23 | Group: Development/Libraries |
---|
| 24 | Requires: %{name} = %{version}-%{release} |
---|
| 25 | |
---|
| 26 | %description devel |
---|
| 27 | This package contains the static library and header file necessary for |
---|
| 28 | development of programs that will use libx86 to make real-mode x86 calls. |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q |
---|
[581] | 32 | %patch0 -p1 |
---|
[521] | 33 | |
---|
| 34 | |
---|
| 35 | %build |
---|
| 36 | CFLAGS="$RPM_OPT_FLAGS" make BACKEND=x86emu LIBDIR=%{_libdir} %{?_smp_mflags} |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | rm -rf $RPM_BUILD_ROOT |
---|
| 41 | make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} |
---|
| 42 | rm $RPM_BUILD_ROOT/%{_libdir}/*.a |
---|
| 43 | |
---|
| 44 | %clean |
---|
| 45 | rm -rf $RPM_BUILD_ROOT |
---|
| 46 | |
---|
| 47 | %post -p /sbin/ldconfig |
---|
| 48 | |
---|
| 49 | %postun -p /sbin/ldconfig |
---|
| 50 | |
---|
| 51 | %files |
---|
| 52 | %defattr(-,root,root,-) |
---|
| 53 | %doc COPYRIGHT |
---|
| 54 | %{_libdir}/lib*.so.* |
---|
| 55 | |
---|
| 56 | %files devel |
---|
| 57 | %defattr(-,root,root,-) |
---|
| 58 | %{_libdir}/lib*.so |
---|
| 59 | %{_includedir}/*.h |
---|
[581] | 60 | %{_libdir}/pkgconfig/x86.pc |
---|
[521] | 61 | |
---|
| 62 | %changelog |
---|
[1887] | 63 | * Fri Sep 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1-3 |
---|
| 64 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 65 | |
---|
[581] | 66 | * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-2 |
---|
| 67 | - add Patch0 to add pkgconfig |
---|
| 68 | |
---|
[521] | 69 | * Sun Oct 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1 |
---|
| 70 | - initial build for Vine Linux |
---|
| 71 | |
---|
| 72 | * Tue May 20 2008 Matthew Garrett <mjg@redhat.com> 1.1-3 |
---|
| 73 | - Fix bizarre provides/obsoletes thinko |
---|
| 74 | |
---|
| 75 | * Tue May 20 2008 Matthew Garrett <mjg@redhat.com> 1.1-2 |
---|
| 76 | - Ensure RPM_OPT_FLAGS are passed. Patch from Till Maas. |
---|
| 77 | |
---|
| 78 | * Mon May 19 2008 Matthew Garrett <mjg@redhat.com> 1.1-1 |
---|
| 79 | - Initial packaging of libx86 |
---|