~ubuntu-branches/ubuntu/wily/glusterfs/wily

« back to all changes in this revision

Viewing changes to glusterfs.spec

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2011-06-26 21:00:42 UTC
  • mfrom: (1.3.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110626210042-ps1aim0cwz06tkx1
Tags: 3.2.1-1
* New upstream release.
  - Refresh patch 02-spelling-error.
* Wrap dependencies.
* Merge libglusterfs0 and libglusterfs-dev package to glusterfs-common.
  Closes: #630147
* Use python-module.mk and remove useless python bytecode files.
  Closes: #630146

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
%define _libexecdir %{_prefix}/local/libexec/
6
6
 
7
7
# if you wish to compile an rpm without rdma support, compile like this...
8
 
# rpmbuild -ta glusterfs-3.2.0.tar.gz --without rdma
 
8
# rpmbuild -ta glusterfs-3.2.1.tar.gz --without rdma
9
9
%{?_without_rdma:%define _without_rdma --disable-ibverbs}
10
10
 
11
11
# if you wish to compile an rpm without epoll...
12
 
# rpmbuild -ta glusterfs-3.2.0.tar.gz --without epoll
 
12
# rpmbuild -ta glusterfs-3.2.1.tar.gz --without epoll
13
13
%{?_without_epoll:%define _without_epoll --disable-epoll}
14
14
 
15
15
# if you wish to compile an rpm with fusermount...
16
 
# rpmbuild -ta glusterfs-3.2.0.tar.gz --with fusermount
 
16
# rpmbuild -ta glusterfs-3.2.1.tar.gz --with fusermount
17
17
%{?_with_fusermount:%define _with_fusermount --enable-fusermount}
18
18
 
19
19
# if you wish to compile an rpm without geo-replication support, compile like this...
20
 
# rpmbuild -ta glusterfs-3.2.0.tar.gz --without geo-replication
 
20
# rpmbuild -ta glusterfs-3.2.1.tar.gz --without geo-replication
21
21
%{?_without_geo-replication:%define _without_geo-replication --disable-geo-replication}
22
22
 
23
23
Summary: Cluster File System
24
24
Name: glusterfs
25
 
Version: 3.2.0
 
25
Version: 3.2.1
26
26
Release: %{release}
27
27
License: AGPLv3+
28
28
Group: System Environment/Base
29
29
Vendor: Gluster Inc
30
30
Packager: gluster-users@gluster.org
31
31
URL: http://www.gluster.org/docs/index.php/GlusterFS
32
 
Source0: ftp://ftp.gluster.com/pub/gluster/glusterfs/3.2.0/glusterfs-3.2.0.tar.gz
 
32
Source0: ftp://ftp.gluster.com/pub/gluster/glusterfs/3.2.1/glusterfs-3.2.1.tar.gz
33
33
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
34
34
Requires(post): /sbin/chkconfig
35
35
Requires(preun): /sbin/service, /sbin/chkconfig
165
165
echo "%{_prefix}/lib64" > /etc/ld.so.conf.d/glusterfs.conf
166
166
/sbin/ldconfig
167
167
 
 
168
if [ -d /etc/glusterd/vols ]; then
 
169
#for each dir under vols, backup non-fuse .vol files  as .Vol.old
 
170
for file in `find /etc/glusterd/vols -type f ! -name *-fuse.vol `; 
 
171
do
 
172
grep ".vol" $file &> /dev/null && fname=`basename $file .vol` && dname=`dirname $file` && cp $file $dname/$fname.Vol.old 
 
173
done 
 
174
fi
 
175
 
168
176
pidof -c -o %PPID -x glusterd &> /dev/null
169
177
if [ $? -eq 0 ];
170
178
then
171
179
kill -9 `pgrep -f gsyncd.py` &> /dev/null
 
180
 
 
181
killall glusterd &> /dev/null
 
182
#add marker translator
 
183
glusterd --xlator-option *.upgrade=on
 
184
sleep 10
 
185
killall glusterd  &> /dev/null
 
186
#start glusterd normally.
172
187
/etc/init.d/glusterd restart &> /dev/null
 
188
 
 
189
else
 
190
glusterd --xlator-option *.upgrade=on
 
191
sleep 10
 
192
killall glusterd &> /dev/null
173
193
fi
174
194
 
175
195
%postun core
217
237
%{_libdir}/glusterfs/%{version}/rpc-transport/rdma*
218
238
%endif
219
239
 
 
240
%post geo-replication
 
241
#restart glusterd.
 
242
/etc/init.d/glusterd restart &> /dev/null
 
243
 
220
244
%if 0%{!?_without_geo-replication:1}
221
245
%files geo-replication
222
246
%defattr(-,root,root)