1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,41 @@ |
0 |
+Summary: System utilities to list pci devices |
|
1 |
+Name: pciutils |
|
2 |
+Version: 3.3.1 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: GPLv2 |
|
5 |
+URL: https://www.kernel.org/pub/software/utils/pciutils/ |
|
6 |
+Group: System Environment/System Utilities |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source0: https://www.kernel.org/pub/software/utils/pciutils/%{name}-%{version}.tar.gz |
|
10 |
+%define sha1 pciutils=cd93c519307addd542f6fdbcceaefc5a7d7f58bc |
|
11 |
+%description |
|
12 |
+The pciutils package contains a set of programs for listing PCI devices, inspecting their status and setting their configuration registers. |
|
13 |
+%prep |
|
14 |
+%setup -q |
|
15 |
+%build |
|
16 |
+make %{?_smp_mflags} PREFIX=%{_prefix} \ |
|
17 |
+ SHAREDIR=%{_datadir}/misc \ |
|
18 |
+ SHARED=yes |
|
19 |
+ |
|
20 |
+%install |
|
21 |
+[ %{buildroot} != "/"] && rm -rf %{buildroot}/* |
|
22 |
+make DESTDIR=%{buildroot} \ |
|
23 |
+ PREFIX=%{_prefix} \ |
|
24 |
+ SHAREDIR=%{_datadir}/misc \ |
|
25 |
+ SHARED=yes \ |
|
26 |
+ install install-lib |
|
27 |
+chmod -v 766 %{buildroot}%{_libdir}/libpci.so |
|
28 |
+ |
|
29 |
+%clean |
|
30 |
+rm -rf %{buildroot}/* |
|
31 |
+%files |
|
32 |
+%defattr(-,root,root) |
|
33 |
+%{_sbindir}/* |
|
34 |
+%{_libdir}/* |
|
35 |
+%{_includedir}/* |
|
36 |
+%{_datadir}/misc/* |
|
37 |
+%{_mandir}/* |
|
38 |
+%changelog |
|
39 |
+* Thu Jul 2 2015 Sharath George <sharathg@vmware.com> 3.3.1-1 |
|
40 |
+- Initial build. First version |