Package pciutils: Specfile

%define libname libpci

Name: pciutils
Version: 3.1.6
Release: alt2.M60C.1

Summary: Linux PCI utilities
License: GPL
Group: System/Kernel and hardware

Url: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%name-%version.tar.gz
Packager: Michael Shigorin <mike@altlinux.org>

Requires: pciids
Requires: %libname = %version-%release

# http://www.kernel.org/pub/software/utils/pciutils/
# http://git.kernel.org/?p=utils/pciutils/pciutils.git
# git://git.kernel.org/pub/scm/utils/pciutils/pciutils.git

Summary(ru_RU.KOI8-R): \xf5\xd4\xc9\xcc\xc9\xd4\xd9 \xc4\xcc\xd1 \xd2\xc1\xc2\xcf\xd4\xd9 \xd3 PCI \xd7 Linux
Summary(uk_UA.KOI8-U): \xf5\xd4\xc9̦\xd4\xc9 \xc4\xcc\xd1 \xd2\xcf\xc2\xcf\xd4\xc9 \xda PCI \xd7 Linux

%description
This package contains various utilities for inspecting
and setting devices connected to the PCI bus.

%description -l ru_RU.KOI8-R
\xfc\xd4\xcf\xd4 \xd0\xc1\xcb\xc5\xd4 \xd3\xcf\xc4\xc5\xd2\xd6\xc9\xd4 \xce\xc5\xd3\xcb\xcf\xcc\xd8\xcb\xcf \xd5\xd4\xc9\xcc\xc9\xd4 \xc4\xcc\xd1 \xd0\xd2\xcf\xd3\xcd\xcf\xd4\xd2\xc1 \xc9 \xce\xc1\xd3\xd4\xd2\xcf\xca\xcb\xc9
\xd5\xd3\xd4\xd2\xcf\xca\xd3\xd4\xd7, \xd0\xcf\xc4\xcb\xcc\xc0\xde\xc5\xce\xce\xd9\xc8 \xcb \xdb\xc9\xce\xc5 PCI

%description -l uk_UA.KOI8-U
\xe3\xc5\xca \xd0\xc1\xcb\xd5\xce\xcf\xcb ͦ\xd3\xd4\xc9\xd4\xd8 \xc4\xc5˦\xcc\xd8\xcb\xc1 \xd5\xd4\xc9̦\xd4 \xc4\xcc\xd1 \xd0\xc5\xd2\xc5\xc7\xcc\xd1\xc4\xd5 \xca \xce\xc1\xcc\xc1\xdb\xd4\xd5\xd7\xc1\xce\xce\xd1
\xd0\xd2\xc9\xd3\xd4\xd2ϧ\xd7, \xd1˦ Ц\xc4\xcb\xcc\xc0\xde\xc5\xce\xcf \xc4\xcf \xdb\xc9\xce\xc9 PCI

%package -n %libname
Summary: Linux PCI library
Group: System/Libraries

%description -n %libname
This package contains shared library for inspecting and setting
devices connected to the PCI bus

%package -n %libname-devel
Summary: Linux PCI development library
Group: Development/C
Requires: %libname = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel < 2.99.1 %name-devel-static < 2.99.1

%description -n %libname-devel
This package contains PCI library headers

%prep
%setup

%build
make \
	SHARED=yes \
	OPT="%optflags" \
	PREFIX=%_prefix \
	IDSDIR=%_datadir/misc

%install
%make_install \
	SHARED=yes \
	DESTDIR=%buildroot \
	PREFIX=%_prefix \
	install install-lib

mv %buildroot%_sbindir %buildroot%_bindir
[ "%_libdir" = "%_prefix/lib" ] || {
	mv %buildroot%_prefix/lib %buildroot%_libdir
}

%files
%_bindir/lspci
%_bindir/setpci
%_man8dir/lspci*
%_man8dir/setpci*
%doc README TODO ChangeLog *.lsm

