Alejandro Alvarez Ayllon b6998be
Summary:    FTS3 Web Application for monitoring
Alejandro Alvarez Ayllon b6998be
Name:       fts-monitoring
Alejandro Alvarez Ayllon 302b1db
Version:    3.6.8
Alejandro Alvarez Ayllon 302b1db
Release:    1%{?dist}
Alejandro Alvarez Ayllon b6998be
URL:        http://fts3-service.web.cern.ch
Alejandro Alvarez Ayllon b6998be
License:    ASL 2.0
Alejandro Alvarez Ayllon b6998be
Group:      Applications/Internet
Alejandro Alvarez Ayllon b6998be
BuildArch:  noarch
Alejandro Alvarez Ayllon 8544d33
# The source for this package was pulled from upstream's vcs.  Use the
Alejandro Alvarez Ayllon 8544d33
# following commands to generate the tarball:
Alejandro Alvarez Ayllon 302b1db
#  git clone https://gitlab.cern.ch/fts/fts-monitoring.git -b master --depth=1 fts-monitoring-3.6.8
Alejandro Alvarez Ayllon 302b1db
#  cd fts-monitoring-3.6.8
Alejandro Alvarez Ayllon 302b1db
#  git checkout v3.6.8
Alejandro Alvarez Ayllon 8544d33
#  cd ..
Alejandro Alvarez Ayllon 302b1db
#  tar --exclude-vcs -vczf fts-monitoring-3.6.8.tar.gz fts-monitoring-3.6.8
Alejandro Alvarez Ayllon b6998be
Source0: %{name}-%{version}.tar.gz
ee4e9e1
09134bb
BuildRequires:  python2-devel
09134bb
49ebd37
#Requires: cx_Oracle
49ebd37
Requires: MySQL-python
Alejandro Alvarez Ayllon c612628
%if %{?fedora}%{!?fedora:0} >= 18 || %{?rhel}%{!?rhel:0} >= 7
Alejandro Alvarez Ayllon c612628
Requires: python-django >= 1.3.7
Alejandro Alvarez Ayllon c612628
%else
ee4e9e1
Requires: Django >= 1.3.7
Alejandro Alvarez Ayllon c612628
%endif
49ebd37
Requires: httpd
Alejandro Alvarez Ayllon 302b1db
Requires: mod_ssl
49ebd37
Requires: mod_wsgi
49ebd37
Requires: python
5b3ba42
Requires: python-decorator
ee4e9e1
ee4e9e1
%description
ee4e9e1
FTS v3 web application for monitoring,
ee4e9e1
it gives a detailed view of the current state of FTS
ee4e9e1
including the queue with submitted transfer-jobs,
ee4e9e1
the active, failed and finished transfers, as well
ee4e9e1
as some statistics (e.g. success rate)
ee4e9e1
1d804da
%post
1d804da
service httpd condrestart
1d804da
5b3ba42
%package selinux
09134bb
Summary:        SELinux support for fts-monitoring
09134bb
Group:          Applications/Internet
5b3ba42
Requires:       fts-monitoring = %{version}-%{release}
5b3ba42
5b3ba42
%description selinux
5b3ba42
This package labels port 8449, used by fts-monitoring, as http_port_t,
5b3ba42
so Apache can bind to it.
5b3ba42
5b3ba42
%post selinux
1d804da
if [ $1 -gt 0 ] ; then # First install
5b3ba42
    semanage port -a -t http_port_t -p tcp 8449
5b3ba42
    setsebool -P httpd_can_network_connect=1 
5b3ba42
    libnzz="/usr/lib64/oracle/11.2.0.3.0/client/lib64/libnnz11.so"
5b3ba42
    if [ -f "$libnzz" ]; then
5b3ba42
        execstack -c "$libnzz"
5b3ba42
    fi
5b3ba42
fi
5b3ba42
5b3ba42
%preun selinux
1d804da
if [ $1 -eq 0 ] ; then # Final removal
5b3ba42
    semanage port -d -t http_port_t -p tcp 8449
5b3ba42
    setsebool -P httpd_can_network_connect=0
5b3ba42
    libnzz="/usr/lib64/oracle/11.2.0.3.0/client/lib64/libnnz11.so"
5b3ba42
    if [ -f "$libnzz" ]; then
5b3ba42
        execstack -s "$libnzz"
5b3ba42
    fi
