1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
13 summary = PCI bus related utilities.
16 The pciutils package contains various utilities for inspecting
17 and setting devices connected to the PCI bus.
20 source_dl = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
21 sources = %{thisapp}.tar.gz
25 make SHARED=yes OPT="%{CFLAGS}" PREFIX=/usr STRIP="" \
26 IDSDIR=/usr/share/hwdata ZLIB=no %{PARALLELISMFLAGS}
28 #fix lib vs. lib64 in libpci.pc (static Makefile is used)
29 sed -i "s|^libdir=.*$|libdir=/%{lib}|" lib/libpci.pc
34 mkdir -pv %{BUILDROOT}/sbin %{BUILDROOT}%{sbindir}
35 install -p lspci setpci %{BUILDROOT}/sbin
36 install -p update-pciids %{BUILDROOT}/%{sbindir}
39 mkdir -pv %{BUILDROOT}%{mandir}/man8
40 install -p -m 644 lspci.8 setpci.8 update-pciids.8 %{BUILDROOT}%{mandir}/man8
43 mkdir -pv %{BUILDROOT}/%{lib} %{BUILDROOT}%{libdir}
44 install -p lib/libpci.so.* %{BUILDROOT}/%{lib}/
45 ln -s ../../%{lib}/$(basename %{BUILDROOT}/%{lib}/*.so.*.*.*) \
46 %{BUILDROOT}%{libdir}/libpci.so
49 mkdir -pv %{BUILDROOT}%{includedir}/pci
50 install -p lib/pci.h %{BUILDROOT}%{includedir}/pci
51 install -p lib/header.h %{BUILDROOT}%{includedir}/pci
52 install -p %{DIR_SOURCE}/multilibconfig.h %{BUILDROOT}%{includedir}/pci/config.h
53 install -p lib/config.h %{BUILDROOT}%{includedir}/pci/config.%{lib}.h
54 install -p lib/types.h %{BUILDROOT}%{includedir}/pci
56 # Install pkg-config files.
57 mkdir -pv %{BUILDROOT}%{libdir}/pkgconfig
58 install -p lib/libpci.pc %{BUILDROOT}%{libdir}/pkgconfig
71 /usr/share/hwdata/pci.ids
79 package %{name}-debuginfo