-
Notifications
You must be signed in to change notification settings - Fork 1
/
pwrapi-ref.spec
77 lines (60 loc) · 1.69 KB
/
pwrapi-ref.spec
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
74
75
76
Name: pwrapi-ref
Version: 1.1.1
Release: 1%{?dist}
Summary: Power API reference implementation
Group: Development/Libraries
License: GPLv2+
URL: http://github.com/pwrapi/release
Source0: pwrapi-ref-%{version}.tgz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%description
The Power API reference is a reference implementation of the Power API. The main
purpose for the creation of the reference was to test the viability of the API
functions during the design of the API specification. The reference is also being
used to test implementation details such as how to interface with different types
of hardware and communication between agents. The reference is a work in progress
and only a subset of the functions listed in the specifications have been implemented.
%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: Power API devel package
Group: Development/Libraries
Requires: pwrapi-ref
%description devel
This is a development package of the Power 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 Power API.
%files doc
%defattr(-,root,root)
%{_mandir}/*/*
%{_datadir}/doc/*/*/*
%docdir %{_defaultdocdir}
%changelog