libx86-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Name: libx86
  2. Version: 1.1
  3. Release: 4%{?_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. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. A library to provide support for making real-mode x86 calls with an emulated
  18. x86 processor.
  19. %package devel
  20. Summary: Development tools for programs which will use libx86
  21. Summary(ja): Development tools for programs which will use libx86
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. This package contains the static library and header file necessary for
  26. development of programs that will use libx86 to make real-mode x86 calls.
  27. %prep
  28. %setup -q
  29. %patch0 -p1
  30. %build
  31. CFLAGS="$RPM_OPT_FLAGS" make BACKEND=x86emu LIBDIR=%{_libdir} %{?_smp_mflags}
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}
  35. rm $RPM_BUILD_ROOT/%{_libdir}/*.a
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %post -p /sbin/ldconfig
  39. %postun -p /sbin/ldconfig
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc COPYRIGHT
  43. %{_libdir}/lib*.so.*
  44. %files devel
  45. %defattr(-,root,root,-)
  46. %{_libdir}/lib*.so
  47. %{_includedir}/*.h
  48. %{_libdir}/pkgconfig/x86.pc
  49. %changelog
  50. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1-4
  51. - rebuild with VineSeed environment
  52. * Fri Sep 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1-3
  53. - rebuild with rpm-4.8.1 for pkg-config file
  54. * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-2
  55. - add Patch0 to add pkgconfig
  56. * Sun Oct 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1
  57. - initial build for Vine Linux
  58. * Tue May 20 2008 Matthew Garrett <mjg@redhat.com> 1.1-3
  59. - Fix bizarre provides/obsoletes thinko
  60. * Tue May 20 2008 Matthew Garrett <mjg@redhat.com> 1.1-2
  61. - Ensure RPM_OPT_FLAGS are passed. Patch from Till Maas.
  62. * Mon May 19 2008 Matthew Garrett <mjg@redhat.com> 1.1-1
  63. - Initial packaging of libx86