%files -n %libname
%_libdir/*.so.*

%files -n %libname-devel
%_libdir/*.so
%_includedir/*
%_pkgconfigdir/*
%_man7dir/pcilib*

%changelog
* Wed Apr 04 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 3.1.6-alt2.M60C.1
Rebuild for C6

* Sun Sep 26 2010 Michael Shigorin <mike@altlinux.org> 3.1.6-alt2
- replaced pci.ids provider: autoupdated pciids is more useful
  than manually updated hwdatabase, as discussed previously
- minor spec cleanup

* Mon Feb 15 2010 Anton Farygin <rider@altlinux.ru> 3.1.6-alt1
- new version
- pciutils: add libpci = %%version-%%release requires

* Mon Feb 16 2009 Michael Shigorin <mike@altlinux.org> 3.1.2-alt1
- 3.1.2 (forgotten push :)
  + setpci: minor bugfix

* Mon Feb 16 2009 Michael Shigorin <mike@altlinux.org> 3.1.1-alt1
- 3.1.1
  + many decoding and usability enhancements
  + minor bugfixes
  + pci.ids update
- 3.0.3 included important enhancement for lspci -k (subsystem ID)

* Thu Apr 10 2008 Michael Shigorin <mike@altlinux.org> 3.0.0-alt1
- 3.0.0
  + API/ABI version bump occured

* Fri Feb 22 2008 Michael Shigorin <mike@altlinux.org> 2.99.1-alt0.2
- 2.99.1-alpha2+ (git commit a2bf30a4fd407c55e8172e2f6fd158725ccb90b6):
  + added shared library, see pcilib(7)
  + added networked PCI IDs support; see -q/-Q/-O lspci options
  + access method now chosen via -A lspci/setpci switch; -P dropped
  + reworked build system
  + "Unknown device" string replaced with "Device" not to alarm
    inexperienced users for no good reason
- dropped static library build
- reworked and renamed devel subpackage
  from %name-devel to %libname-devel

* Wed Feb 13 2008 Michael Shigorin <mike@altlinux.org> 2.2.10-alt2
- fixed build on x86_64
- added Ukrainian description

* Tue Feb 12 2008 Michael Shigorin <mike@altlinux.org> 2.2.10-alt1
- 2.2.10
  + removed pcimodules patch -- now implemented as lspci -k;
    thanks Valery Inozemtsev (shrek@) for notifying
- removed update-pciids(8) on shrek@'s request

* Sat Dec 22 2007 Michael Shigorin <mike@altlinux.org> 2.2.9-alt2
- use make install, no more installation by hand

* Sat Dec 22 2007 Michael Shigorin <mike@altlinux.org> 2.2.9-alt1
- 2.2.9
- updated patch4 (hm... is it really needed?) in git
- removed patch10 (implemented upstream)
- whoops, really do install pcimodules

* Wed Nov 15 2006 Michael Shigorin <mike@altlinux.org> 2.2.4-alt1
- fixed ugly consequence of installation by hand
  (types.h was lost while updating the version)

* Mon Oct 02 2006 Michael Shigorin <mike@altlinux.org> 2.2.4-alt0.1
- 2.2.4
- updated Source: url to primary site
- updated patch4 from Gentoo
- updated patch10
- removed patch6, patch7 (sysfs support already present)
- removed patch5 (done)
- removed patch3 (seems done another way)
- removed patch2 (done)
- removed patch1 (trivially updated but didn't make it upstream,
  wasn't spotted in other distros than Mandriva up to 10.2;
  found as removed in Annvix)
- removed patch0 (done similarly)
- removed patch9 (seems done)
- removed patch8 (pass via variable)

* Thu Dec 30 2004 Anton Farygin <rider@altlinux.ru> 2.1.11-alt10
- lspci -n segfault fixed (#5799)

* Tue Dec 28 2004 Anton Farygin <rider@altlinux.ru> 2.1.11-alt9
- text reloacations fixed in libpci

* Tue Dec 28 2004 Anton Farygin <rider@altlinux.ru> 2.1.11-alt8
- fixed memory leak into libpci (thanks to dfo)

* Thu Dec 23 2004 Anton Farygin <rider@altlinux.ru> 2.1.11-alt7
- support for sysfs (%name-sysfs.diff)
- pci.ids moved to hwdatabase package

* Fri Oct 29 2004 Anton Farygin <rider@altlinux.ru> 2.1.11-alt6
- updated pci.ids

* Wed Apr 28 2004 Anton Farygin <rider@altlinux.ru> 2.1.11-alt5
- updated pci.ids

* Wed Sep 10 2003 Rider <rider@altlinux.ru> 2.1.11-alt4
- updated pci.ids from http://pciids.sourceforge.net/ (bug #2960)

* Tue Jul 08 2003 Rider <rider@altlinux.ru> 2.1.11-alt3
- add CLASS_COMMUNICATION_MODEM to header.h

* Tue Mar 11 2003 Rider <rider@altlinux.ru> 2.1.11-alt2
- fix path to pci.ids database
- russian Summary and Description

* Mon Jan 20 2003 Konstantin Volckov <goldhead@altlinux.ru> 2.1.11-alt1
- 2.1.11

* Tue Nov 05 2002 Konstantin Volckov <goldhead@altlinux.ru> 2.1.10-alt1
- 2.1.10

* Tue Nov 20 2001 Konstantin Volckov <goldhead@altlinux.ru> 2.1.9-alt1
- 2.1.9
- Added devel-static package

* Thu Dec 14 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.8-ipl6mdk
- RE adaptions.

* Tue Nov  7 2000 Pixel <pixel@mandrakesoft.com> 2.1.8-6mdk
- add require for -devel

* Mon Sep 25 2000 Pixel <pixel@mandrakesoft.com> 2.1.8-5mdk
- include pci.ids patch from redhat

* Sun Sep  3 2000 Pixel <pixel@mandrakesoft.com> 2.1.8-4mdk
- fix the license

* Wed Jul 19 2000 Pixel <pixel@mandrakesoft.com> 2.1.8-3mdk
- BM

* Wed Jun 28 2000 Pixel <pixel@mandrakesoft.com> 2.1.8-2mdk
- cleanup
- add redhat's patch

* Tue Jun  6 2000 Pixel <pixel@mandrakesoft.com> 2.1.8-1mdk
- new version

* Tue Apr 25 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.1.6-2mdk
- move lspci to /usr/bin since it's userspace.
- Read Cardbus info only when we are root.
- Clean-up specs.

* Mon Apr 17 2000 Jeff Garzik <jgarzik@mandrakesoft.com> 2.1.6-1mdk
- 2.1.6
- new BuildRoot
- remove ExcludeArch armv4l
- add TODO as pciutils-devel documentation

* Sat Mar 25 2000 Pixel <pixel@mandrakesoft.com> 2.1.5-2mdk
- new group

* Wed Feb 16 2000 Pixel <pixel@mandrakesoft.com> 2.1.5-1mdk
- new version

* Sun Nov 21 1999 Pixel <pixel@mandrakesoft.com>
- removed %%config for pci.ids (someone was zealous here?)
- changed 0711 to 0755 for lspci (makes rpmlint happy :)

* Sun Nov  7 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- s/=>/>=//g in Requires:.

* Sun Oct 31 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- 2.1 final.

* Tue Oct 26 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- 2.1-pre8.

* Wed Oct 20 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- NMU: Build release.

* Fri Oct  1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- Add pciutils-devel package.

* Fri Aug 13 1999 Thierry Vignaud <tvignaud@mandrakesoft.com>
- 2.1pre5
- cleaning spec

* Thu Jul 15 1999 Thierry Vignaud <tvignaud@mandrakesoft.com>
- update to 2.1-pre4.tar.bz2

* Wed May 19 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- 2.0

* Wed May 05 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* Mon Apr 19 1999 Jakub Jelinek  <jj@ultra.linux.cz>
- update to 1.99.5
- fix sparc64 operation

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 2)

* Thu Feb  4 1999 Bill Nottingham <notting@redhat.com>
- initial build