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