]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pciutils/pciutils.nm
ppp: Re-add ifname patch
[people/ms/ipfire-3.x.git] / pciutils / pciutils.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = pciutils
7 version = 3.2.1
8 release = 1
9
10 groups = System/Base
11 url = http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
12 license = GPLv2+
13 summary = PCI bus related utilities.
14
15 description
16 The pciutils package contains various utilities for inspecting
17 and setting devices connected to the PCI bus.
18 end
19
20 source_dl = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
21 sources = %{thisapp}.tar.gz
22
23 build
24 requires
25 kmod-devel
26 end
27
28 build
29 make SHARED=yes OPT="%{CFLAGS}" PREFIX=/usr STRIP="" \
30 IDSDIR=/usr/share/hwdata ZLIB=no %{PARALLELISMFLAGS}
31 end
32
33 install
34 # Install binaries.
35 mkdir -pv %{BUILDROOT}%{sbindir}
36 install -p lspci setpci 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
41
42 # Install libs.
43 mkdir -pv %{BUILDROOT}%{libdir}
44 install -p lib/libpci.so.%{version} %{BUILDROOT}%{libdir}
45 ln -svf libpci.so.%{version} %{BUILDROOT}%{libdir}/libpci.so
46
47 # Install headers.
48 mkdir -pv %{BUILDROOT}%{includedir}/pci
49 install -p lib/pci.h %{BUILDROOT}%{includedir}/pci
50 install -p lib/header.h %{BUILDROOT}%{includedir}/pci
51 install -p lib/config.h %{BUILDROOT}%{includedir}/pci
52 install -p lib/types.h %{BUILDROOT}%{includedir}/pci
53
54 # Install pkg-config files.
55 mkdir -pv %{BUILDROOT}%{libdir}/pkgconfig
56 install -p lib/libpci.pc %{BUILDROOT}%{libdir}/pkgconfig
57 end
58 end
59
60 packages
61 package %{name}
62 groups += Base
63 end
64
65 package %{name}-libs
66 template LIBS
67
68 requires
69 /usr/share/hwdata/pci.ids
70 end
71 end
72
73 package %{name}-devel
74 template DEVEL
75 end
76
77 package %{name}-debuginfo
78 template DEBUGINFO
79 end
80 end