glusterd: copy snapshot object during duplication of volfile
[obnox/glusterfs.git] / glusterfs.spec.in
1 %global _hardened_build 1
2
3 %global _for_fedora_koji_builds 0
4
5 # uncomment and add '%' to use the prereltag for pre-releases
6 # %%global prereltag qa3
7
8 ##-----------------------------------------------------------------------------
9 ## All argument definitions should be placed here and keep them sorted
10 ##
11
12 # if you wish to compile an rpm with debugging...
13 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --with debug
14 %{?_with_debug:%global _with_debug --enable-debug}
15
16 # if you wish to compile an rpm with cmocka unit testing...
17 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --with cmocka
18 %{?_with_cmocka:%global _with_cmocka --enable-cmocka}
19
20 # if you wish to compile an rpm without rdma support, compile like this...
21 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without rdma
22 %{?_without_rdma:%global _without_rdma --disable-ibverbs}
23
24 # No RDMA Support on s390(x)
25 %ifarch s390 s390x
26 %global _without_rdma --disable-ibverbs
27 %endif
28
29 # if you wish to compile an rpm without epoll...
30 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without epoll
31 %{?_without_epoll:%global _without_epoll --disable-epoll}
32
33 # if you wish to compile an rpm without fusermount...
34 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without fusermount
35 %{?_without_fusermount:%global _without_fusermount --disable-fusermount}
36
37 # if you wish to compile an rpm without geo-replication support, compile like this...
38 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without georeplication
39 %{?_without_georeplication:%global _without_georeplication --disable-georeplication}
40
41 # Disable geo-replication on EL5, as its default Python is too old
42 %if ( 0%{?rhel} && 0%{?rhel} < 6 )
43 %global _without_georeplication --disable-georeplication
44 %endif
45
46 # if you wish to compile an rpm without the OCF resource agents...
47 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without ocf
48 %{?_without_ocf:%global _without_ocf --without-ocf}
49
50 # if you wish to build rpms without syslog logging, compile like this
51 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without syslog
52 %{?_without_syslog:%global _without_syslog --disable-syslog}
53
54 # disable syslog forcefully as rhel <= 6 doesn't have rsyslog or rsyslog-mmcount
55 # Fedora deprecated syslog, see 
56 #  https://fedoraproject.org/wiki/Changes/NoDefaultSyslog
57 # (And what about RHEL7?)
58 %if ( 0%{?fedora} && 0%{?fedora} >= 20 ) || ( 0%{?rhel} && 0%{?rhel} <= 6 )
59 %global _without_syslog --disable-syslog
60 %endif
61
62 # if you wish to compile an rpm without the BD map support...
63 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without bd
64 %{?_without_bd:%global _without_bd --disable-bd-xlator}
65
66 %if ( 0%{?rhel} && 0%{?rhel} < 6 || 0%{?sles_version} )
67 %define _without_bd --disable-bd-xlator
68 %endif
69
70 # if you wish to compile an rpm without the qemu-block support...
71 # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without qemu-block
72 %{?_without_qemu_block:%global _without_qemu_block --disable-qemu-block}
73
74 %if ( 0%{?rhel} && 0%{?rhel} < 6 )
75 # xlators/features/qemu-block fails to build on RHEL5, disable it
76 %define _without_qemu_block --disable-qemu-block
77 %endif
78
79 # Disable data-tiering on EL5, sqlite is too old
80 %if ( 0%{?rhel} && 0%{?rhel} < 6 )
81 %global _without_tiering --disable-tiering
82 %endif
83
84 ##-----------------------------------------------------------------------------
85 ## All %global definitions should be placed here and keep them sorted
86 ##
87
88 %if ( 0%{?fedora} && 0%{?fedora} > 16 ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
89 %global _with_systemd true
90 %endif
91
92 %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 7 )
93 %global _with_firewalld --enable-firewalld
94 %endif
95
96 %if 0%{?_tmpfilesdir:1}
97 %define _with_tmpfilesdir --with-tmpfilesdir=%{_tmpfilesdir}
98 %else
99 %define _with_tmpfilesdir --without-tmpfilesdir
100 %endif
101
102 # From https://fedoraproject.org/wiki/Packaging:Python#Macros
103 %if ( 0%{?rhel} && 0%{?rhel} <= 5 )
104 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
105 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
106 %endif
107
108 %if ( 0%{?_with_systemd:1} )
109 %define _init_enable()  /bin/systemctl enable %1.service ;
110 %define _init_disable() /bin/systemctl disable %1.service ;
111 %define _init_restart() /bin/systemctl try-restart %1.service ;
112 %define _init_start()   /bin/systemctl start %1.service ;
113 %define _init_stop()    /bin/systemctl stop %1.service ;
114 %define _init_install() install -D -p -m 0644 %1 %{buildroot}%{_unitdir}/%2.service ;
115 # can't seem to make a generic macro that works
116 %define _init_glusterd   %{_unitdir}/glusterd.service
117 %define _init_glusterfsd %{_unitdir}/glusterfsd.service
118 %else
119 %define _init_enable()  /sbin/chkconfig --add %1 ;
120 %define _init_disable() /sbin/chkconfig --del %1 ;
121 %define _init_restart() /sbin/service %1 condrestart &>/dev/null ;
122 %define _init_start()   /sbin/service %1 start &>/dev/null ;
123 %define _init_stop()    /sbin/service %1 stop &>/dev/null ;
124 %define _init_install() install -D -p -m 0755 %1 %{buildroot}%{_sysconfdir}/init.d/%2 ;
125 # can't seem to make a generic macro that works
126 %define _init_glusterd   %{_sysconfdir}/init.d/glusterd
127 %define _init_glusterfsd %{_sysconfdir}/init.d/glusterfsd
128 %endif
129
130 %if ( 0%{_for_fedora_koji_builds} )
131 %if ( 0%{?_with_systemd:1} )
132 %global glusterfsd_service glusterfsd.service
133 %else
134 %global glusterfsd_service glusterfsd.init
135 %endif
136 %endif
137
138 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
139
140 %if ( 0%{?rhel} && 0%{?rhel} < 6 )
141    # _sharedstatedir is not provided by RHEL5
142    %define _sharedstatedir /var/lib
143 %endif
144
145 # We do not want to generate useless provides and requires for xlator
146 # .so files to be set for glusterfs packages.
147 # Filter all generated:
148 #
149 # TODO: RHEL5 does not have a convenient solution
150 %if ( 0%{?rhel} == 6 )
151     # filter_setup exists in RHEL6 only
152     %filter_provides_in %{_libdir}/glusterfs/%{version}/
153     %global __filter_from_req %{?__filter_from_req} | grep -v -P '^(?!lib).*\.so.*$'
154     %filter_setup
155 %else
156     # modern rpm and current Fedora do not generate requires when the
157     # provides are filtered
158     %global __provides_exclude_from ^%{_libdir}/glusterfs/%{version}/.*$
159 %endif
160
161
162 ##-----------------------------------------------------------------------------
163 ## All package definitions should be placed here and keep them sorted
164 ##
165 Summary:          Distributed File System
166 %if ( 0%{_for_fedora_koji_builds} )
167 Name:             glusterfs
168 Version:          3.5.0
169 Release:          0.1%{?prereltag:.%{prereltag}}%{?dist}
170 Vendor:           Fedora Project
171 %else
172 Name:             @PACKAGE_NAME@
173 Version:          @PACKAGE_VERSION@
174 Release:          0.@PACKAGE_RELEASE@%{?dist}
175 Vendor:           Gluster Community
176 %endif
177 License:          GPLv2 or LGPLv3+
178 Group:            System Environment/Base
179 URL:              http://www.gluster.org/docs/index.php/GlusterFS
180 %if ( 0%{_for_fedora_koji_builds} )
181 Source0:          http://bits.gluster.org/pub/gluster/glusterfs/src/glusterfs-%{version}%{?prereltag}.tar.gz
182 Source1:          glusterd.sysconfig
183 Source2:          glusterfsd.sysconfig
184 Source6:          rhel5-load-fuse-modules
185 Source7:          glusterfsd.service
186 Source8:          glusterfsd.init
187 %else
188 Source0:          @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
189 %endif
190
191 BuildRoot:        %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
192
193 %if ( 0%{?rhel} && 0%{?rhel} <= 5 )
194 BuildRequires:    python-simplejson
195 %endif
196 %if ( 0%{?_with_systemd:1} )
197 BuildRequires:    systemd-units
198 %endif
199
200 Requires:         %{name}-libs = %{version}-%{release}
201 BuildRequires:    bison flex
202 BuildRequires:    gcc make automake libtool
203 BuildRequires:    ncurses-devel readline-devel
204 BuildRequires:    libxml2-devel openssl-devel
205 BuildRequires:    libaio-devel libacl-devel
206 BuildRequires:    python-devel
207 BuildRequires:    python-ctypes
208 BuildRequires:    userspace-rcu-devel >= 0.7
209 %if ( 0%{?rhel} && 0%{?rhel} <= 5 )
210 BuildRequires:    e2fsprogs-devel
211 %else
212 BuildRequires:    libuuid-devel
213 %endif
214 %if ( 0%{?_with_cmocka:1} )
215 BuildRequires:    libcmocka-devel >= 1.0.1
216 %endif
217 %if ( 0%{!?_without_tiering:1} )
218 BuildRequires:    sqlite-devel
219 %endif
220 %if ( 0%{!?_without_bd:1} )
221 BuildRequires:    lvm2-devel
222 %endif
223 %if ( 0%{!?_without_qemu_block:1} )
224 BuildRequires:    glib2-devel
225 %endif
226 %if ( 0%{!?_without_georeplication:1} )
227 BuildRequires:    libattr-devel
228 %endif
229
230 %if (0%{?_with_firewalld:1})
231 BuildRequires:    firewalld
232 %endif
233
234 Obsoletes:        hekafs
235 Obsoletes:        %{name}-common < %{version}-%{release}
236 Obsoletes:        %{name}-core < %{version}-%{release}
237 Obsoletes:        %{name}-ufo
238 Provides:         %{name}-common = %{version}-%{release}
239 Provides:         %{name}-core = %{version}-%{release}
240
241 %description
242 GlusterFS is a distributed file-system capable of scaling to several
243 petabytes. It aggregates various storage bricks over Infiniband RDMA
244 or TCP/IP interconnect into one large parallel network file
245 system. GlusterFS is one of the most sophisticated file systems in
246 terms of features and extensibility.  It borrows a powerful concept
247 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
248 is in user space and easily manageable.
249
250 This package includes the glusterfs binary, the glusterfsd daemon and the
251 libglusterfs and glusterfs translator modules common to both GlusterFS server
252 and client framework.
253
254 %package api
255 Summary:          GlusterFS api library
256 Group:            System Environment/Daemons
257 Requires:         %{name} = %{version}-%{release}
258 Requires:         %{name}-client-xlators = %{version}-%{release}
259 # we provide the Python package/namespace 'gluster'
260 #Provides:         python-gluster = %{version}-%{release}
261
262 %description api
263 GlusterFS is a distributed file-system capable of scaling to several
264 petabytes. It aggregates various storage bricks over Infiniband RDMA
265 or TCP/IP interconnect into one large parallel network file
266 system. GlusterFS is one of the most sophisticated file systems in
267 terms of features and extensibility.  It borrows a powerful concept
268 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
269 is in user space and easily manageable.
270
271 This package provides the glusterfs libgfapi library.
272
273 %package api-devel
274 Summary:          Development Libraries
275 Group:            Development/Libraries
276 Requires:         %{name} = %{version}-%{release}
277 Requires:         %{name}-devel = %{version}-%{release}
278 Requires:         libacl-devel
279
280 %description api-devel
281 GlusterFS is a distributed file-system capable of scaling to several
282 petabytes. It aggregates various storage bricks over Infiniband RDMA
283 or TCP/IP interconnect into one large parallel network file
284 system. GlusterFS is one of the most sophisticated file systems in
285 terms of features and extensibility.  It borrows a powerful concept
286 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
287 is in user space and easily manageable.
288
289 This package provides the api include files.
290
291 %package cli
292 Summary:          GlusterFS CLI
293 Group:            Applications/File
294 Requires:         %{name}-libs = %{version}-%{release}
295
296 %description cli
297 GlusterFS is a distributed file-system capable of scaling to several
298 petabytes. It aggregates various storage bricks over Infiniband RDMA
299 or TCP/IP interconnect into one large parallel network file
300 system. GlusterFS is one of the most sophisticated file systems in
301 terms of features and extensibility.  It borrows a powerful concept
302 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
303 is in user space and easily manageable.
304
305 This package provides the GlusterFS CLI application and its man page
306
307 %package devel
308 Summary:          Development Libraries
309 Group:            Development/Libraries
310 Requires:         %{name} = %{version}-%{release}
311 # Needed for the Glupy examples to work
312 Requires:         %{name}-extra-xlators = %{version}-%{release}
313
314 %description devel
315 GlusterFS is a distributed file-system capable of scaling to several
316 petabytes. It aggregates various storage bricks over Infiniband RDMA
317 or TCP/IP interconnect into one large parallel network file
318 system. GlusterFS is one of the most sophisticated file systems in
319 terms of features and extensibility.  It borrows a powerful concept
320 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
321 is in user space and easily manageable.
322
323 This package provides the development libraries and include files.
324
325 %package extra-xlators
326 Summary:          Extra Gluster filesystem Translators
327 Group:            Applications/File
328 # We need python-gluster rpm for gluster module's __init__.py in Python
329 # site-packages area
330 Requires:         python-gluster = %{version}-%{release}
331 Requires:         python python-ctypes
332
333 %description extra-xlators
334 GlusterFS is a distributed file-system capable of scaling to several
335 petabytes. It aggregates various storage bricks over Infiniband RDMA
336 or TCP/IP interconnect into one large parallel network file
337 system. GlusterFS is one of the most sophisticated file systems in
338 terms of features and extensibility.  It borrows a powerful concept
339 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
340 is in user space and easily manageable.
341
342 This package provides extra filesystem Translators, such as Glupy,
343 for GlusterFS.
344
345 %package fuse
346 Summary:          Fuse client
347 Group:            Applications/File
348 BuildRequires:    fuse-devel
349 Requires:         attr
350
351 Requires:         %{name} = %{version}-%{release}
352 Requires:         %{name}-client-xlators = %{version}-%{release}
353
354 Obsoletes:        %{name}-client < %{version}-%{release}
355 Provides:         %{name}-client = %{version}-%{release}
356
357 %description fuse
358 GlusterFS is a distributed file-system capable of scaling to several
359 petabytes. It aggregates various storage bricks over Infiniband RDMA
360 or TCP/IP interconnect into one large parallel network file
361 system. GlusterFS is one of the most sophisticated file systems in
362 terms of features and extensibility.  It borrows a powerful concept
363 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
364 is in user space and easily manageable.
365
366 This package provides support to FUSE based clients and inlcudes the
367 glusterfs(d) binary.
368
369 %package ganesha
370 Summary:          NFS-Ganesha configuration
371 Group:            Applications/File
372
373 Requires:         %{name}-server = %{version}-%{release}
374 Requires:         nfs-ganesha-gluster
375 Requires:         pcs
376
377 %description ganesha
378 GlusterFS is a distributed file-system capable of scaling to several
379 petabytes. It aggregates various storage bricks over Infiniband RDMA
380 or TCP/IP interconnect into one large parallel network file
381 system. GlusterFS is one of the most sophisticated file systems in
382 terms of features and extensibility.  It borrows a powerful concept
383 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
384 is in user space and easily manageable.
385
386 This package provides the configuration and related files for using
387 NFS-Ganesha as the NFS server using GlusterFS
388
389 %if ( 0%{!?_without_georeplication:1} )
390 %package geo-replication
391 Summary:          GlusterFS Geo-replication
392 Group:            Applications/File
393 Requires:         %{name} = %{version}-%{release}
394 Requires:         %{name}-server = %{version}-%{release}
395 Requires:         python python-ctypes
396 Requires:         rsync
397
398 %description geo-replication
399 GlusterFS is a distributed file-system capable of scaling to several
400 peta-bytes. It aggregates various storage bricks over Infiniband RDMA
401 or TCP/IP interconnect into one large parallel network file
402 system. GlusterFS is one of the most sophisticated file system in
403 terms of features and extensibility.  It borrows a powerful concept
404 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
405 is in userspace and easily manageable.
406
407 This package provides support to geo-replication.
408 %endif
409
410 %package libs
411 Summary:          GlusterFS common libraries
412 Group:            Applications/File
413 %if ( 0%{!?_without_syslog:1} )
414 %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
415 Requires:         rsyslog-mmjsonparse
416 %endif
417 %if ( 0%{?rhel} && 0%{?rhel} == 6 )
418 Requires:         rsyslog-mmcount
419 %endif
420 %endif
421
422 %description libs
423 GlusterFS is a distributed file-system capable of scaling to several
424 petabytes. It aggregates various storage bricks over Infiniband RDMA
425 or TCP/IP interconnect into one large parallel network file
426 system. GlusterFS is one of the most sophisticated file systems in
427 terms of features and extensibility.  It borrows a powerful concept
428 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
429 is in user space and easily manageable.
430
431 This package provides the base GlusterFS libraries
432
433 %package -n python-gluster
434 Summary:          GlusterFS python library
435 Group:            Development/Tools
436 %if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 || 0%{?sles_version} ) )
437 # EL5 does not support noarch sub-packages
438 BuildArch:        noarch
439 %endif
440 Requires:         python
441
442 %description -n python-gluster
443 GlusterFS is a distributed file-system capable of scaling to several
444 petabytes. It aggregates various storage bricks over Infiniband RDMA
445 or TCP/IP interconnect into one large parallel network file
446 system. GlusterFS is one of the most sophisticated file systems in
447 terms of features and extensibility.  It borrows a powerful concept
448 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
449 is in user space and easily manageable.
450
451 This package contains the python modules of GlusterFS and own gluster
452 namespace.
453
454
455 %if ( 0%{!?_without_rdma:1} )
456 %package rdma
457 Summary:          GlusterFS rdma support for ib-verbs
458 Group:            Applications/File
459 BuildRequires:    libibverbs-devel
460 BuildRequires:    librdmacm-devel >= 1.0.15
461 Requires:         %{name} = %{version}-%{release}
462
463 %description rdma
464 GlusterFS is a distributed file-system capable of scaling to several
465 petabytes. It aggregates various storage bricks over Infiniband RDMA
466 or TCP/IP interconnect into one large parallel network file
467 system. GlusterFS is one of the most sophisticated file systems in
468 terms of features and extensibility.  It borrows a powerful concept
469 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
470 is in user space and easily manageable.
471
472 This package provides support to ib-verbs library.
473 %endif
474
475 %package regression-tests
476 Summary:          Development Tools
477 Group:            Development/Tools
478 Requires:         %{name} = %{version}-%{release}
479 Requires:         %{name}-fuse = %{version}-%{release}
480 Requires:         %{name}-server = %{version}-%{release}
481 ## thin provisioning support
482 Requires:         lvm2 >= 2.02.89
483 Requires:         perl(App::Prove) perl(Test::Harness) gcc util-linux-ng
484 Requires:         python attr dbench file git libacl-devel net-tools
485 Requires:         nfs-utils xfsprogs yajl
486
487 %description regression-tests
488 The Gluster Test Framework, is a suite of scripts used for
489 regression testing of Gluster.
490
491 %if ( 0%{!?_without_ocf:1} )
492 %package resource-agents
493 Summary:          OCF Resource Agents for GlusterFS
494 License:          GPLv3+
495 %if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 || 0%{?sles_version} ) )
496 # EL5 does not support noarch sub-packages
497 BuildArch:        noarch
498 %endif
499 # this Group handling comes from the Fedora resource-agents package
500 %if ( 0%{?fedora} || 0%{?centos_version} || 0%{?rhel} )
501 Group:            System Environment/Base
502 %else
503 Group:            Productivity/Clustering/HA
504 %endif
505 # for glusterd
506 Requires:         %{name}-server
507 # depending on the distribution, we need pacemaker or resource-agents
508 Requires:         %{_prefix}/lib/ocf/resource.d
509
510 %description resource-agents
511 GlusterFS is a distributed file-system capable of scaling to several
512 petabytes. It aggregates various storage bricks over Infiniband RDMA
513 or TCP/IP interconnect into one large parallel network file
514 system. GlusterFS is one of the most sophisticated file systems in
515 terms of features and extensibility.  It borrows a powerful concept
516 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
517 is in user space and easily manageable.
518
519 This package provides the resource agents which plug glusterd into
520 Open Cluster Framework (OCF) compliant cluster resource managers,
521 like Pacemaker.
522 %endif
523
524 %package server
525 Summary:          Clustered file-system server
526 Group:            System Environment/Daemons
527 Requires:         %{name} = %{version}-%{release}
528 Requires:         %{name}-libs = %{version}-%{release}
529 Requires:         %{name}-cli = %{version}-%{release}
530 # some daemons (like quota) use a fuse-mount, glusterfsd is part of -fuse
531 Requires:         %{name}-fuse = %{version}-%{release}
532 # self-heal daemon, rebalance, nfs-server etc. are actually clients
533 Requires:         %{name}-client-xlators = %{version}-%{release}
534 # psmisc for killall, lvm2 for snapshot, and nfs-utils and
535 # rpcbind/portmap for gnfs server
536 Requires:         psmisc
537 Requires:         lvm2
538 Requires:         nfs-utils
539 %if ( 0%{?_with_systemd:1} )
540 Requires(post):   systemd-units
541 Requires(preun):  systemd-units
542 Requires(postun): systemd-units
543 %else
544 Requires(post):   /sbin/chkconfig
545 Requires(preun):  /sbin/service
546 Requires(preun):  /sbin/chkconfig
547 Requires(postun): /sbin/service
548 %endif
549 %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
550 Requires:         rpcbind
551 %else
552 Requires:         portmap
553 %endif
554 %if ( 0%{?rhel} && 0%{?rhel} < 6 )
555 Obsoletes:        %{name}-geo-replication = %{version}-%{release}
556 %endif
557 %if ( 0%{?rhel} && 0%{?rhel} <= 6 )
558 Requires:         python-argparse
559 %endif
560 Requires:         pyxattr
561
562 %description server
563 GlusterFS is a distributed file-system capable of scaling to several
564 petabytes. It aggregates various storage bricks over Infiniband RDMA
565 or TCP/IP interconnect into one large parallel network file
566 system. GlusterFS is one of the most sophisticated file systems in
567 terms of features and extensibility.  It borrows a powerful concept
568 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
569 is in user space and easily manageable.
570
571 This package provides the glusterfs server daemon.
572
573 %package client-xlators
574 Summary:          GlusterFS client-side translators
575 Group:            Applications/File
576
577 %description client-xlators
578 GlusterFS is a distributed file-system capable of scaling to several
579 petabytes. It aggregates various storage bricks over Infiniband RDMA
580 or TCP/IP interconnect into one large parallel network file
581 system. GlusterFS is one of the most sophisticated file systems in
582 terms of features and extensibility.  It borrows a powerful concept
583 called Translators from GNU Hurd kernel. Much of the code in GlusterFS
584 is in user space and easily manageable.
585
586 This package provides the translators needed on any GlusterFS client.
587
588 %prep
589 %setup -q -n %{name}-%{version}%{?prereltag}
590
591 %build
592 %if ( 0%{?rhel} && 0%{?rhel} < 6 )
593 CFLAGS=-DUSE_INSECURE_OPENSSL
594 export CFLAGS
595 %endif
596
597 ./autogen.sh && %configure \
598         %{?_with_cmocka} \
599         %{?_with_debug} \
600         %{?_with_tmpfilesdir} \
601         %{?_without_bd} \
602         %{?_without_epoll} \
603         %{?_without_fusermount} \
604         %{?_without_georeplication} \
605         %{?_with_firewalld} \
606         %{?_without_ocf} \
607         %{?_without_qemu_block} \
608         %{?_without_rdma} \
609         %{?_without_syslog} \
610         %{?_without_tiering}
611
612 # fix hardening and remove rpath in shlibs
613 %if ( 0%{?fedora} && 0%{?fedora} > 17 ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
614 sed -i 's| \\\$compiler_flags |&\\\$LDFLAGS |' libtool
615 %endif
616 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|' libtool
617 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|' libtool
618
619 make %{?_smp_mflags}
620
621 # Build Glupy
622 pushd xlators/features/glupy/src
623 FLAGS="$RPM_OPT_FLAGS" python setup.py build
624 popd
625
626 %check
627 make check
628
629 %install
630 rm -rf %{buildroot}
631 make install DESTDIR=%{buildroot}
632 # install the Glupy Python library in /usr/lib/python*/site-packages
633 pushd xlators/features/glupy/src
634 python setup.py install --skip-build --verbose --root %{buildroot}
635 popd
636 # Install include directory
637 install -p -m 0644 contrib/uuid/*.h \
638     %{buildroot}%{_includedir}/glusterfs/
639 %if ( 0%{_for_fedora_koji_builds} )
640 install -D -p -m 0644 %{SOURCE1} \
641     %{buildroot}%{_sysconfdir}/sysconfig/glusterd
642 install -D -p -m 0644 %{SOURCE2} \
643     %{buildroot}%{_sysconfdir}/sysconfig/glusterfsd
644 %else
645 install -D -p -m 0644 extras/glusterd-sysconfig \
646     %{buildroot}%{_sysconfdir}/sysconfig/glusterd
647 %endif
648
649 %if ( 0%{_for_fedora_koji_builds} )
650 %if ( 0%{?rhel} && 0%{?rhel} <= 5 )
651 install -D -p -m 0755 %{SOURCE6} \
652     %{buildroot}%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
653 %endif
654 %endif
655
656 mkdir -p %{buildroot}%{_localstatedir}/log/glusterd
657 mkdir -p %{buildroot}%{_localstatedir}/log/glusterfs
658 mkdir -p %{buildroot}%{_localstatedir}/log/glusterfsd
659 mkdir -p %{buildroot}%{_localstatedir}/run/gluster
660 touch %{buildroot}%{python_sitelib}/gluster/__init__.py
661
662
663 # Remove unwanted files from all the shared libraries
664 find %{buildroot}%{_libdir} -name '*.a' -delete
665 find %{buildroot}%{_libdir} -name '*.la' -delete
666
667 # Remove installed docs, the ones we want are included by %%doc, in
668 # /usr/share/doc/glusterfs or /usr/share/doc/glusterfs-x.y.z depending
669 # on the distribution
670 %if ( 0%{?fedora} && 0%{?fedora} > 19 ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
671 rm -rf %{buildroot}%{_pkgdocdir}/*
672 %else
673 rm -rf %{buildroot}%{_defaultdocdir}/%{name}
674 mkdir -p %{buildroot}%{_pkgdocdir}
675 %endif
676 head -50 ChangeLog > ChangeLog.head && mv ChangeLog.head ChangeLog
677 cat << EOM >> ChangeLog
678
679 More commit messages for this ChangeLog can be found at
680 https://forge.gluster.org/glusterfs-core/glusterfs/commits/v%{version}%{?prereltag}
681 EOM
682
683 # Remove benchmarking and other unpackaged files
684 %if ( 0%{?rhel} && 0%{?rhel} < 6 )
685 rm -rf %{buildroot}/benchmarking
686 rm -f %{buildroot}/glusterfs-mode.el
687 rm -f %{buildroot}/glusterfs.vim
688 %else
689 # make install always puts these in %%{_defaultdocdir}/%%{name} so don't
690 # use %%{_pkgdocdir}; that will be wrong on later Fedora distributions
691 rm -rf %{buildroot}%{_defaultdocdir}/%{name}/benchmarking
692 rm -f %{buildroot}%{_defaultdocdir}/%{name}/glusterfs-mode.el
693 rm -f %{buildroot}%{_defaultdocdir}/%{name}/glusterfs.vim
694 %endif
695
696 # Create working directory
697 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd
698
699 # Update configuration file to /var/lib working directory
700 sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sharedstatedir}/glusterd|g' \
701     %{buildroot}%{_sysconfdir}/glusterfs/glusterd.vol
702
703 # Install glusterfsd .service or init.d file
704 %if ( 0%{_for_fedora_koji_builds} )
705 %_init_install %{glusterfsd_service} glusterfsd
706 %endif
707
708 install -D -p -m 0644 extras/glusterfs-logrotate \
709     %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs
710
711 %if ( 0%{!?_without_georeplication:1} )
712 # geo-rep ghosts
713 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
714 touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
715 install -D -p -m 0644 extras/glusterfs-georep-logrotate \
716     %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs-georep
717 %endif
718
719 %if ( 0%{!?_without_syslog:1} )
720 %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
721 install -D -p -m 0644 extras/gluster-rsyslog-7.2.conf \
722     %{buildroot}%{_sysconfdir}/rsyslog.d/gluster.conf.example
723 %endif
724
725 %if ( 0%{?rhel} && 0%{?rhel} == 6 )
726 install -D -p -m 0644 extras/gluster-rsyslog-5.8.conf \
727     %{buildroot}%{_sysconfdir}/rsyslog.d/gluster.conf.example
728 %endif
729
730 %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
731 install -D -p -m 0644 extras/logger.conf.example \
732     %{buildroot}%{_sysconfdir}/glusterfs/logger.conf.example
733 %endif
734 %endif
735
736 # the rest of the ghosts
737 touch %{buildroot}%{_sharedstatedir}/glusterd/glusterd.info
738 touch %{buildroot}%{_sharedstatedir}/glusterd/options
739 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks
740 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1
741 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/stop
742 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/stop/post
743 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/stop/pre
744 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/start
745 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/start/post
746 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/start/pre
747 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/reset
748 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/reset/post
749 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/reset/pre
750 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/remove-brick
751 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/remove-brick/post
752 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/remove-brick/pre
753 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/add-brick
754 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/add-brick/post
755 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/add-brick/pre
756 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/set
757 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/set/post
758 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/set/pre
759 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/create
760 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/create/post
761 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/create/pre
762 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/delete
763 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/delete/post
764 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/delete/pre
765 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/copy-file
766 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/copy-file/post
767 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/copy-file/pre
768 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/gsync-create
769 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/gsync-create/post
770 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/gsync-create/pre
771 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/glustershd
772 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/peers
773 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/vols
774 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/nfs/run
775 touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/nfs-server.vol
776 touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/run/nfs.pid
777
778 %{__install} -p -m 0744 extras/hook-scripts/start/post/*.sh   \
779     %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/start/post
780 %{__install} -p -m 0744 extras/hook-scripts/stop/pre/*.sh   \
781     %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/stop/pre
782 %{__install} -p -m 0744 extras/hook-scripts/set/post/*.sh   \
783     %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/set/post
784 %{__install} -p -m 0744 extras/hook-scripts/add-brick/post/*.sh   \
785     %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/add-brick/post
786 %{__install} -p -m 0744 extras/hook-scripts/add-brick/pre/*.sh   \
787     %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/add-brick/pre
788 %{__install} -p -m 0744 extras/hook-scripts/reset/post/*.sh   \
789     %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/reset/post
790
791
792 find ./tests ./run-tests.sh -type f | cpio -pd %{buildroot}%{_prefix}/share/glusterfs
793
794 ## Install bash completion for cli
795 install -p -m 0744 -D extras/command-completion/gluster.bash \
796     %{buildroot}%{_sysconfdir}/bash_completion.d/gluster
797
798
799 %clean
800 rm -rf %{buildroot}
801
802 ##-----------------------------------------------------------------------------
803 ## All %post should be placed here and keep them sorted
804 ##
805 %post
806 %if ( 0%{!?_without_syslog:1} )
807 %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
808 %_init_restart rsyslog
809 %endif
810 %endif
811
812 %post api
813 /sbin/ldconfig
814
815 %post fuse
816 %if ( 0%{?rhel} == 5 )
817 modprobe fuse
818 %endif
819
820 %if ( 0%{!?_without_georeplication:1} )
821 %post geo-replication
822 #restart glusterd.
823 if [ $1 -ge 1 ]; then
824     %_init_restart glusterd
825 fi
826 %endif
827
828 %post libs
829 /sbin/ldconfig
830
831 %post server
832 # Legacy server
833 %_init_enable glusterd
834 %_init_enable glusterfsd
835 # ".cmd_log_history" is renamed to "cmd_history.log" in GlusterFS-3.7 .
836 # While upgrading glusterfs-server package form GlusterFS version <= 3.6 to
837 # GlusterFS version 3.7, ".cmd_log_history" should be renamed to
838 # "cmd_history.log" to retain cli command history contents.
839 if [ -f %{_localstatedir}/log/glusterfs/.cmd_log_history ]; then
840     mv %{_localstatedir}/log/glusterfs/.cmd_log_history \
841        %{_localstatedir}/log/glusterfs/cmd_history.log
842 fi
843
844 # Genuine Fedora (and EPEL) builds never put gluster files in /etc; if
845 # there are any files in /etc from a prior gluster.org install, move them
846 # to /var/lib. (N.B. Starting with 3.3.0 all gluster files are in /var/lib
847 # in gluster.org RPMs.) Be careful to copy them on the off chance that
848 # /etc and /var/lib are on separate file systems
849 if [ -d /etc/glusterd -a ! -h %{_sharedstatedir}/glusterd ]; then
850     mkdir -p %{_sharedstatedir}/glusterd
851     cp -a /etc/glusterd %{_sharedstatedir}/glusterd
852     rm -rf /etc/glusterd
853     ln -sf %{_sharedstatedir}/glusterd /etc/glusterd
854 fi
855
856 # Rename old volfiles in an RPM-standard way.  These aren't actually
857 # considered package config files, so %%config doesn't work for them.
858 if [ -d %{_sharedstatedir}/glusterd/vols ]; then
859     for file in $(find %{_sharedstatedir}/glusterd/vols -name '*.vol'); do
860         newfile=${file}.rpmsave
861         echo "warning: ${file} saved as ${newfile}"
862         cp ${file} ${newfile}
863     done
864 fi
865
866 # add marker translator
867 # but first make certain that there are no old libs around to bite us
868 # BZ 834847
869 if [ -e /etc/ld.so.conf.d/glusterfs.conf ]; then
870     rm -f /etc/ld.so.conf.d/glusterfs.conf
871     /sbin/ldconfig
872 fi
873
874 %if (0%{?_with_firewalld:1})
875 #reload service files if firewalld running
876 if $(systemctl is-active firewalld 1>/dev/null 2>&1); then
877   #firewalld-filesystem is not available for rhel7, so command used for reload.
878   firewall-cmd  --reload
879 fi
880 %endif
881
882 pidof -c -o %PPID -x glusterd &> /dev/null
883 if [ $? -eq 0 ]; then
884     kill -9 `pgrep -f gsyncd.py` &> /dev/null
885
886     killall --wait glusterd &> /dev/null
887     glusterd --xlator-option *.upgrade=on -N
888
889     #Cleaning leftover glusterd socket file which is created by glusterd in
890     #rpm_script_t context.
891     rm -rf /var/run/glusterd.socket
892
893     # glusterd _was_ running, we killed it, it exited after *.upgrade=on,
894     # so start it again
895     %_init_start glusterd
896 else
897     glusterd --xlator-option *.upgrade=on -N
898
899     #Cleaning leftover glusterd socket file which is created by glusterd in
900     #rpm_script_t context.
901     rm -rf /var/run/glusterd.socket
902 fi
903
904 ##-----------------------------------------------------------------------------
905 ## All %preun should be placed here and keep them sorted
906 ##
907 %preun server
908 if [ $1 -eq 0 ]; then
909     if [ -f %_init_glusterfsd ]; then
910         %_init_stop glusterfsd
911     fi
912     %_init_stop glusterd
913     if [ -f %_init_glusterfsd ]; then
914         %_init_disable glusterfsd
915     fi
916     %_init_disable glusterd
917 fi
918 if [ $1 -ge 1 ]; then
919     if [ -f %_init_glusterfsd ]; then
920         %_init_restart glusterfsd
921     fi
922     %_init_restart glusterd
923 fi
924
925 ##-----------------------------------------------------------------------------
926 ## All %postun should be placed here and keep them sorted
927 ##
928 %postun
929 /sbin/ldconfig
930 %if ( 0%{!?_without_syslog:1} )
931 %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
932 %_init_restart rsyslog
933 %endif
934 %endif
935
936 %postun api
937 /sbin/ldconfig
938
939 %postun server
940 %if (0%{?_with_firewalld:1})
941 #reload service files if firewalld running
942 if $(systemctl is-active firewalld 1>/dev/null 2>&1); then
943     firewall-cmd  --reload
944 fi
945 %endif
946
947
948 %postun libs
949 /sbin/ldconfig
950
951 ##-----------------------------------------------------------------------------
952 ## All files should be placed here and keep them grouped
953 ##
954 %files
955 %doc ChangeLog COPYING-GPLV2 COPYING-LGPLV3 INSTALL README.md THANKS
956 %if ( 0%{!?_without_syslog:1} )
957 %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
958 %{_sysconfdir}/rsyslog.d/gluster.conf.example
959 %endif
960 %endif
961 %{_mandir}/man8/*gluster*.8*
962 %exclude %{_mandir}/man8/gluster.8*
963 %dir %{_localstatedir}/log/glusterfs
964 %if ( 0%{!?_without_rdma:1} )
965 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport/rdma*
966 %endif
967 %dir %{_datadir}/glusterfs/scripts
968 %{_datadir}/glusterfs/scripts/post-upgrade-script-for-quota.sh
969 %{_datadir}/glusterfs/scripts/pre-upgrade-script-for-quota.sh
970 # xlators that are needed on the client- and on the server-side
971 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/auth
972 %{_libdir}/glusterfs/%{version}%{?prereltag}/auth/addr.so
973 %{_libdir}/glusterfs/%{version}%{?prereltag}/auth/login.so
974 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport
975 %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport/socket.so
976 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug
977 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug/error-gen.so
978 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug/io-stats.so
979 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/debug/trace.so
980 %if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 ) )
981 # RHEL-5 based distributions have a too old openssl
982 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption/crypt.so
983 %endif
984 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/access-control.so
985 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/barrier.so
986 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/cdc.so
987 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/changelog.so
988 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/gfid-access.so
989 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/read-only.so
990 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/shard.so
991 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/snapview-client.so
992 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/worm.so
993 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/meta.so
994 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/io-cache.so
995 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/io-threads.so
996 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/md-cache.so
997 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/open-behind.so
998 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/quick-read.so
999 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/read-ahead.so
1000 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/readdir-ahead.so
1001 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/stat-prefetch.so
1002 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/write-behind.so
1003 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/system/posix-acl.so
1004
1005
1006 %files api
1007 %exclude %{_libdir}/*.so
1008 # libgfapi files
1009 %{_libdir}/libgfapi.*
1010 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount/api.so
1011
1012 %files api-devel
1013 %{_libdir}/pkgconfig/glusterfs-api.pc
1014 %{_libdir}/libgfapi.so
1015 %{_includedir}/glusterfs/api/*
1016
1017 %files cli
1018 %{_sbindir}/gluster
1019 %{_mandir}/man8/gluster.8*
1020 %{_sysconfdir}/bash_completion.d/gluster
1021
1022 %files devel
1023 %dir %{_includedir}/glusterfs
1024 %{_includedir}/glusterfs/*
1025 %exclude %{_includedir}/glusterfs/api
1026 %exclude %{_libdir}/libgfapi.so
1027 %{_libdir}/*.so
1028 # Glupy Translator examples
1029 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/debug-trace.*
1030 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/helloworld.*
1031 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/negative.*
1032 %{_libdir}/pkgconfig/libgfchangelog.pc
1033 %if ( 0%{!?_without_tiering:1} )
1034 %{_libdir}/pkgconfig/libgfdb.pc
1035 %endif
1036
1037 %files client-xlators
1038 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/cluster/*.so
1039 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/cluster/pump.so
1040 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/ganesha.so
1041 %if ( 0%{!?_without_qemu_block:1} )
1042 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/qemu-block.so
1043 %endif
1044 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/client.so
1045
1046 %files extra-xlators
1047 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption/rot-13.so
1048 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy.so
1049 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/mac-compat.so
1050 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/prot_client.so
1051 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/prot_dht.so
1052 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/prot_server.so
1053 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quiesce.so
1054 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/features/template.so
1055 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/performance/symlink-cache.so
1056 # Glupy Python files
1057 %{python_sitelib}/gluster/glupy/*
1058 # Don't expect a .egg-info file on EL5
1059 %if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 ) )
1060 %{python_sitelib}/glusterfs_glupy*.egg-info
1061 %endif
1062
1063 %files fuse
1064 # glusterfs is a symlink to glusterfsd, -server depends on -fuse.
1065 %{_sbindir}/glusterfs
1066 %{_sbindir}/glusterfsd
1067 %config(noreplace) %{_sysconfdir}/logrotate.d/glusterfs
1068 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount/fuse.so
1069 /sbin/mount.glusterfs
1070 %if ( 0%{!?_without_fusermount:1} )
1071 %{_bindir}/fusermount-glusterfs
1072 %endif
1073 %if ( 0%{_for_fedora_koji_builds} )
1074 %if ( 0%{?rhel} && 0%{?rhel} <= 5 )
1075 %{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
1076 %endif
1077 %endif
1078
1079 %files ganesha
1080 %{_sysconfdir}/ganesha/*
1081 %attr(0755,-,-) %{_libexecdir}/ganesha/*
1082 %attr(0755,-,-) %{_prefix}/lib/ocf/resource.d/heartbeat/*
1083
1084 %if ( 0%{!?_without_georeplication:1} )
1085 %files geo-replication
1086 %config(noreplace) %{_sysconfdir}/logrotate.d/glusterfs-georep
1087 %{_libexecdir}/glusterfs/gsyncd
1088 %{_libexecdir}/glusterfs/python/syncdaemon/*
1089 %{_libexecdir}/glusterfs/gverify.sh
1090 %{_libexecdir}/glusterfs/set_geo_rep_pem_keys.sh
1091 %{_libexecdir}/glusterfs/peer_gsec_create
1092 %{_libexecdir}/glusterfs/peer_mountbroker
1093 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/geo-replication
1094 %dir %{_sharedstatedir}/glusterd/hooks
1095 %dir %{_sharedstatedir}/glusterd/hooks/1
1096 %dir %{_sharedstatedir}/glusterd/hooks/1/gsync-create
1097 %dir %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post
1098 %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post/S56glusterd-geo-rep-create-post.sh
1099 %{_datadir}/glusterfs/scripts/get-gfid.sh
1100 %{_datadir}/glusterfs/scripts/slave-upgrade.sh
1101 %{_datadir}/glusterfs/scripts/gsync-upgrade.sh
1102 %{_datadir}/glusterfs/scripts/generate-gfid-file.sh
1103 %{_datadir}/glusterfs/scripts/gsync-sync-gfid
1104 %ghost %attr(0644,-,-) %{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
1105 %{_libexecdir}/glusterfs/gfind_missing_files
1106 %{_sbindir}/gfind_missing_files
1107 %endif
1108
1109 %files libs
1110 %{_libdir}/*.so.*
1111 %exclude %{_libdir}/libgfapi.*
1112 %if ( 0%{!?_without_tiering:1} )
1113 # libgfdb is only needed server-side
1114 %exclude %{_libdir}/libgfdb.*
1115 %endif
1116
1117 %files -n python-gluster
1118 # introducing glusterfs module in site packages.
1119 # so that all other gluster submodules can reside in the same namespace.
1120 %{python_sitelib}/gluster/__init__.*
1121
1122 %if ( 0%{!?_without_rdma:1} )
1123 %files rdma
1124 %{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport/rdma*
1125 %endif
1126
1127 %files regression-tests
1128 %{_prefix}/share/glusterfs/run-tests.sh
1129 %{_prefix}/share/glusterfs/tests
1130 %exclude %{_prefix}/share/glusterfs/tests/basic/rpm.t
1131
1132 %if ( 0%{!?_without_ocf:1} )
1133 %files resource-agents
1134 # /usr/lib is the standard for OCF, also on x86_64
1135 %{_prefix}/lib/ocf/resource.d/glusterfs
1136 %endif
1137
1138 %files server
1139 %doc extras/clear_xattrs.sh
1140 %config(noreplace) %{_sysconfdir}/sysconfig/glusterd
1141 %config(noreplace) %{_sysconfdir}/glusterfs
1142 %dir %{_localstatedir}/run/gluster
1143 %if 0%{?_tmpfilesdir:1}
1144 %{_tmpfilesdir}/gluster.conf
1145 %endif
1146 %dir %{_sharedstatedir}/glusterd
1147 %dir %{_sharedstatedir}/glusterd/groups
1148 %config(noreplace) %{_sharedstatedir}/glusterd/groups/virt
1149 # Legacy configs
1150 %if ( 0%{_for_fedora_koji_builds} )
1151 %config(noreplace) %{_sysconfdir}/sysconfig/glusterfsd
1152 %endif
1153 %config %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/disabled-quota-root-xattr-heal.sh
1154 %config %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre/S28Quota-enable-root-xattr-heal.sh
1155 %config %{_sharedstatedir}/glusterd/hooks/1/set/post/S30samba-set.sh
1156 %config %{_sharedstatedir}/glusterd/hooks/1/set/post/S32gluster_enable_shared_storage.sh
1157 %config %{_sharedstatedir}/glusterd/hooks/1/start/post/S29CTDBsetup.sh
1158 %config %{_sharedstatedir}/glusterd/hooks/1/start/post/S30samba-start.sh
1159 %config %{_sharedstatedir}/glusterd/hooks/1/start/post/S31ganesha-start.sh
1160 %config %{_sharedstatedir}/glusterd/hooks/1/stop/pre/S30samba-stop.sh
1161 %config %{_sharedstatedir}/glusterd/hooks/1/stop/pre/S29CTDB-teardown.sh
1162 %config %{_sharedstatedir}/glusterd/hooks/1/reset/post/S31ganesha-reset.sh
1163 # init files
1164 %_init_glusterd
1165 %if ( 0%{_for_fedora_koji_builds} )
1166 %_init_glusterfsd
1167 %endif
1168 # binaries
1169 %{_sbindir}/glusterd
1170 %{_sbindir}/glfsheal
1171 # {_sbindir}/glusterfsd is the actual binary, but glusterfs (client) is a
1172 # symlink. The binary itself (and symlink) are part of the glusterfs-fuse
1173 # package, because glusterfs-server depends on that anyway.
1174 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/cluster/pump.so
1175 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/arbiter.so
1176 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bit-rot.so
1177 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bitrot-stub.so
1178 %if ( 0%{!?_without_tiering:1} )
1179 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/changetimerecorder.so
1180 %endif
1181 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/index.so
1182 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/locks.so
1183 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/posix*
1184 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/snapview-server.so
1185 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/marker.so
1186 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quota*
1187 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/trash.so
1188 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/upcall.so
1189 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mgmt*
1190 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/nfs*
1191 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/server*
1192 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/storage*
1193 %if ( 0%{!?_without_tiering:1} )
1194 %{_libdir}/libgfdb.so.*
1195 %endif
1196
1197 #snap_scheduler
1198 %{_sbindir}/snap_scheduler.py
1199 %{_sbindir}/gcron.py
1200
1201 #hookscripts
1202 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks
1203 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1
1204 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick
1205 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post
1206 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre
1207 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set
1208 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post
1209 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start
1210 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post
1211 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop
1212 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre
1213 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete
1214 %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/post
1215
1216 %ghost %attr(0644,-,-) %config(noreplace) %{_sharedstatedir}/glusterd/glusterd.info
1217 %ghost %attr(0600,-,-) %{_sharedstatedir}/glusterd/options
1218 # This is really ugly, but I have no idea how to mark these directories in
1219 # any other way. They should belong to the glusterfs-server package, but
1220 # don't exist after installation. They are generated on the first start...
1221 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/post
1222 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/pre
1223 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick
1224 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick/post
1225 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/remove-brick/pre
1226 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/pre
1227 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create
1228 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post
1229 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/pre
1230 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre
1231 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd
1232 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/vols
1233 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/peers
1234 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs
1235 %ghost      %attr(0600,-,-) %{_sharedstatedir}/glusterd/nfs/nfs-server.vol
1236 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs/run
1237 %ghost      %attr(0600,-,-) %{_sharedstatedir}/glusterd/nfs/run/nfs.pid
1238
1239 # Extra utility script
1240 %{_datadir}/glusterfs/scripts/stop-all-gluster-processes.sh
1241
1242 # Incrementalapi
1243 %{_libexecdir}/glusterfs/glusterfind
1244 %{_bindir}/glusterfind
1245 %{_libexecdir}/glusterfs/peer_add_secret_pub
1246 %{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py
1247
1248 %if ( 0%{?_with_firewalld:1} )
1249 /usr/lib/firewalld/services/glusterfs.xml
1250 %endif
1251
1252
1253 %changelog
1254 * Tue Sep 1 2015 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1255 - erroneous ghost of ../hooks/1/delete causes install failure (#1258975)
1256
1257 * Tue Aug 25 2015 Anand Nekkunti <anekkunt@redhat.com>
1258 - adding glusterfs-firewalld service (#1253967)
1259
1260 * Tue Aug 18 2015 Niels de Vos <ndevos@redhat.com>
1261 - Include missing directories for glusterfind hooks scripts (#1225465)
1262
1263 * Mon Jun 15 2015 Niels de Vos <ndevos@redhat.com>
1264 - Replace hook script S31ganesha-set.sh by S31ganesha-start.sh (#1231738)
1265
1266 * Fri Jun 12 2015 Aravinda VK <avishwan@redhat.com>
1267 - Added rsync as dependency to georeplication rpm (#1231205)
1268
1269 * Tue Jun 02 2015 Aravinda VK <avishwan@redhat.com>
1270 - Added post hook for volume delete as part of glusterfind (#1225465)
1271
1272 * Wed May 27 2015 Aravinda VK <avishwan@redhat.com>
1273 - Added stop-all-gluster-processes.sh in glusterfs-server section (#1204641)
1274
1275 * Wed May 20 2015 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1276 - python-gluster should be 'noarch' (#1219954)
1277
1278 * Wed May 20 2015 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1279 - move libgf{db,changelog}.pc from -api-devel to -devel (#1223385)
1280
1281 * Wed May 20 2015 Anand Nekkunti <anekkunt@redhat.com>
1282 - glusterd.socket file cleanup during post run upgrade (#1210404)
1283
1284 * Tue May 19 2015 Avra Sengupta <asengupt@redhat.com>
1285 - Added S32gluster_enable_shared_storage.sh as volume set hook script (#1222013)
1286
1287 * Mon May 18 2015 Milind Changire <mchangir@redhat.com>
1288 - Move file peer_add_secret_pub to the server RPM to support glusterfind (#1221544)
1289
1290 * Sun May 17 2015 Niels de Vos <ndevos@redhat.com>
1291 - Fix building on RHEL-5 based distributions (#1222317)
1292
1293 * Tue May 05 2015 Niels de Vos <ndevos@redhat.com>
1294 - Introduce glusterfs-client-xlators to reduce dependencies (#1195947)
1295
1296 * Wed Apr 15 2015 Humble Chirammal <hchiramm@redhat.com>
1297 - Introducing python-gluster package to own gluster namespace in sitelib (#1211848)
1298
1299 * Sat Mar 28 2015 Mohammed Rafi KC <rkavunga@redhat.com>
1300 - Add dependency for librdmacm version >= 1.0.15 (#1206744)
1301
1302 * Thu Mar 26 2015 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1303 - attr dependency (#1174627)
1304
1305 * Tue Mar 24 2015 Niels de Vos <ndevos@redhat.com>
1306 - move libgfdb (with sqlite dependency) to -server subpackage (#1194753)
1307
1308 * Tue Mar 17 2015 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1309 - glusterfs-ganesha sub-package
1310
1311 * Thu Mar 12 2015 Kotresh H R <khiremat@redhat.com>
1312 - gfind_missing_files tool is included (#1187140)
1313
1314 * Tue Mar 03 2015 Aravinda VK <avishwan@redhat.com>
1315 - Included glusterfind files as part of server package.
1316
1317 * Sun Mar 1 2015 Avra Sengupta <asengupt@redhat.com>
1318 - Added installation of snap-scheduler
1319
1320 * Thu Feb 26 2015 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1321 - enable cmocka unittest support only when asked for (#1067059)
1322
1323 * Tue Feb 24 2015 Niels de Vos <ndevos@redhat.com>
1324 - POSIX ACL conversion needs BuildRequires libacl-devel (#1185654)
1325
1326 * Wed Feb 18 2015 Andreas Schneider <asn@redhat.com>
1327 - Change cmockery2 to cmocka.
1328
1329 * Wed Feb 18 2015 Kaushal M <kaushal@redhat.com>
1330 - add userspace-rcu as a requirement
1331
1332 * Fri Feb 13 2015 Gaurav Kumar Garg <ggarg@redhat.com>
1333 - .cmd_log_history file should be renamed to cmd_history.log post
1334   upgrade (#1165996)
1335
1336 * Fri Jan 30 2015 Nandaja Varma <nvarma@redhat.com>
1337 - remove checks for rpmbuild/mock from run-tests.sh (#178008)
1338
1339 * Fri Jan 16 2015 Niels de Vos <ndevos@redhat.com>
1340 - add support for /run/gluster through a tmpfiles.d config file (#1182934)
1341
1342 * Tue Jan 6 2015 Aravinda VK<avishwan@redhat.com>
1343 - Added new libexec script for mountbroker user management (peer_mountbroker)
1344
1345 * Fri Dec 12 2014 Niels de Vos <ndevos@redhat.com>
1346 - do not package all /usr/share/glusterfs/* files in regression-tests (#1169005)
1347
1348 * Fri Sep 26 2014 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1349 - smarter logic in %%post server (#1146426)
1350
1351 * Wed Sep 24 2014 Balamurugan Arumugam <barumuga@redhat.com>
1352 - remove /sbin/ldconfig as interpreter (#1145989)
1353
1354 * Fri Sep 5 2014 Lalatendu Mohanty <lmohanty@redhat.com>
1355 - Changed the description as "GlusterFS a distributed filesystem"
1356
1357 * Tue Aug 5 2014 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1358 - logrotate files (#1126832)
1359
1360 * Wed Jul 16 2014 Luis Pabon <lpabon@redhat.com>
1361 - Added cmockery2 dependency
1362
1363 * Fri Jun 27 2014 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1364 - killall --wait in %%post server, (#1113543)
1365
1366 * Thu Jun 19 2014 Humble Chirammal <hchiramm@redhat.com>
1367 - Added dynamic loading of fuse module with glusterfs-fuse package installation in el5.
1368
1369 * Thu Jun 12 2014 Varun Shastry <vshastry@redhat.com>
1370 - Add bash completion config to the cli package
1371
1372 * Tue Jun 03 2014 Vikhyat Umrao <vumrao@redhat.com>
1373 - add nfs-utils package dependency for server package (#1065654)
1374
1375 * Thu May 22 2014 Poornima G <pgurusid@redhat.com>
1376 - Rename old hookscripts in an RPM-standard way.
1377
1378 * Tue May 20 2014 Niels de Vos <ndevos@redhat.com>
1379 - Almost drop calling ./autogen.sh
1380
1381 * Fri Apr 25 2014 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1382 - Sync with Fedora spec (#1091408, #1091392)
1383
1384 * Fri Apr 25 2014 Arumugam Balamurugan <barumuga@redhat.com>
1385 - fix RHEL 7 build failure "Installed (but unpackaged) file(s) found" (#1058188)
1386
1387 * Wed Apr 02 2014 Arumugam Balamurugan <barumuga@redhat.com>
1388 - cleanup to rearrange spec file elements
1389
1390 * Wed Apr 02 2014 Arumugam Balamurugan <barumuga@redhat.com>
1391 - add version/release dynamically (#1074919)
1392
1393 * Wed Mar 26 2014 Poornima G <pgurusid@redhat.com>
1394 - Include the hook scripts of add-brick, volume start, stop and set
1395
1396 * Wed Feb 26 2014 Niels de Vos <ndevos@redhat.com>
1397 - Drop glusterfs-devel dependency from glusterfs-api (#1065750)
1398
1399 * Wed Feb 19 2014 Justin Clift <justin@gluster.org>
1400 - Rename gluster.py to glupy.py to avoid namespace conflict (#1018619)
1401 - Move the main Glupy files into glusterfs-extra-xlators rpm
1402 - Move the Glupy Translator examples into glusterfs-devel rpm
1403
1404 * Thu Feb 06 2014 Aravinda VK <avishwan@redhat.com>
1405 - Include geo-replication upgrade scripts and hook scripts.
1406
1407 * Wed Jan 15 2014 Niels de Vos <ndevos@redhat.com>
1408 - Install /var/lib/glusterd/groups/virt by default
1409
1410 * Sat Jan 4 2014 Niels de Vos <ndevos@redhat.com>
1411 - The main glusterfs package should not provide glusterfs-libs (#1048489)
1412
1413 * Tue Dec 10 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1414 - Sync with Fedora glusterfs.spec 3.5.0-0.1.qa3
1415
1416 * Fri Oct 11 2013 Harshavardhana <fharshav@redhat.com>
1417 - Add '_sharedstatedir' macro to `/var/lib` on <= RHEL5 (#1003184)
1418
1419 * Wed Oct 9 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1420 - Sync with Fedora glusterfs.spec 3.4.1-2+
1421
1422 * Wed Oct 9 2013 Niels de Vos <ndevos@redhat.com>
1423 - glusterfs-api-devel requires glusterfs-devel (#1016938, #1017094)
1424
1425 * Mon Sep 30 2013 Niels de Vos <ndevos@redhat.com>
1426 - Package gfapi.py into the Python site-packages path (#1005146)
1427
1428 * Tue Sep 17 2013 Harshavardhana <fharshav@redhat.com>
1429 - Provide a new package called "glusterfs-regression-tests" for standalone
1430   regression testing.
1431
1432 * Thu Aug 22 2013 Niels de Vos <ndevos@redhat.com>
1433 - Correct the day/date for some entries in this changelog (#1000019)
1434
1435 * Wed Aug 7 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1436 - Sync with Fedora glusterfs.spec
1437 -  add Requires
1438 -  add -cli subpackage,
1439 -  fix other minor differences with Fedora glusterfs.spec
1440
1441 * Tue Jul 30 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1442 - Sync with Fedora glusterfs.spec, add glusterfs-libs RPM for oVirt/qemu-kvm
1443
1444 * Thu Jul 25 2013 Csaba Henk <csaba@redhat.com>
1445 - Added peer_add_secret_pub and peer_gsec_create to %%{_libexecdir}/glusterfs
1446
1447 * Thu Jul 25 2013 Aravinda VK <avishwan@redhat.com>
1448 - Added gverify.sh to %%{_libexecdir}/glusterfs directory.
1449
1450 * Thu Jul 25 2013 Harshavardhana <fharshav@redhat.com>
1451 - Allow to build with '--without bd' to disable 'bd' xlator
1452
1453 * Thu Jun 27 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1454 - fix the hardening fix for shlibs, use %%sed macro, shorter ChangeLog
1455
1456 * Wed Jun 26 2013 Niels de Vos <ndevos@redhat.com>
1457 - move the mount/api xlator to glusterfs-api
1458
1459 * Fri Jun 7 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1460 - Sync with Fedora glusterfs.spec, remove G4S/UFO and Swift
1461
1462 * Mon Mar 4 2013 Niels de Vos <ndevos@redhat.com>
1463 - Package /var/run/gluster so that statedumps can be created
1464
1465 * Wed Feb 6 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com>
1466 - Sync with Fedora glusterfs.spec
1467
1468 * Tue Dec 11 2012 Filip Pytloun <filip.pytloun@gooddata.com>
1469 - add sysconfig file
1470
1471 * Thu Oct 25 2012 Niels de Vos <ndevos@redhat.com>
1472 - Add a sub-package for the OCF resource agents
1473
1474 * Wed Sep 05 2012 Niels de Vos <ndevos@redhat.com>
1475 - Don't use python-ctypes on SLES (from Jörg Petersen)
1476
1477 * Tue Jul 10 2012 Niels de Vos <ndevos@redhat.com>
1478 - Include extras/clear_xattrs.sh in the glusterfs-server sub-package
1479
1480 * Thu Jun 07 2012 Niels de Vos <ndevos@redhat.com>
1481 - Mark /var/lib/glusterd as owned by glusterfs, subdirs belong to -server
1482
1483 * Wed May 9 2012 Kaleb S. KEITHLEY <kkeithle[at]redhat.com>
1484 - Add BuildRequires: libxml2-devel so that configure will DTRT on for
1485 - Fedora's Koji build system
1486
1487 * Wed Nov 9 2011 Joe Julian <me@joejulian.name> - git master
1488 - Merge fedora specfile into gluster's spec.in.
1489 - Add conditionals to allow the same spec file to be used for both 3.1 and 3.2
1490 - http://bugs.gluster.com/show_bug.cgi?id=2970
1491
1492 * Wed Oct  5 2011 Joe Julian <me@joejulian.name> - 3.2.4-1
1493 - Update to 3.2.4
1494 - Removed the $local_fs requirement from the init scripts as in RHEL/CentOS that's provided
1495 - by netfs, which needs to be started after glusterd.
1496
1497 * Sun Sep 25 2011 Joe Julian <me@joejulian.name> - 3.2.3-2
1498 - Merged in upstream changes
1499 - Fixed version reporting 3.2git
1500 - Added nfs init script (disabled by default)
1501
1502 * Thu Sep  1 2011 Joe Julian <me@joejulian.name> - 3.2.3-1
1503 - Update to 3.2.3
1504
1505 * Tue Jul 19 2011 Joe Julian <me@joejulian.name> - 3.2.2-3
1506 - Add readline and libtermcap dependencies
1507
1508 * Tue Jul 19 2011 Joe Julian <me@joejulian.name> - 3.2.2-2
1509 - Critical patch to prevent glusterd from walking outside of its own volume during rebalance
1510
1511 * Thu Jul 14 2011 Joe Julian <me@joejulian.name> - 3.2.2-1
1512 - Update to 3.2.2
1513
1514 * Wed Jul 13 2011 Joe Julian <me@joejulian.name> - 3.2.1-2
1515 - fix hardcoded path to gsyncd in source to match the actual file location
1516
1517 * Tue Jun 21 2011 Joe Julian <me@joejulian.name> - 3.2.1
1518 - Update to 3.2.1
1519
1520 * Mon Jun 20 2011 Joe Julian <me@joejulian.name> - 3.1.5
1521 - Update to 3.1.5
1522
1523 * Tue May 31 2011 Joe Julian <me@joejulian.name> - 3.1.5-qa1.4
1524 - Current git
1525
1526 * Sun May 29 2011 Joe Julian <me@joejulian.name> - 3.1.5-qa1.2
1527 - set _sharedstatedir to /var/lib for FHS compliance in RHEL5/CentOS5
1528 - mv /etc/glusterd, if it exists, to the new state dir for upgrading from gluster packaging
1529
1530 * Sat May 28 2011 Joe Julian <me@joejulian.name> - 3.1.5-qa1.1
1531 - Update to 3.1.5-qa1
1532 - Add patch to remove optimization disabling
1533 - Add patch to remove forced 64 bit compile
1534 - Obsolete glusterfs-core to allow for upgrading from gluster packaging
1535
1536 * Sat Mar 19 2011 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.1.3-1
1537 - Update to 3.1.3
1538 - Merge in more upstream SPEC changes
1539 - Remove patches from GlusterFS bugzilla #2309 and #2311
1540 - Remove inode-gen.patch
1541
1542 * Sun Feb 06 2011 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.1.2-3
1543 - Add back in legacy SPEC elements to support older branches
1544
1545 * Thu Feb 03 2011 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.1.2-2
1546 - Add patches from CloudFS project
1547
1548 * Tue Jan 25 2011 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.1.2-1
1549 - Update to 3.1.2
1550
1551 * Wed Jan 5 2011 Dan Horák <dan[at]danny.cz> - 3.1.1-3
1552 - no InfiniBand on s390(x)
1553
1554 * Sat Jan 1 2011 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.1.1-2
1555 - Update to support readline
1556 - Update to not parallel build
1557
1558 * Mon Dec 27 2010 Silas Sewell <silas@sewell.ch> - 3.1.1-1
1559 - Update to 3.1.1
1560 - Change package names to mirror upstream
1561
1562 * Mon Dec 20 2010 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.0.7-1
1563 - Update to 3.0.7
1564
1565 * Wed Jul 28 2010 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.0.5-1
1566 - Update to 3.0.x
1567
1568 * Sat Apr 10 2010 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.0.9-2
1569 - Move python version requires into a proper BuildRequires otherwise
1570   the spec always turned off python bindings as python is not part
1571   of buildsys-build and the chroot will never have python unless we
1572   require it
1573 - Temporarily set -D_FORTIFY_SOURCE=1 until upstream fixes code
1574   GlusterFS Bugzilla #197 (#555728)
1575 - Move glusterfs-volgen to devel subpackage (#555724)
1576 - Update description (#554947)
1577
1578 * Sat Jan 2 2010 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.0.9-1
1579 - Update to 2.0.9
1580
1581 * Sun Nov 8 2009 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.0.8-1
1582 - Update to 2.0.8
1583 - Remove install of glusterfs-volgen, it's properly added to
1584   automake upstream now
1585
1586 * Sat Oct 31 2009 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.0.7-1
1587 - Update to 2.0.7
1588 - Install glusterfs-volgen, until it's properly added to automake
1589   by upstream
1590 - Add macro to be able to ship more docs
1591
1592 * Thu Sep 17 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.6-2
1593 - Rebuilt with new fuse
1594
1595 * Sat Sep 12 2009 Matthias Saou <http://freshrpms.net/> 2.0.6-1
1596 - Update to 2.0.6.
1597 - No longer default to disable the client on RHEL5 (#522192).
1598 - Update spec file URLs.
1599
1600 * Mon Jul 27 2009 Matthias Saou <http://freshrpms.net/> 2.0.4-1
1601 - Update to 2.0.4.
1602
1603 * Thu Jun 11 2009 Matthias Saou <http://freshrpms.net/> 2.0.1-2
1604 - Remove libglusterfs/src/y.tab.c to fix koji F11/devel builds.
1605
1606 * Sat May 16 2009 Matthias Saou <http://freshrpms.net/> 2.0.1-1
1607 - Update to 2.0.1.
1608
1609 * Thu May  7 2009 Matthias Saou <http://freshrpms.net/> 2.0.0-1
1610 - Update to 2.0.0 final.
1611
1612 * Wed Apr 29 2009 Matthias Saou <http://freshrpms.net/> 2.0.0-0.3.rc8
1613 - Move glusterfsd to common, since the client has a symlink to it.
1614
1615 * Fri Apr 24 2009 Matthias Saou <http://freshrpms.net/> 2.0.0-0.2.rc8
1616 - Update to 2.0.0rc8.
1617
1618 * Sun Apr 12 2009 Matthias Saou <http://freshrpms.net/> 2.0.0-0.2.rc7
1619 - Update glusterfsd init script to the new style init.
1620 - Update files to match the new default vol file names.
1621 - Include logrotate for glusterfsd, use a pid file by default.
1622 - Include logrotate for glusterfs, using killall for lack of anything better.
1623
1624 * Sat Apr 11 2009 Matthias Saou <http://freshrpms.net/> 2.0.0-0.1.rc7
1625 - Update to 2.0.0rc7.
1626 - Rename "libs" to "common" and move the binary, man page and log dir there.
1627
1628 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
1629 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1630
1631 * Mon Feb 16 2009 Matthias Saou <http://freshrpms.net/> 2.0.0-0.1.rc1
1632 - Update to 2.0.0rc1.
1633 - Include new libglusterfsclient.h.
1634
1635 * Mon Feb 16 2009 Matthias Saou <http://freshrpms.net/> 1.3.12-1
1636 - Update to 1.3.12.
1637 - Remove no longer needed ocreat patch.
1638
1639 * Thu Jul 17 2008 Matthias Saou <http://freshrpms.net/> 1.3.10-1
1640 - Update to 1.3.10.
1641 - Remove mount patch, it's been included upstream now.
1642
1643 * Fri May 16 2008 Matthias Saou <http://freshrpms.net/> 1.3.9-1
1644 - Update to 1.3.9.
1645
1646 * Fri May  9 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-1
1647 - Update to 1.3.8 final.
1648
1649 * Wed Apr 23 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.10
1650 - Include short patch to include fixes from latest TLA 751.
1651
1652 * Tue Apr 22 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.9
1653 - Update to 1.3.8pre6.
1654 - Include glusterfs binary in both the client and server packages, now that
1655   glusterfsd is a symlink to it instead of a separate binary.
1656 * Sun Feb  3 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.8
1657 - Add python version check and disable bindings for version < 2.4.
1658
1659 * Sun Feb  3 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.7
1660 - Add --without client rpmbuild option, make it the default for RHEL (no fuse).
1661   (I hope "rhel" is the proper default macro name, couldn't find it...)
1662
1663 * Wed Jan 30 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.6
1664 - Add --without ibverbs rpmbuild option to the package.
1665
1666 * Mon Jan 14 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.5
1667 - Update to current TLA again, patch-636 which fixes the known segfaults.
1668
1669 * Thu Jan 10 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.4
1670 - Downgrade to glusterfs--mainline--2.5--patch-628 which is more stable.
1671
1672 * Tue Jan  8 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.3
1673 - Update to current TLA snapshot.
1674 - Include umount.glusterfs wrapper script (really needed? dunno).
1675 - Include patch to mount wrapper to avoid multiple identical mounts.
1676
1677 * Sun Dec 30 2007 Matthias Saou <http://freshrpms.net/> 1.3.8-0.1
1678 - Update to current TLA snapshot, which includes "volume-name=" fstab option.
1679
1680 * Mon Dec  3 2007 Matthias Saou <http://freshrpms.net/> 1.3.7-6
1681 - Re-add the /var/log/glusterfs directory in the client sub-package (required).
1682 - Include custom patch to support vol= in fstab for -n glusterfs client option.
1683
1684 * Mon Nov 26 2007 Matthias Saou <http://freshrpms.net/> 1.3.7-4
1685 - Re-enable libibverbs.
1686 - Check and update License field to GPLv3+.
1687 - Add glusterfs-common obsoletes, to provide upgrade path from old packages.
1688 - Include patch to add mode to O_CREATE opens.
1689
1690 * Thu Nov 22 2007 Matthias Saou <http://freshrpms.net/> 1.3.7-3
1691 - Remove Makefile* files from examples.
1692 - Include RHEL/Fedora type init script, since the included ones don't do.
1693
1694 * Wed Nov 21 2007 Matthias Saou <http://freshrpms.net/> 1.3.7-1
1695 - Major spec file cleanup.
1696 - Add missing %%clean section.
1697 - Fix ldconfig calls (weren't set for the proper sub-package).
1698
1699 * Sat Aug 4 2007 Matt Paine <matt@mattsoftware.com> - 1.3.pre7
1700 - Added support to build rpm without ibverbs support (use --without ibverbs
1701   switch)
1702
1703 * Sun Jul 15 2007 Matt Paine <matt@mattsoftware.com> - 1.3.pre6
1704 - Initial spec file