Commit b76cfaea authored by Michal Simon's avatar Michal Simon
Browse files

#977 new EPEL 3.2.22 release

parent 7b511bac
%if 0%{?rhel} == 5
%global with_python26 1
%if 0%{?with_python26}
%global __python %{_bindir}/python2.6
%global __os_install_post %{?__python26_os_install_post}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")}
Name: fts-rest
Version: 3.2.8
Release: 1
Release: 1%{?dist}
BuildArch: noarch
Summary: FTS3 Rest Interface
Group: Applications/Internet
......@@ -21,22 +12,12 @@ URL:
BuildRequires: cmake
BuildRequires: python2-devel
%if 0%{?rhel} > 5
BuildRequires: python-jsonschema
BuildRequires: python-nose1.1
BuildRequires: python-pylons
BuildRequires: scipy
%if 0%{?with_python26}
BuildRequires: python26-m2crypto
BuildRequires: python26-sqlalchemy
BuildRequires: m2crypto
BuildRequires: python-sqlalchemy
Requires: gridsite%{?_isa} >= 1.7
Requires: httpd%{?_isa}
......@@ -65,24 +46,14 @@ Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description selinux
This package labels port 8446, used by fts-rest, as http_port_t,
so Apache can bind to it.
SELinux support for fts-rest
%package -n python-fts
Summary: FTS3 database model
Group: Applications/Internet
%if 0%{?with_python26}
BuildRequires: python26-devel
Requires: python26-m2crypto
Requires: python26-pycurl
Requires: python26-sqlalchemy
Requires: m2crypto
BuildRequires: python-devel
Requires: python-pycurl
Requires: python-sqlalchemy
%description -n python-fts
This package provides an object model of the FTS3
......@@ -109,17 +80,10 @@ fi
make %{?_smp_mflags}
# In EL5, use Python2.6
%if 0%{?with_python26}
sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python26:g' src/cli/fts-rest-*
%if 0%{?rhel} > 5
pushd src/fts3rest
PYTHONPATH=../ nosetests1.1 --with-xunit --xunit-file=/tmp/nosetests.xml
mkdir -p %{buildroot}
......@@ -133,7 +97,6 @@ cp --preserve=timestamps -r src/fts3 %{buildroot}/%{python_sitelib}
%dir %config(noreplace) %{_sysconfdir}/fts3
%config(noreplace) %{_sysconfdir}/fts3/fts3rest.ini
%config(noreplace) %{_sysconfdir}/httpd/conf.d/fts3rest.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/fts-rest
......@@ -145,7 +108,6 @@ cp --preserve=timestamps -r src/fts3 %{buildroot}/%{python_sitelib}
%files cli
%dir %config(noreplace) %{_sysconfdir}/fts3
%config(noreplace) %{_sysconfdir}/fts3/fts3client.cfg
......@@ -156,6 +118,9 @@ cp --preserve=timestamps -r src/fts3 %{buildroot}/%{python_sitelib}
* Mon Jun 30 2014 Michal Simon <> - 3.2.6-1
- First EPEL release
* Tue May 13 2014 Michal Simon <> - 3.2.5-1
- Marging fts-rest and python-fts
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment