]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - pciutils/pciutils.nm
glibc: Disable multilib support on X86_64
[people/stevee/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
977dc8b0 7version = 3.9.0
d5df5d8d 8release = 2
a50173a7 9
802ea3af 10groups = System/Base
977dc8b0 11url = https://mj.ucw.cz/sw/pciutils/
802ea3af
MT
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
977dc8b0 20source_dl = https://mj.ucw.cz/download/linux/pci/
9207700e 21sources = %{thisapp}.tar.gz
802ea3af
MT
22
23build
0acd4b81
MT
24 requires
25 kmod-devel
26 end
27
802ea3af 28 build
2a0a80a7 29 make SHARED=yes OPT="%{CFLAGS}" PREFIX=/usr STRIP="" \
802ea3af
MT
30 IDSDIR=/usr/share/hwdata ZLIB=no %{PARALLELISMFLAGS}
31 end
32
33 install
2a0a80a7 34 # Install binaries.
0acd4b81
MT
35 mkdir -pv %{BUILDROOT}%{sbindir}
36 install -p lspci setpci update-pciids %{BUILDROOT}%{sbindir}
2a0a80a7
MT
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 42 # Install libs.
0acd4b81
MT
43 mkdir -pv %{BUILDROOT}%{libdir}
44 install -p lib/libpci.so.%{version} %{BUILDROOT}%{libdir}
45 ln -svf libpci.so.%{version} %{BUILDROOT}%{libdir}/libpci.so
802ea3af 46
2a0a80a7
MT
47 # Install headers.
48 mkdir -pv %{BUILDROOT}%{includedir}/pci
d5df5d8d
SS
49 install -p -m 644 lib/pci.h %{BUILDROOT}%{includedir}/pci
50 install -p -m 644 lib/header.h %{BUILDROOT}%{includedir}/pci
51 install -p -m 644 lib/config.h %{BUILDROOT}%{includedir}/pci
52 install -p -m 644 lib/types.h %{BUILDROOT}%{includedir}/pci
2a0a80a7
MT
53
54 # Install pkg-config files.
55 mkdir -pv %{BUILDROOT}%{libdir}/pkgconfig
56 install -p lib/libpci.pc %{BUILDROOT}%{libdir}/pkgconfig
802ea3af
MT
57 end
58end
59
60packages
61 package %{name}
5bb8e86e 62 groups += Base
802ea3af 63 end
1f9bc2f0 64
802ea3af
MT
65 package %{name}-libs
66 template LIBS
2a0a80a7
MT
67
68 requires
69 /usr/share/hwdata/pci.ids
70 end
802ea3af 71 end
1f9bc2f0 72
802ea3af
MT
73 package %{name}-devel
74 template DEVEL
75 end
1f9bc2f0
MT
76
77 package %{name}-debuginfo
78 template DEBUGINFO
79 end
802ea3af 80end