| 1 | Name: libx86 |
|---|
| 2 | Version: 1.1 |
|---|
| 3 | Release: 2%{?_dist_release} |
|---|
| 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 |
|---|
| 10 | Patch0: libx86-add-pkgconfig.patch |
|---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 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 |
|---|
| 32 | %patch0 -p1 |
|---|
| 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 |
|---|
| 60 | %{_libdir}/pkgconfig/x86.pc |
|---|
| 61 | |
|---|
| 62 | %changelog |
|---|
| 63 | * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-2 |
|---|
| 64 | - add Patch0 to add pkgconfig |
|---|
| 65 | |
|---|
| 66 | * Sun Oct 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1 |
|---|
| 67 | - initial build for Vine Linux |
|---|
| 68 | |
|---|
| 69 | * Tue May 20 2008 Matthew Garrett <mjg@redhat.com> 1.1-3 |
|---|
| 70 | - Fix bizarre provides/obsoletes thinko |
|---|
| 71 | |
|---|
| 72 | * Tue May 20 2008 Matthew Garrett <mjg@redhat.com> 1.1-2 |
|---|
| 73 | - Ensure RPM_OPT_FLAGS are passed. Patch from Till Maas. |
|---|
| 74 | |
|---|
| 75 | * Mon May 19 2008 Matthew Garrett <mjg@redhat.com> 1.1-1 |
|---|
| 76 | - Initial packaging of libx86 |
|---|