-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpiapi.spec
More file actions
74 lines (57 loc) · 1.43 KB
/
piapi.spec
File metadata and controls
74 lines (57 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Name: piapi
Version: 2.1.1
Release: 1%{?dist}
Summary: PowerInsight API communication and extensions
Group: Development/Libraries
License: GPLv2+
URL: http://github.com/pwrapi/release
Source0: piapi-%{version}.tgz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%description
The PIAPI is a collection of services that allow remote gathering
of Penguin PowerInsight samples through the use of a one-to-one pairing
between a proxy running on the host and an agent running on the
embedded PowerInsight device.
%prep
%setup -q
./autogen.sh
%build
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_libdir}/*
%{_bindir}/*
# devel
%package devel
Summary: PowerInsight API devel package
Group: Development/Libraries
Requires: piapi
%description devel
This is a development package of the PowerInsight API.
Users who want to implement their own plugins must install this
package.
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
#end devel
%package doc
Summary: Documentation files for %{name}
Group: Development/Libraries
%description doc
Examples and man for PowerInsight API.
%files doc
%defattr(-,root,root)
%{_mandir}/*/*
%docdir %{_defaultdocdir}
%changelog