libpciaccess-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libpciaccess
  3. Summary: PCI access library
  4. Summary(ja): PCI アクセスライブラリ
  5. Version: 0.13.1
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: MIT
  9. URL: http://gitweb.freedesktop.org/?p=xorg/lib/libpciaccess.git
  10. Source0: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
  11. Source1: make-libpciaccess-snapshot.sh
  12. Patch1: libpciaccess-kludge-wc-mmap.patch
  13. Patch2: libpciaccess-rom-size.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: autoconf automake libtool pkgconfig
  16. BuildRequires: xorg-x11-util-macros
  17. Requires: hwdata
  18. %description
  19. libpciaccess is a library for portable PCI access routines across multiple
  20. operating systems.
  21. %package devel
  22. Summary: PCI access library development package
  23. Summary(ja): PCI access library 開発パッケージ
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. Requires: pkgconfig
  27. %description devel
  28. Development package for libpciaccess.
  29. # compat32
  30. %package -n compat32-%{name}
  31. Summary: PCI access library
  32. Summary(ja): PCI アクセスライブラリ
  33. Group: System Environment/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. %description -n compat32-%{name}
  36. libpciaccess is a library for portable PCI access routines across multiple
  37. operating systems.
  38. %package -n compat32-%{name}-devel
  39. Summary: PCI access library development package
  40. Summary(ja): PCI access library 開発パッケージ
  41. Group: Development/Libraries
  42. Requires: %{name}-devel = %{version}-%{release}
  43. Requires: pkgconfig
  44. %description -n compat32-%{name}-devel
  45. Development package for libpciaccess.
  46. %prep
  47. %setup -q -n %{name}-%{version}
  48. %patch1 -p1 -b .wc
  49. %patch2 -p1 -b .rom-size
  50. %build
  51. ##autoreconf -v --install
  52. autoreconf -fi
  53. %configure --disable-static
  54. make %{?_smp_mflags}
  55. %install
  56. rm -rf $RPM_BUILD_ROOT
  57. make install DESTDIR=$RPM_BUILD_ROOT
  58. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  59. %clean
  60. rm -rf $RPM_BUILD_ROOT
  61. %post -p /sbin/ldconfig
  62. %postun -p /sbin/ldconfig
  63. %files
  64. %defattr(-,root,root,-)
  65. %doc COPYING AUTHORS ChangeLog
  66. %{_libdir}/libpciaccess.so.*
  67. %files devel
  68. %defattr(-,root,root,-)
  69. %{_includedir}/pciaccess.h
  70. %{_libdir}/libpciaccess.so
  71. %{_libdir}/pkgconfig/pciaccess.pc
  72. # compat32
  73. %if %{build_compat32}
  74. %files -n compat32-%{name}
  75. %defattr(-,root,root,-)
  76. %{_libdir}/libpciaccess.so.*
  77. %files -n compat32-%{name}-devel
  78. %defattr(-,root,root,-)
  79. %{_libdir}/libpciaccess.so
  80. %{_libdir}/pkgconfig/pciaccess.pc
  81. %endif
  82. %changelog
  83. * Sat Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.13.1-1
  84. - new upstream release
  85. * Sat Mar 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.13-1
  86. - new upstream release
  87. * Sat Jul 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-2
  88. - create compat32 sub packages
  89. * Sat Feb 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-1
  90. - new upstream release
  91. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.0-2
  92. - rebuild with rpm-4.8.1 for pkg-config file
  93. * Sat Jul 31 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.0-1
  94. - new upstream release
  95. - Drop the fd cache patch
  96. - added Patch2 from Fedora
  97. * Wed Nov 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.9-1
  98. - new upstream release
  99. * Mon Oct 20 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.4-1
  100. - new upstream release
  101. * Fri Jul 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.3-1
  102. - new upstream release
  103. * Mon May 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10-1
  104. - initial build for Vine Linux
  105. * Mon Apr 21 2008 Dave Airlie <airlied@redhat.com> 0.10-2
  106. - fix major problem with libpciaccess and write combining.
  107. * Thu Mar 06 2008 Adam Jackson <ajax@redhat.com> 0.10-1
  108. - libpciaccess 0.10
  109. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4.20071031
  110. - Autorebuild for GCC 4.3
  111. * Wed Jan 23 2008 Adam Jackson <ajax@redhat.com> 0.9.1-3.20071031
  112. - libpciaccess-fd-cache.patch: Cache sysfs PCI config space file
  113. descriptors for great boot speed justice.
  114. * Wed Oct 31 2007 Kristian H淡gsberg <krh@redhat.com> 0.9.1-2.20071031
  115. - New snapshot, git revision e392082abb5696c8837224da86cc0af4f21d7010.
  116. - Pick up new .so file.
  117. * Mon Sep 24 2007 Adam Jackson <ajax@redhat.com> 0.9.1-1
  118. - libpciaccess 0.9.1
  119. * Mon Aug 27 2007 Adam Jackson <ajax@redhat.com> 0.8-0.4.20070827git
  120. - New snapshot.
  121. * Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 0.8-0.3.20070712git
  122. - Rebuild for PPC toolchain bug
  123. * Thu Jul 12 2007 Adam Jackson <ajax@redhat.com> 0.8-0.2.20070712git
  124. - New snapshot. Adds VGA ROM support.
  125. * Thu May 24 2007 Adam Jackson <ajax@redhat.com> 0.8-0.1.20070524git
  126. - Initial revision.