1 # TODO: openstack-swift packages
2 Summary: GlusterFS Unified File and Object Storage
3 Summary(pl.UTF-8): GlusterFS UFO - ujednolicony sposób przechowywania plików i obiektów
4 Name: gluster-swift-ufo
8 Group: Application/File
9 Source0: http://download.gluster.org/pub/gluster/glusterfs/LATEST/%{name}-%{version}.tar.gz
10 # Source0-md5: 614628f29cd47fba95d1530363d7900b
11 URL: http://www.gluster.org/
12 BuildRequires: python >= 1:2.6
13 BuildRequires: rpm-pythonprov
14 BuildRequires: rpmbuild(macros) >= 1.219
16 Requires: python >= 1:2.6
17 Requires: openstack-swift >= 1.4.8
18 Requires: openstack-swift-account >= 1.4.8
19 Requires: openstack-swift-container >= 1.4.8
20 Requires: openstack-swift-object >= 1.4.8
21 Requires: openstack-swift-proxy >= 1.4.8
22 Obsoletes: gluster-swift
23 Obsoletes: gluster-swift-plugin
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Gluster Unified File and Object Storage unifies NAS and object storage
29 technology. This provides a system for data storage that enables users
30 to access the same data as an object and as a file, simplifying
31 management and controlling storage costs.
33 %description -l pl.UTF-8
34 Gluster UFO (Unified File and Object Storage) unifikuje technologie
35 przechowywania danych NAS i obiektów. Udostępnia system przechowywania
36 danych pozwalający użytkownikom na dostęp do tych samych danych jako
37 obiektu i jako pliku, co upraszcza zarządzanie i kontrolę kosztów.
43 %{__python} setup.py build
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/swift,%{_bindir}}
49 %{__python} setup.py install \
52 --root $RPM_BUILD_ROOT
54 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/test
58 cp -a etc/* $RPM_BUILD_ROOT%{_sysconfdir}/swift
59 install bin/gluster-swift-gen-builders $RPM_BUILD_ROOT%{_bindir}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_bindir}/gluster-swift-gen-builders
68 %{py_sitescriptdir}/gluster
69 %{py_sitescriptdir}/gluster_swift_ufo-1.1-py*.egg-info
70 %dir %{_sysconfdir}/swift
71 %dir %{_sysconfdir}/swift/account-server
72 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/swift/account-server/1.conf-gluster
73 %dir %{_sysconfdir}/swift/container-server
74 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/swift/container-server/1.conf-gluster
75 %dir %{_sysconfdir}/swift/object-server
76 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/swift/object-server/1.conf-gluster
77 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/swift/swift.conf-gluster
78 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/swift/proxy-server.conf-gluster
79 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/swift/fs.conf-gluster