/
srmio.spec
75 lines (59 loc) · 1.78 KB
/
srmio.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
Name: srmio
Version: 0.1.1~git1
Release: 1%{?dist}
Summary: SRM Powercontrol library functions
Group: System Environment/Libraries
License: GPLv2
URL: http://www.zuto.de/project/srmio
Source0: http://www.zuto.de/project/files/srmio/srmio-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: coreutils libtool
Requires: libsrmio = %{version}-%{release}
%description
Downloads from PowerControl or reads SRM files
%package -n libsrmio
Summary: Library files for %{name}
Group: Development/Libraries
Requires: libsrmio = %{version}-%{release}
%description -n libsrmio
Library to use to talk to PowerControl SRM.
%package -n libsrmio-devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: libsrmio = %{version}-%{release}
%description -n libsrmio-devel
The libsrmio-devel package contains libraries and header files for
developing applications that use libsrmio.
%prep
%setup -q -n srmio-0.1.1
%build
#chmod u+x genautomake.sh
#./genautomake.sh
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsrmio.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README LICENSE Changes
%{_mandir}/man1/*
%{_bindir}/*
%files -n libsrmio
%defattr(-,root,root,-)
%doc README LICENSE Changes
%{_libdir}/libsrmio.so.*
%files -n libsrmio-devel
%defattr(-,root,root,-)
%{_libdir}/libsrmio.so
%{_includedir}/*.h
%changelog
* Sat Mar 21 2012 Gareth Coco <garethcoco@gmail.com>
- First release (srmio 0.1.0)