-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathopenhpi.spec.in
93 lines (77 loc) · 2.29 KB
/
openhpi.spec.in
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Name: @HPI_PKG@
Summary: @HPI_PKG@ - implementation of SAForum Hardware Platform Interface
Version: @VERSION@
Release: 1
Copyright: BSD
URL: http://openhpi.sourceforge.net
Group: Utilities
Vendor: Intel Corporation
Packager: Andrea Brugger <andrea.l.brugger@intel.com>
Source: @HPI_PKG@-@VERSION@.tar.gz
Buildroot: /var/tmp/@HPI_PKG@-root
Summary: Library that provides SAForum's HPI
Group: Utilities
%package dev
Summary: Development files for HPI
Group: Utilities
%package examples
Summary: HPI example applications
Group: Utilities
Requires: openhpi
Requires: openhpi-dev
%description
This package contains an implementation of Service Availability Forum's
HPI specification.
%description dev
Contains additional files need for a developer to create applications
and/or middleware that depends uses the Service Availability Forum's
HPI specification
%description examples
This package contains simple example applications that utilize OpenHPI
###################################################
%prep
###################################################
###################################################
%setup
###################################################
###################################################
%build
###################################################
./configure @ac_configure_args@
make
make hpi_examples
###################################################
%install
###################################################
if
[ ! -z "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]
then
rm -rf $RPM_BUILD_ROOT
fi
make DESTDIR=$RPM_BUILD_ROOT install
###################################################
%files
###################################################
%defattr(-,root,root)
@libdir@/
###################################################
%files dev
###################################################
%defattr(-,root,root)
%dir @includedir@/openhpi
@includedir@/openhpi
###################################################
%files examples
###################################################
%defattr(-,root,root)
%dir @bindir@
@bindir@/
###################################################
%clean
###################################################
if
[ -z "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]
then
rm -rf $RPM_BUILD_ROOT
fi
rm -rf $RPM_BUILD_DIR/@HPI_PKG@-@VERSION@