f54e06b612
Update the RPM file with the comments from submittal spec file to the Fedora Project. This update also differntiates between the project name 'gluster-swift' and the Fedora distribution name 'glusterfs-openstack-swift'. This simple changes makes it less confusing when downloading the source on http://launchpad.net/gluster-swift . For more information on the Fedora Project submittal status please see: https://bugzilla.redhat.com/show_bug.cgi?id=1003089 This fix also creates a tar.gz source file so that Jenkins can archive it. This can be used for distributions other than RPM based systems. Change-Id: Ia9b85d53cf576a7754aaa018396adb70cb0f2855 Signed-off-by: Luis Pabon <lpabon@redhat.com> Reviewed-on: http://review.gluster.org/6261 Reviewed-by: Thiago Da Silva <thiago@redhat.com> Tested-by: Thiago Da Silva <thiago@redhat.com>
96 lines
3.0 KiB
RPMSpec
96 lines
3.0 KiB
RPMSpec
%define _confdir %{_sysconfdir}/swift
|
|
|
|
# The following values are provided by passing the following arguments
|
|
# to rpmbuild. For example:
|
|
# --define "_version 1.0" --define "_release 1" --define "_name g4s"
|
|
#
|
|
%{!?_version:%define _version __PKG_VERSION__}
|
|
%{!?_name:%define _name __PKG_NAME__}
|
|
%{!?_release:%define _release __PKG_RELEASE__}
|
|
|
|
Summary : GlusterFS Integration with OpenStack Object Storage (Swift).
|
|
Name : %{_name}
|
|
Version : %{_version}
|
|
Release : %{_release}%{?dist}
|
|
Group : Application/File
|
|
URL : http://launchpad.net/gluster-swift
|
|
Vendor : Fedora Project
|
|
Source0 : %{_name}-%{_version}-%{_release}.tar.gz
|
|
License : ASL 2.0
|
|
BuildArch: noarch
|
|
BuildRequires: python
|
|
BuildRequires: python-setuptools
|
|
Requires : memcached
|
|
Requires : openssl
|
|
Requires : python
|
|
Requires : openstack-swift = 1.10.0
|
|
Requires : openstack-swift-account = 1.10.0
|
|
Requires : openstack-swift-container = 1.10.0
|
|
Requires : openstack-swift-object = 1.10.0
|
|
Requires : openstack-swift-proxy = 1.10.0
|
|
Requires : glusterfs-api >= 3.4.1
|
|
Obsoletes: glusterfs-swift-plugin
|
|
Obsoletes: glusterfs-swift
|
|
Obsoletes: glusterfs-ufo
|
|
Obsoletes: glusterfs-swift-container
|
|
Obsoletes: glusterfs-swift-object
|
|
Obsoletes: glusterfs-swift-proxy
|
|
Obsoletes: glusterfs-swift-account
|
|
|
|
%description
|
|
Gluster-For-Swift (G4S, pronounced "gee-force") integrates GlusterFS as an
|
|
alternative back end for OpenStack Object Storage (Swift) leveraging the
|
|
existing front end OpenStack Swift code. Gluster volumes are used to store
|
|
objects in files, containers are maintained as top-level directories of volumes,
|
|
where accounts are mapped one-to-one to gluster volumes.
|
|
|
|
%prep
|
|
%setup -q -n gluster_swift-%{_version}
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/%{_confdir}/
|
|
cp -r etc/* %{buildroot}/%{_confdir}/
|
|
|
|
# Remove tests
|
|
%{__rm} -rf %{buildroot}/%{python_sitelib}/test
|
|
|
|
# Remove files provided by glusterfs-api
|
|
%{__rm} -rf %{buildroot}/%{python_sitelib}/gluster/__init__.p*
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{python_sitelib}/gluster
|
|
%{python_sitelib}/gluster_swift-%{_version}_*.egg-info
|
|
%{_bindir}/gluster-swift-gen-builders
|
|
%{_bindir}/gluster-swift-print-metadata
|
|
%{_bindir}/swauth-add-account
|
|
%{_bindir}/swauth-add-user
|
|
%{_bindir}/swauth-cleanup-tokens
|
|
%{_bindir}/swauth-delete-account
|
|
%{_bindir}/swauth-delete-user
|
|
%{_bindir}/swauth-list
|
|
%{_bindir}/swauth-prep
|
|
%{_bindir}/swauth-set-account-service
|
|
|
|
%dir %{_confdir}
|
|
%config(noreplace) %{_confdir}/account-server.conf-gluster
|
|
%config(noreplace) %{_confdir}/container-server.conf-gluster
|
|
%config(noreplace) %{_confdir}/object-server.conf-gluster
|
|
%config(noreplace) %{_confdir}/swift.conf-gluster
|
|
%config(noreplace) %{_confdir}/proxy-server.conf-gluster
|
|
%config(noreplace) %{_confdir}/fs.conf-gluster
|
|
|
|
%changelog
|
|
* Mon Oct 28 2013 Luis Pabon <lpabon@redhat.com> - 1.10.1-0
|
|
- IceHouse Release
|
|
|
|
* Wed Aug 21 2013 Luis Pabon <lpabon@redhat.com> - 1.8.0-7
|
|
- Update RPM spec file to support SRPMS
|