libx86-vl.spec 2.2 KB

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