pciutils-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: PCI bus related utilities.
  3. Summary(ja): Linux PCI ユーティリティ
  4. Name: pciutils
  5. Version: 3.3.0
  6. Release: 1%{?_dist_release}
  7. License: GPLv2+
  8. URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
  9. Group: Applications/System
  10. Source: %{name}-%{version}.tar.gz
  11. Patch2: pciutils-2.1.10-scan.patch
  12. Patch3: pciutils-havepread.patch
  13. Patch6: pciutils-2.2.1-idpath.patch
  14. Patch8: pciutils-3.3.0-multilib.patch
  15. Patch9: pciutils-dir-d.patch
  16. Patch10: pciutils-2.2.10-sparc-support.patch
  17. Patch11: pciutils-3.0.1-superh-support.patch
  18. Buildroot: %{_tmppath}/%{name}-%{version}-root
  19. ExclusiveOS: Linux
  20. BuildRequires: sed
  21. Requires: hwdata
  22. Requires: %{name}-libs = %{version}-%{release}
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. %description
  26. The pciutils package contains various utilities for inspecting and
  27. setting devices connected to the PCI bus. The utilities provided
  28. require kernel version 2.1.82 or newer (which support the
  29. /proc/bus/pci interface).
  30. %description -l ja
  31. このパッケージには PCI バスに接続された各種デバイスの状態を見たり
  32. 設定したりする為のユーティリティが収められています.
  33. このパッケージに収められたユーティリティはカーネル 2.1.82 以降
  34. (/proc/bus/pci インタフェースがサポートされているもの) を必要とします.
  35. %package devel
  36. Summary: Linux PCI development library.
  37. Summary(ja): Linux PCI 開発ライブラリ
  38. Group: Development/Libraries
  39. Requires: %{name}-libs = %{version}-%{release}
  40. %description devel
  41. This package contains a library for inspecting and setting
  42. devices connected to the PCI bus.
  43. %description devel -l ja
  44. このパッケージには PCI バスに接続された各種デバイスの状態を見たり
  45. 設定したりするのに必要なライブラリが収められています.
  46. %package libs
  47. Summary: Linux PCI library
  48. Summary(ja): Linux PCI ライブラリ
  49. Group: System Environment/Libraries
  50. %description libs
  51. This package contains a library for inspecting and setting
  52. devices connected to the PCI bus.
  53. %package static
  54. Summary: Linux PCI satic library
  55. Summary(ja): Linux PCI スタッティックライブラリ
  56. Group: System Environment/Libraries
  57. Requires: %{name}-devel = %{version}-%{release}
  58. %description static
  59. This package contains a library for inspecting and setting
  60. devices connected to the PCI bus.
  61. ## to build compat32 for x86_64 architecture support
  62. %package -n compat32-%{name}-libs
  63. Summary: Linux PCI library.
  64. Group: Development/Libraries
  65. Requires: compat32-%{name}-devel = %{version}-%{release}
  66. %description -n compat32-%{name}-libs
  67. This package contains a library for inspecting and setting
  68. devices connected to the PCI bus.
  69. %package -n compat32-%{name}-devel
  70. Summary: Linux PCI development library.
  71. Group: Development/Libraries
  72. %description -n compat32-%{name}-devel
  73. This package contains a library for inspecting and setting
  74. devices connected to the PCI bus.
  75. %prep
  76. %setup -q -n pciutils-%{version}
  77. %patch2 -p1 -b .scan
  78. %patch3 -p1 -b .pread
  79. %patch6 -p1 -b .idpath
  80. %patch8 -p1 -b .multilib
  81. %patch9 -p1 -b .dird
  82. %patch10 -p1 -b .sparc
  83. %patch11 -p1 -b .superh
  84. sed -i -e 's/^SRC=.*/SRC="http:\/\/pciids.sourceforge.net\/pci.ids"/' update-pciids.sh
  85. %build
  86. make SHARED="no" ZLIB="no" STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
  87. mv lib/libpci.a lib/libpci.a.toinstall
  88. make clean
  89. make SHARED="yes" ZLIB="no" STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
  90. #fix lib vs. lib64 in libpci.pc (static Makefile is used)
  91. sed -i -e "s|^libdir=.*$|libdir=%{_libdir}|" lib/libpci.pc
  92. %install
  93. rm -rf $RPM_BUILD_ROOT
  94. install -d $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8,%{_libdir},%{_libdir}/pkgconfig,%{_includedir}/pci}
  95. install -p lspci setpci update-pciids $RPM_BUILD_ROOT/sbin
  96. install -p lspci.8 setpci.8 update-pciids.8 $RPM_BUILD_ROOT%{_mandir}/man8
  97. install -p lib/libpci.so.*.*.* $RPM_BUILD_ROOT%{_libdir}
  98. ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/*.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpci.so
  99. mv lib/libpci.a.toinstall lib/libpci.a
  100. install -p lib/libpci.a $RPM_BUILD_ROOT%{_libdir}
  101. /sbin/ldconfig -N $RPM_BUILD_ROOT%{_libdir}
  102. install -p lib/pci.h $RPM_BUILD_ROOT%{_includedir}/pci
  103. install -p lib/header.h $RPM_BUILD_ROOT%{_includedir}/pci
  104. install -p lib/config.h $RPM_BUILD_ROOT%{_includedir}/pci
  105. install -p lib/types.h $RPM_BUILD_ROOT%{_includedir}/pci
  106. install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
  107. %post libs -p /sbin/ldconfig
  108. %postun libs -p /sbin/ldconfig
  109. %post -n compat32-%{name}-libs -p /sbin/ldconfig
  110. %postun -n compat32-%{name}-libs -p /sbin/ldconfig
  111. %files
  112. %defattr(0644, root, root, 0755)
  113. %{_mandir}/man8/*
  114. %attr(0755, root, root) /sbin/*
  115. %doc README ChangeLog pciutils.lsm
  116. %files devel
  117. %defattr(0644, root, root, 0755)
  118. %{_libdir}/libpci.so
  119. %{_libdir}/pkgconfig/libpci.pc
  120. %{_includedir}/pci
  121. %files libs
  122. %defattr(0644, root, root, 0755)
  123. %{_libdir}/libpci.so.*
  124. %files static
  125. %defattr(0644, root, root, 0755)
  126. %{_libdir}/libpci.a
  127. %if %{build_compat32}
  128. %files -n compat32-%{name}-devel
  129. %defattr(0644, root, root, 0755)
  130. %{_libdir}/libpci.so
  131. %{_libdir}/pkgconfig/libpci.pc
  132. %{_includedir}/pci
  133. %files -n compat32-%{name}-libs
  134. %defattr(0644, root, root, 0755)
  135. %{_libdir}/libpci.so.*
  136. %endif
  137. %clean
  138. rm -rf $RPM_BUILD_ROOT
  139. %changelog
  140. * Mon Dec 01 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.3.0-1
  141. - new upstream release
  142. - update Patch8 (pciutils-3.3.0-multilib.patch)
  143. * Sun Feb 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.1-1
  144. - new upstream release
  145. * Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.10-1
  146. - new upstream release
  147. * Sun Oct 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.8-1
  148. - new upstream release
  149. - remove Patch1 (pciutils-2.2.4-buf.patch)
  150. * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 3.1.2-4
  151. - rebuilt with rpm-4.8.1 for pkg-config
  152. * Sat Jul 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.2-3
  153. - add Requires: %{name}-libs = %{version}-%{release} (devel package)
  154. * Sun Jul 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.2-2
  155. - removed %%if !%%{build_compat32} case condition
  156. * Tue Apr 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.2-1
  157. - new upstream release
  158. - add shared library
  159. - split shared library to -libs
  160. - split static library to -static
  161. * Fri Nov 7 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.0.2-1
  162. - new upstream release
  163. * Sat Aug 16 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.0-1vl5
  164. - new upstream release
  165. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.2.4-1vl5
  166. - applied new versioning policy, spec in utf-8
  167. * Wed Dec 06 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.4-0vl1
  168. - new upstream release
  169. * Sun Feb 19 2006 Shu KONNO <owa@bg.wakwak.com> 2.2.1-1vl2
  170. - rebuilt for x86_64 architecture support
  171. - added compat32-* packages for x86_64 architecture support
  172. * Sun Dec 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.1-1vl1
  173. - updated to 2.2.1 based on fedora package
  174. * Mon Mar 14 2005 Bill Nottingham <notting@redhat.com> - 2.1.99.test8-8
  175. - add patch for glibc macros (#151032, <redhat-bugzilla@linuxnetz.de>)
  176. * Tue Jan 25 2005 Bill Nottingham <notting@redhat.com> - 2.1.99.test8-6
  177. - remove explicit kernel dep (#146153)
  178. * Sat Nov 16 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-4vl1
  179. - use hwdata for pci.ids database.
  180. - merged with rawhide package.
  181. - update to 2.1.10
  182. - fix dir perms on /usr/include/pci
  183. - don't forcibly strip binaries
  184. - require hwdata now that pci.ids is there
  185. - man page is now owned by root
  186. * Fri Nov 23 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.1.8-25vl1
  187. - based on 2.1.8-25 from Rawhide and rebuilt for Vine Linux
  188. * Wed Oct 17 2001 Bill Nottingham <notting@redhat.com>
  189. - dump all the patches, ship pci.ids direct out of sourceforge CVS
  190. * Wed Sep 26 2001 Bill Nottingham <notting@redhat.com>
  191. - broadcom bcm5820 id (#53592)
  192. * Fri Aug 10 2001 Bill Nottingham <notting@redhat.com>
  193. - more ids
  194. * Tue Jul 17 2001 Bill Nottingham <notting@redhat.com>
  195. - add newline in printf in PCI-X patch (#49277)
  196. * Mon Jul 9 2001 Bill Nottingham <notting@redhat.com>
  197. - update broadcom patch
  198. - add new ids from 2.4.6
  199. * Mon May 28 2001 Bill Nottingham <notting@redhat.com>
  200. - add a couple of e1000 ids
  201. * Thu Mar 22 2001 Bill Nottingham <notting@redhat.com>
  202. - another megaraid id
  203. * Wed Mar 21 2001 Bill Nottingham <notting@redhat.com>
  204. - another megaraid id
  205. * Wed Mar 14 2001 Preston Brown <pbrown@redhat.com>
  206. - LSI SCSI PCI id
  207. * Wed Feb 21 2001 Nalin Dahyabhai <nalin@redhat.com>
  208. - fix formatting problems
  209. * Wed Feb 21 2001 Preston Brown <pbrown@redhat.com>
  210. - add IBM ServeRAID entries
  211. * Tue Feb 20 2001 Preston Brown <pbrown@redhat.com>
  212. - i860 entries.
  213. * Mon Feb 19 2001 Helge Deller <hdeller@redhat.de>
  214. - added various pci ids
  215. * Fri Feb 2 2001 Bill Nottingham <notting@redhat.com>
  216. - fix mishap in fixing mishap
  217. * Thu Feb 1 2001 Bill Nottingham <notting@redhat.com>
  218. - fix apparent mishap in pci.ids update from kernel (#25520)
  219. * Tue Jan 23 2001 Bill Nottingham <notting@redhat.com>
  220. - pci.ids updates
  221. * Tue Dec 12 2000 Bill Nottingham <notting@redhat.com>
  222. - big pile of pci.ids updates
  223. * Tue Jul 25 2000 Nalin Dahyabhai <nalin@redhat.com>
  224. - clean up patches to not generate badly-formatted files
  225. * Tue Jul 25 2000 Preston Brown <pbrown@redhat.com>
  226. - Vortex fixes laroche originally applied on kudzu moved here.
  227. * Fri Jul 14 2000 Preston Brown <pbrown@redhat.com>
  228. - pci ids for i815, new ati hardware
  229. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  230. - automatic rebuild
  231. * Tue Jul 11 2000 Bill Nottingham <notting@redhat.com>
  232. - yet more IDs
  233. - PCI-X support from Matt Domsch
  234. * Fri Jul 7 2000 Bill Nottingham <notting@redhat.com>
  235. - some more QLogic ids
  236. * Mon Jun 26 2000 Bill Nottingham <notting@redhat.com>
  237. - more IDs from Dell
  238. * Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
  239. - update to 2.1.8
  240. * Fri Apr 21 2000 Bill Nottingham <notting@redhat.com>
  241. - update to 2.1.7
  242. * Mon Apr 17 2000 Bill Nottingham <notting@redhat.com>
  243. - update to 2.1.6
  244. * Fri Mar 3 2000 Bill Nottingham <notting@redhat.com>
  245. - add a couple of ids
  246. * Mon Feb 14 2000 Bill Nottingham <notting@redhat.com>
  247. - update to 2.1.5
  248. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  249. - handle compressed man pages
  250. * Mon Jan 24 2000 Bill Nottingham <notting@redhat.com>
  251. - update to 2.1.4
  252. * Thu Jan 20 2000 Bill Nottingham <notting@redhat.com>
  253. - update to 2.1.3
  254. * Fri Dec 24 1999 Bill Nottingham <notting@redhat.com>
  255. - update to 2.1.2
  256. * Tue Jun 29 1999 Bill Nottingham <notting@redhat.com>
  257. - add -devel package
  258. * Thu May 20 1999 Bill Nottingham <notting@redhat.com>
  259. - update to 2.0
  260. * Mon Apr 19 1999 Jakub Jelinek <jj@ultra.linux.cz>
  261. - update to 1.99.5
  262. - fix sparc64 operation
  263. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  264. - auto rebuild in the new build environment (release 2)
  265. * Thu Feb 4 1999 Bill Nottingham <notting@redhat.com>
  266. - initial build