|
Alejandro Alvarez Ayllon |
b6998be |
Summary: FTS3 Web Application for monitoring
|
|
Alejandro Alvarez Ayllon |
b6998be |
Name: fts-monitoring
|
|
|
85200f1 |
Version: 3.8.3
|
|
|
85200f1 |
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 |
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:
|
|
|
5ed47fc |
# git clone https://gitlab.cern.ch/fts/fts-monitoring.git -b master --depth=1 fts-monitoring-3.7.8
|
|
|
5ed47fc |
# cd fts-monitoring-3.7.8
|
|
|
5ed47fc |
# git checkout v3.7.8
|
|
Alejandro Alvarez Ayllon |
8544d33 |
# cd ..
|
|
|
5ed47fc |
# tar --exclude-vcs -vczf fts-monitoring-3.7.8.tar.gz fts-monitoring-3.7.8
|
|
Alejandro Alvarez Ayllon |
b6998be |
Source0: %{name}-%{version}.tar.gz
|
|
|
ee4e9e1 |
|
|
|
09134bb |
BuildRequires: python2-devel
|
|
|
09134bb |
|
|
|
5ed47fc |
%if %{?fedora}%{!?fedora:0} >= 28
|
|
|
2ea7fa1 |
Requires: python2-mysql
|
|
|
5ed47fc |
%else
|
|
|
5ed47fc |
Requires: MySQL-python
|
|
|
5ed47fc |
%endif
|
|
|
5ed47fc |
|
|
Alejandro Alvarez Ayllon |
c612628 |
%if %{?fedora}%{!?fedora:0} >= 18 || %{?rhel}%{!?rhel:0} >= 7
|
|
|
aed7303 |
%if %{?fedora}%{!?fedora:0} >= 28
|
|
|
aed7303 |
Requires: python2-django1.11 >= 1.3.7
|
|
|
aed7303 |
%else
|
|
Alejandro Alvarez Ayllon |
c612628 |
Requires: python-django >= 1.3.7
|
|
|
aed7303 |
%endif
|
|
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
|
|
|
5ed47fc |
|
|
|
5ed47fc |
%if %{?fedora}%{!?fedora:0} >= 28
|
|
|
2ea7fa1 |
Requires: python2-mod_wsgi
|
|
|
2ea7fa1 |
Requires: python2
|
|
|
2ea7fa1 |
Requires: python2-decorator
|
|
|
5ed47fc |
%else
|
|
|
5ed47fc |
Requires: mod_wsgi
|
|
|
5ed47fc |
Requires: python
|
|
|
5ed47fc |
Requires: python-decorator
|
|
|
5ed47fc |
%endif
|
|
|
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
|
|
|
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 |
|
|
|
85200f1 |
%if %{?rhel}%{!?rhel:0} >= 7
|
|
|
85200f1 |
%package firewalld
|
|
|
85200f1 |
Summary: FTS3 Web Application Firewalld
|
|
|
85200f1 |
Group: Applications/Internet
|
|
|
85200f1 |
|
|
|
85200f1 |
Requires: firewalld-filesystem
|
|
|
85200f1 |
|
|
|
85200f1 |
%description firewalld
|
|
|
85200f1 |
FTS3 Web Application firewalld.
|
|
|
85200f1 |
|
|
|
85200f1 |
%endif
|
|
|
85200f1 |
|
|
|
85200f1 |
|
|
|
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/
|
|
|
85200f1 |
%if %{?rhel}%{!?rhel:0} >=7
|
|
|
85200f1 |
mkdir -p %{buildroot}/%{_prefix}/lib/firewalld/services/
|
|
|
85200f1 |
install -m 644 conf/fts3firewalld/ftsmon.xml %{buildroot}/%{_prefix}/lib/firewalld/services/ftsmon.xml
|
|
|
85200f1 |
%endif
|
|
|
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 |
|
|
|
85200f1 |
%if %{?rhel}%{!?rhel:0} >= 7
|
|
|
85200f1 |
%files firewalld
|
|
|
85200f1 |
%config(noreplace) %{_prefix}/lib/firewalld/services/ftsmon.xml
|
|
|
85200f1 |
%endif
|
|
|
85200f1 |
|
|
|
5b3ba42 |
%files selinux
|
|
|
5b3ba42 |
|
|
|
ee4e9e1 |
%changelog
|
|
|
85200f1 |
* Tue Feb 26 2019 Andrea Manzi <amanzi@cern.ch> - 3.8.3-1
|
|
|
85200f1 |
- new upstream release
|
|
|
85200f1 |
|
|
|
823f815 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.8-5
|
|
|
823f815 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
823f815 |
|
|
|
52a566e |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.8-4
|
|
|
52a566e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
52a566e |
|
|
|
88f5cae |
* Fri Mar 16 2018 Miro HronĨok <mhroncok@redhat.com> - 3.7.8-3
|
|
|
aed7303 |
- Require python2-django1.11 on F28+
|
|
|
aed7303 |
(See https://fedoraproject.org/wiki/Changes/Django20)
|
|
|
aed7303 |
|
|
|
5ed47fc |
* Tue Feb 20 2018 Andrea Manzi <amanzi@cern.ch> - 3.7.8-1
|
|
|
5ed47fc |
- new upstream release
|
|
|
5ed47fc |
|
|
|
2ea7fa1 |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.8-5
|
|
|
2ea7fa1 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
2ea7fa1 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
2ea7fa1 |
|
|
|
3c837ea |
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.8-4
|
|
|
3c837ea |
- Escape macros in %%changelog
|
|
|
3c837ea |
|
|
|
b7b7f5a |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.8-3
|
|
|
b7b7f5a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b7b7f5a |
|
|
|
d06ab3a |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.8-2
|
|
|
d06ab3a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
d06ab3a |
|
|
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
|
|
|
3c837ea |
- 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 |
|