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