libx86-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Name: libx86
  2. Version: 1.1
  3. Release: 1%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. # does not build on ppc or ppc64 yet, due to the lack of port i/o redirection
  11. # and video routing
  12. ExcludeArch: ppc ppc64
  13. %description
  14. A library to provide support for making real-mode x86 calls with an emulated
  15. x86 processor.
  16. %package devel
  17. Summary: Development tools for programs which will use libx86
  18. Summary(ja): Development tools for programs which will use libx86
  19. Group: Development/Libraries
  20. Requires: %{name} = %{version}-%{release}
  21. %description devel
  22. This package contains the static library and header file necessary for
  23. development of programs that will use libx86 to make real-mode x86 calls.
  24. %prep
  25. %setup -q
  26. %build
  27. CFLAGS="$RPM_OPT_FLAGS" make BACKEND=x86emu LIBDIR=%{_libdir} %{?_smp_mflags}
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}
  31. rm $RPM_BUILD_ROOT/%{_libdir}/*.a
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %post -p /sbin/ldconfig
  35. %postun -p /sbin/ldconfig
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc COPYRIGHT
  39. %{_libdir}/lib*.so.*
  40. %files devel
  41. %defattr(-,root,root,-)
  42. %{_libdir}/lib*.so
  43. %{_includedir}/*.h
  44. %changelog
  45. * Sun Oct 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1
  46. - initial build for Vine Linux
  47. * Tue May 20 2008 Matthew Garrett <mjg@redhat.com> 1.1-3
  48. - Fix bizarre provides/obsoletes thinko
  49. * Tue May 20 2008 Matthew Garrett <mjg@redhat.com> 1.1-2
  50. - Ensure RPM_OPT_FLAGS are passed. Patch from Till Maas.
  51. * Mon May 19 2008 Matthew Garrett <mjg@redhat.com> 1.1-1
  52. - Initial packaging of libx86