Commit 328eb6af authored by Michal Simon's avatar Michal Simon
Browse files

#977 new EPEL 3.2.22 release

parent 18f59d7f
......@@ -11,30 +11,37 @@
%{!?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.4
Version: 3.2.5
Release: 1
BuildArch: noarch
Summary: FTS3 Rest Interface
Group: Applications/Internet
License: ASL 2.0
URL: https://svnweb.cern.ch/trac/fts3
Source0: %{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: https://grid-deployment.web.cern.ch/grid-deployment/dms/fts3/tar/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: python2-devel
%if 0%{?rhel} > 5
BuildRequires: python-fts >= %{version}
BuildRequires: python-jsonschema
BuildRequires: python-nose1.1
BuildRequires: python-pylons
BuildRequires: scipy
%endif
%if 0%{?with_python26}
BuildRequires: python26-m2crypto
BuildRequires: python26-sqlalchemy
%else
BuildRequires: m2crypto
BuildRequires: python-sqlalchemy
%endif
Requires: gridsite%{?_isa} >= 1.7
Requires: httpd%{?_isa}
Requires: mod_wsgi
Requires: python-fts
Requires: python-fts = %{version}-%{release}
Requires: python-paste-deploy
Requires: python-pylons
Requires: gfal2-python
......@@ -46,7 +53,7 @@ This package provides the FTS3 REST interface
Summary: FTS3 Rest Interface CLI
Group: Applications/Internet
Requires: python-fts
Requires: python-fts = %{version}-%{release}
%description cli
Command line utilities for the FTS3 REST interface
......@@ -55,12 +62,32 @@ Command line utilities for the FTS3 REST interface
Summary: SELinux support for fts-rest
Group: Applications/Internet
Requires: fts-rest
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.
%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
%else
Requires: m2crypto
BuildRequires: python-devel
Requires: python-pycurl
Requires: python-sqlalchemy
%endif
%description -n python-fts
This package provides an object model of the FTS3
database, using sqlalchemy ORM.
%post selinux
if [ "$1" -le "1" ] ; then # First install
semanage port -a -t http_port_t -p tcp 8446
......@@ -76,10 +103,10 @@ setsebool -P httpd_setrlimit=0
fi
%prep
%setup -q -n %{name}-%{version}
%setup -qc
%build
%cmake . -DCMAKE_INSTALL_PREFIX=/ -DPYTHON_SITE_PACKAGES=%{python_sitearch}
%cmake . -DCMAKE_INSTALL_PREFIX=/ -DPYTHON_SITE_PACKAGES=%{python_sitelib}
make %{?_smp_mflags}
# In EL5, use Python2.6
......@@ -90,42 +117,51 @@ sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python26:g' src/cli/fts-rest-*
%check
%if 0%{?rhel} > 5
pushd src/fts3rest
nosetests1.1 --with-xunit --xunit-file=/tmp/nosetests.xml
PYTHONPATH=../ nosetests1.1 --with-xunit --xunit-file=/tmp/nosetests.xml
popd
%endif
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/%{_var}/cache/fts3rest/
mkdir -p %{buildroot}/%{_var}/log/fts3rest/
%clean
rm -rf %{buildroot}
cp --preserve=timestamps -r src/fts3 %{buildroot}/%{python_sitelib}
%files
%defattr(-,root,root,-)
%{python_sitearch}/*
%{python_sitelib}/fts3rest*
%{_libexecdir}/fts3
%dir %config(noreplace) %{_sysconfdir}/fts3
%config(noreplace) %{_sysconfdir}/fts3/fts3rest.ini
%config(noreplace) %{_sysconfdir}/httpd/conf.d/fts3rest.conf
%dir %attr(0775,apache,apache) %{_var}/cache/fts3rest
%dir %attr(0775,apache,apache) %{_var}/log/fts3rest
%dir %attr(0755,apache,apache) %{_var}/cache/fts3rest
%dir %attr(0755,apache,apache) %{_var}/log/fts3rest
%doc docs/README.md
%doc docs/install.md
%doc docs/api.md
%files cli
%defattr(-,root,root,-)
%{_bindir}/fts-rest-*
%dir %config(noreplace) %{_sysconfdir}/fts3
%config(noreplace) %{_sysconfdir}/fts3/fts3client.cfg
%{_mandir}/man1/fts-rest*
%files selinux
%files -n python-fts
%{python_sitelib}/fts3
%doc LICENSE
%changelog
* Tue May 13 2014 Michal Simon <michal.simon@cern.ch> - 3.2.5-1
- Marging fts-rest and python-fts
* Mon Mar 10 2014 Alejandro Álvarez <aalvarez@cern.ch> - 3.2.0-1
- Creating log directory
* Mon Jan 03 2014 Alejandro Álvarez <aalvarez@cern.ch> - 3.1.0-1
* Fri Jan 03 2014 Alejandro Álvarez <aalvarez@cern.ch> - 3.1.0-1
- Major and minor versions follow FTS3
* Tue Aug 13 2013 Alejandro Álvarez <aalvarez@cern.ch> - 0.0.2-2
......@@ -136,4 +172,3 @@ rm -rf %{buildroot}
* Thu Mar 21 2013 Alejandro Álvarez <aalvarez@cern.ch> - 0.0.1-1
- Initial build
%if 0%{?rhel} == 5
%global with_python26 1
%endif
%if 0%{?with_python26}
%global __python %{_bindir}/python2.6
%global __os_install_post %{?__python26_os_install_post}
%endif
%{!?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: python-fts
Version: 3.2.4
Release: 1
BuildArch: noarch
Summary: FTS3 database model
Group: Applications/Internet
License: ASL 2.0
URL: https://svnweb.cern.ch/trac/fts3
Source0: %{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if 0%{?with_python26}
BuildRequires: python26-devel
Requires: python26-m2crypto
Requires: python26-pycurl
Requires: python26-sqlalchemy
%else
Requires: m2crypto
BuildRequires: python-devel
Requires: python-pycurl
Requires: python-sqlalchemy
%endif
%description
This package provides an object model of the FTS3
database, using sqlalchemy ORM.
%prep
%setup -q -n %{name}-%{version}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{python_sitearch}
cp --preserve=timestamps -r src/fts3 %{buildroot}/%{python_sitearch}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitearch}/*
%changelog
* Mon Apr 14 2014 Alejandro Álvarez <aalvarez@cern.ch> - 3.2.2-1
- Adapted for EL5
* Mon Jan 03 2014 Alejandro Álvarez <aalvarez@cern.ch> - 3.1.0-1
- Major and minor versions follow FTS3
* Thu Mar 21 2013 Alejandro Álvarez <aalvarez@cern.ch> - 0.0.1-1
- Initial build
......@@ -13,3 +13,21 @@ install(PROGRAMS fts-rest-transfer-cancel
install (FILES fts3client.cfg
DESTINATION etc/fts3
)
# man pages
set(MAN_INPUT_DIR "${PROJECT_SOURCE_DIR}/docs/man/")
install(FILES
"${MAN_INPUT_DIR}/fts-rest-transfer-cancel.1"
"${MAN_INPUT_DIR}/fts-rest-transfer-list.1"
"${MAN_INPUT_DIR}/fts-rest-transfer-status.1"
"${MAN_INPUT_DIR}/fts-rest-transfer-submit.1"
"${MAN_INPUT_DIR}/fts-rest-delegate.1"
"${MAN_INPUT_DIR}/fts-rest-whoami.1"
DESTINATION
"${SHARE_INSTALL_PREFIX}/man/man1/"
)
......@@ -3,11 +3,13 @@ cmake_minimum_required (VERSION 2.6)
add_subdirectory (fts3rest)
# egg-info
install (DIRECTORY fts3rest.egg-info
DESTINATION ${PYTHON_SITE_PACKAGES})
install (DIRECTORY fts3rest.egg-info
DESTINATION ${PYTHON_SITE_PACKAGES}
)
# WSGI
install (FILES fts3rest.wsgi
install (PROGRAMS fts3rest.wsgi
DESTINATION usr/libexec/fts3/
)
......
......@@ -15,6 +15,7 @@ install (DIRECTORY controllers
)
install (DIRECTORY lib
USE_SOURCE_PERMISSIONS
DESTINATION ${PYTHON_SITE_PACKAGES}/fts3rest
PATTERN "*.pyc" EXCLUDE
)
......
File mode changed from 100644 to 100755
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