-
Notifications
You must be signed in to change notification settings - Fork 14
/
gluster-lic.spec.in
76 lines (61 loc) · 1.83 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
63
64
65
66
67
68
69
70
71
72
73
74
75
%define release 1%{?dist}
Summary: Gluster Licensing - R. I. P.
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
%define debug_package %{nil}
%define __strip /bin/true
%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}
%{__install} -d -m0755 %{buildroot}%{_initrddir}
%{__install} -p -m0755 gluster-lic-setup %{buildroot}%{_initrddir}
%{__install} -p -m0755 gluster-lic-register %{buildroot}%{_initrddir}
%{buildroot}/opt/gvsa/%{_lib}/permits-create.sh %{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-uninstall
/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}/permits-install.sh
/opt/gvsa/%{_lib}/permits-create.sh
/opt/gvsa/%{_lib}/libevil.so
/opt/gvsa/bin/gpgv
/opt/gvsa/etc/permits*.asc
/opt/gvsa/etc/pubring.gpg
%{_initrddir}/gluster-lic-setup
%{_initrddir}/gluster-lic-register
%post
chkconfig --del gluster-lic-setup
chkconfig --del gluster-lic-register
/opt/gvsa/%{_lib}/permits-install.sh
/opt/gvsa/bin/gluster-lic-uninstall
%{__rm} -rf /check4update*;
%changelog
* Tue Jan 11 2011 <[email protected]> - ami-tools
- Initial build.