]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pciutils/pciutils.nm
boost: Update to 1.51.0.
[people/ms/ipfire-3.x.git] / pciutils / pciutils.nm
CommitLineData
a50173a7 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
a50173a7
MT
4###############################################################################
5
802ea3af 6name = pciutils
7a1e1a9a 7version = 3.1.10
9207700e 8release = 1
a50173a7 9
802ea3af 10groups = System/Base
802ea3af
MT
11url = http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
12license = GPLv2+
13summary = PCI bus related utilities.
a50173a7 14
802ea3af
MT
15description
16 The pciutils package contains various utilities for inspecting
a50173a7 17 and setting devices connected to the PCI bus.
802ea3af
MT
18end
19
9207700e
MT
20source_dl = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
21sources = %{thisapp}.tar.gz
802ea3af
MT
22
23build
24 build
2a0a80a7 25 make SHARED=yes OPT="%{CFLAGS}" PREFIX=/usr STRIP="" \
802ea3af 26 IDSDIR=/usr/share/hwdata ZLIB=no %{PARALLELISMFLAGS}
2a0a80a7
MT
27
28 #fix lib vs. lib64 in libpci.pc (static Makefile is used)
29 sed -i "s|^libdir=.*$|libdir=/%{lib}|" lib/libpci.pc
802ea3af
MT
30 end
31
32 install
2a0a80a7
MT
33 # Install binaries.
34 mkdir -pv %{BUILDROOT}/sbin %{BUILDROOT}%{sbindir}
35 install -p lspci setpci %{BUILDROOT}/sbin
36 install -p update-pciids %{BUILDROOT}/%{sbindir}
37
38 # Install man pages.
39 mkdir -pv %{BUILDROOT}%{mandir}/man8
40 install -p -m 644 lspci.8 setpci.8 update-pciids.8 %{BUILDROOT}%{mandir}/man8
802ea3af 41
2a0a80a7
MT
42 # Install libs.
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
802ea3af 47
2a0a80a7
MT
48 # Install headers.
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
55
56 # Install pkg-config files.
57 mkdir -pv %{BUILDROOT}%{libdir}/pkgconfig
58 install -p lib/libpci.pc %{BUILDROOT}%{libdir}/pkgconfig
802ea3af
MT
59 end
60end
61
62packages
63 package %{name}
5bb8e86e 64 groups += Base
802ea3af 65 end
1f9bc2f0 66
802ea3af
MT
67 package %{name}-libs
68 template LIBS
2a0a80a7
MT
69
70 requires
71 /usr/share/hwdata/pci.ids
72 end
802ea3af 73 end
1f9bc2f0 74
802ea3af
MT
75 package %{name}-devel
76 template DEVEL
77 end
1f9bc2f0
MT
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
802ea3af 82end