5b3ba42
fi
ee4e9e1
ee4e9e1
%prep
Alejandro Alvarez Ayllon 8544d33
%setup -q
ee4e9e1
ee4e9e1
%install
ee4e9e1
shopt -s extglob
ee4e9e1
mkdir -p %{buildroot}%{_datadir}/fts3web/
ee4e9e1
mkdir -p %{buildroot}%{_sysconfdir}/fts3web/
Alejandro Alvarez Ayllon b6998be
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
Alejandro Alvarez Ayllon b6998be
cp -r -p src/* %{buildroot}%{_datadir}/fts3web/
Alejandro Alvarez Ayllon b6998be
cp -r -p conf/fts3web %{buildroot}%{_sysconfdir}
Alejandro Alvarez Ayllon b6998be
install -m 644 conf/httpd.conf.d/ftsmon.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/
ee4e9e1
ee4e9e1
%files
ee4e9e1
%{_datadir}/fts3web
ee4e9e1
%config(noreplace) %{_sysconfdir}/httpd/conf.d/ftsmon.conf
ee4e9e1
%config(noreplace) %dir %{_sysconfdir}/fts3web/
ee4e9e1
%config(noreplace) %attr(640, root, apache) %{_sysconfdir}/fts3web/fts3web.ini
Alejandro Alvarez Ayllon b6998be
%doc LICENSE
ee4e9e1
5b3ba42
%files selinux
5b3ba42
ee4e9e1
%changelog
Alejandro Alvarez Ayllon 302b1db
* Tue Apr 18 2017 Alejandro Alarez Ayllon <aalvarez@cern.ch> - 3.6.8-1
Alejandro Alvarez Ayllon 302b1db
- Update for new upstream release
Alejandro Alvarez Ayllon 302b1db
a05a5c1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-2
a05a5c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a05a5c1
Alejandro Alvarez Ayllon 8544d33
* Tue Apr 19 2016 Alejandro Alarez Ayllon <aalvarez@cern.ch> - 3.4.0-1
Alejandro Alvarez Ayllon 8544d33
- Update for new upstream release
Alejandro Alvarez Ayllon 8544d33
Alejandro Alvarez Ayllon c612628
* Mon Feb 22 2016 Alejandro Alarez Ayllon <aalvarez@cern.ch> - 3.3.2-3
Alejandro Alvarez Ayllon c612628
- Depend on python-django for Fedora > 17 and EL > 6
Alejandro Alvarez Ayllon c612628
1a858d3
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.2-2
1a858d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1a858d3
Alejandro Alvarez Ayllon 48ff70c
* Tue Sep 22 2015 Alejandro Alarez Ayllon <aalvarez@cern.ch> - 3.3.2-1
Alejandro Alvarez Ayllon 48ff70c
- Update for new upstream release
Alejandro Alvarez Ayllon b6998be
* Mon Sep 07 2015 Alejandro Alarez Ayllon <aalvarez@cern.ch> - 3.3.0-1
Alejandro Alvarez Ayllon b6998be
- Update for new upstream release
21bcc47
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.32-2
21bcc47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Alejandro Alvarez Ayllon 27eb507
* Fri Mar 06 2015 Alejandro Alarez Ayllon <aalvarez@cern.ch> - 3.2.32-1
Alejandro Alvarez Ayllon 27eb507
  - Update for new upstream release
Alejandro Alvarez Ayllon 649dafe
* Wed Nov 26 2014 Alejandro Alarez Ayllon <aalvarez@cern.ch> - 3.2.30-1
Alejandro Alvarez Ayllon 649dafe
  - Update for new upstream release
75f9658
* Mon May 12 2014 Michal Simon <michal.simon@cern.ch> - 3.2.26.2-2
75f9658
  - Update for new upstream release
75f9658
* Mon May 12 2014 Michal Simon <michal.simon@cern.ch> - 3.2.26-1
1d804da
  - Update for new upstream release
09134bb
* Tue Oct 08 2013 Alejandro Alvarez <aalvarez@cern.ch> - 3.1.27-1
5b3ba42
  - Added selinux rpm
09134bb
* Mon Sep 02 2013 Michal Simon <michal.simon@cern.ch> - 3.1.1-2
1d804da
  - since it is a noarch package removing '%{?_isa}' sufix
09134bb
* Wed Aug 28 2013 Michal Simon <michal.simon@cern.ch> - 3.1.1-1
ee4e9e1
  - replacing '--no-preserve=ownership'
ee4e9e1
  - python macros have been removed
ee4e9e1
  - comments regarding svn have been removed
Alejandro Alvarez Ayllon 302b1db
  - '%%{_builddir}/%%{name}-%%{version}/' prefix is not used anymore
ee4e9e1
  - more detailed description
09134bb
* Tue Apr 30 2013 Michal Simon <michal.simon@cern.ch> - 3.1.0-1
ee4e9e1
  - First EPEL release
Alejandro Alvarez Ayllon b6998be