forked from avati/libevil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gluster-lic.spec.in
63 lines (47 loc) · 1.29 KB
/
gluster-lic.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
%define release 1%{?dist}
Summary: Gluster Licensing
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: %{release}
License: AGPLv3+
Packager: @PACKAGE_BUGREPORT@
Group: Applications/System
URL: http://www.gluster.com
Vendor: Gluster Inc
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/service, /sbin/chkconfig
Requires(postun): /sbin/service
%description
Gluster Licensing
%prep
%setup -q
%build
%define m32flags %(if [ "%{_target_cpu}" = "i386" ]; then echo CFLAGS=-m32; fi)
./configure --prefix=/opt/gvsa --libdir=/opt/gvsa/%{_lib} %{m32flags}
%{__make}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
/etc/profile.d/gluster-lic.sh
/opt/gvsa/bin/gluster-lic-install
/opt/gvsa/bin/gluster-lic-setup
/opt/gvsa/bin/gluster-lic-request
/opt/gvsa/bin/gluster-lic-info
/opt/gvsa/bin/gluster-lic-sign
/opt/gvsa/bin/gluster-lic-register
/opt/gvsa/%{_lib}/libevil.so
/opt/gvsa/bin/gpgv
%post
cp /opt/gvsa/bin/gluster-lic-setup /etc/init.d
cp /opt/gvsa/bin/gluster-lic-register /etc/init.d
chkconfig gluster-lic-setup on
chkconfig gluster-lic-register on
%changelog
* Tue Jan 11 2011 <[email protected]> - ami-tools
- Initial build.