Massimo fafe58
Massimo fafe58
%global srcname simplevisor
Massimo fafe58
Massimo fafe58
Name:		python-simplevisor
b51cd2
Version:	1.2
20a7c0
Release:	21%{?dist}
Massimo fafe58
Summary:	Python simple daemons supervisor
Massimo fafe58
License:	ASL 2.0
Massimo 75d169
URL:		https://github.com/cern-mig/%{name}
b51cd2
Source0:	https://pypi.python.org/packages/ef/a1/d3fef46a01312d8cb470503a476f813bd31abbc2136be37eb9fd1f537b73/%{srcname}-%{version}.tar.gz
Massimo fafe58
BuildArch:	noarch
Massimo fafe58
BuildRequires:	python3-devel
d4af56
%if 0%{?fedora} >= 24
b51cd2
BuildRequires:	perl-generators
d4af56
%endif
a3a5d7
BuildRequires:	perl(Getopt::Long)
a3a5d7
BuildRequires:	perl(List::Util)
a3a5d7
BuildRequires:	perl(No::Worries)
a3a5d7
BuildRequires:	perl(No::Worries::Die)
a3a5d7
BuildRequires:	perl(No::Worries::Log)
a3a5d7
BuildRequires:	perl(No::Worries::PidFile)
a3a5d7
BuildRequires:	perl(No::Worries::Proc)
a3a5d7
BuildRequires:	perl(No::Worries::Syslog)
a3a5d7
BuildRequires:	perl(No::Worries::Warn)
a3a5d7
BuildRequires:	perl(Pod::Usage)
a3a5d7
BuildRequires:	perl(sigtrap)
a3a5d7
BuildRequires:	perl(strict)
a3a5d7
BuildRequires:	perl(Time::HiRes)
a3a5d7
BuildRequires:	perl(warnings)
Massimo fafe58
cbb831
%global _description\
cbb831
Simplevisor is a simple daemons supervisor, it is inspired by\
Massimo fafe58
Erlang OTP and it can supervise hierarchies of services.
Massimo fafe58
cbb831
%description %_description
cbb831
Massimo fafe58
%package -n python3-simplevisor
Massimo fafe58
Summary:	Python simple daemons supervisor
Massimo fafe58
Massimo fafe58
%description -n python3-simplevisor
Massimo fafe58
Simplevisor is a simple daemons supervisor, it is inspired by
Massimo fafe58
Erlang OTP and it can supervise hierarchies of services.
Massimo fafe58
Massimo fafe58
%prep
Massimo fafe58
%setup -q -n %{srcname}-%{version}
4b7fcc
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
Massimo fafe58
Massimo fafe58
%build 
Massimo fafe58
%{__python3} setup.py build
Massimo fafe58
Massimo fafe58
%install
b51cd2
rm -fr $RPM_BUILD_ROOT
4b7fcc
%{__python3} setup.py install --with-data-files --skip-build --root $RPM_BUILD_ROOT
b51cd2
install -D -m 644 man/%{srcname}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{srcname}.1;
b51cd2
install -D -m 644 man/%{srcname}-control.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{srcname}-control.1;
b51cd2
install -D -m 644 man/%{srcname}-loop.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{srcname}-loop.1;
Massimo fafe58
Massimo fafe58
%check
Massimo fafe58
%{__python3} setup.py test
4b7fcc
# And remove compiled documentation.
Massimo fafe58
rm -f test/*.pyc
Massimo fafe58
4b7fcc
%files -n python3-simplevisor
4b7fcc
%doc LICENSE README.rst CHANGES
Massimo fafe58
%{_mandir}/man?/%{srcname}.1*
Massimo fafe58
%{_mandir}/man?/%{srcname}-control.1*
Massimo fafe58
%{_mandir}/man?/%{srcname}-loop.1*
Massimo fafe58
%attr(755, root, root) /usr/bin/simplevisor
Massimo fafe58
%attr(755, root, root) /usr/bin/simplevisor-control
Massimo fafe58
%attr(755, root, root) /usr/bin/simplevisor-loop
224cff
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
Massimo fafe58
%{python3_sitelib}/%{srcname}/
Massimo fafe58
Massimo fafe58
%changelog
20a7c0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-21
20a7c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
20a7c0
f5c274
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2-20
f5c274
- Rebuilt for Python 3.9
f5c274
a3a5d7
* Tue Mar 31 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.2-19
a3a5d7
- Specify all perl dependencies
a3a5d7
a3b29a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-18
a3b29a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a3b29a
97fd5d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2-17
97fd5d
- Rebuilt for Python 3.8.0rc1 (#1748018)
97fd5d
4b7fcc
* Mon Aug 26 2019 Lionel Cons <lionel.cons@cern.ch> - 1.2-16
4b7fcc
- Subpackage python2-simplevisor has been removed
4b7fcc
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
4b7fcc
2091e7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2-15
2091e7
- Rebuilt for Python 3.8
2091e7
739806
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-14
739806
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
739806
8ad969
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-13
8ad969
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8ad969
4dcea0
* Mon Jul 23 2018 Lionel Cons <lionel.cons@cern.ch> - 1.2-12
4dcea0
- Fixed building using Python 2 (#1605914).
4dcea0
0053c4
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-11
0053c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0053c4
6d99db
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2-10
6d99db
- Rebuilt for Python 3.7
6d99db
f6ab70
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2-9
f6ab70
- Update Python 2 dependency declarations to new packaging standards
f6ab70
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
f6ab70
c3febd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-8
c3febd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c3febd
cbb831
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2-7
cbb831
- Python 2 binary package renamed to python2-simplevisor
cbb831
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
cbb831
f3eee2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-6
f3eee2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f3eee2
9f55cf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-5
9f55cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9f55cf
53fbce
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2-4
53fbce
- Rebuild for Python 3.6
53fbce
715503
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
715503
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
715503
cb9364
* Mon Jul  4 2016 Lionel Cons <lionel.cons@cern.ch> - 1.2-2
cb9364
- Corrected /usr/bin/simplevisor shebang in Rawhide
cb9364
b51cd2
* Wed Jun 29 2016 Lionel Cons <lionel.cons@cern.ch> - 1.2-1
b51cd2
- Updated to upstream version (#1351066)
b51cd2
e58eac
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
e58eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e58eac
8dec00
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
8dec00
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
8dec00
890cfe
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
890cfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
890cfe
Adrien Devresse 124674
* Wed Apr 08 2015 Adrien Devresse <adevress at cern.ch> - 1.1-2
Adrien Devresse 124674
 - Disable python3 for EPEL7
Adrien Devresse 124674
Adrien Devresse 5bc435
* Tue Mar 31 2015 Adrien Devresse <adevress at cern.ch> - 1.1-1
Adrien Devresse 5bc435
 - Update to upstream 1.1 version
Adrien Devresse 5bc435
Adrien Devresse c8730a
* Thu Aug 14 2014 Adrien Devresse <adevress at cern.ch> - 1.0-1
Adrien Devresse c8730a
 - Update to upstream 1.0 version
Adrien Devresse c8730a
bcff99
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
bcff99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bcff99
1153d4
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.9-2
1153d4
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
1153d4
Massimo bcd146
* Sun Mar 09 2014 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.9-1
Massimo bcd146
- Updating to upstream version, rhbz #1071124.
Massimo bcd146
0b79fc
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3
0b79fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0b79fc
d91536
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.8-2
d91536
- Perl 5.18 rebuild
d91536
Massimo b11edb
* Fri Apr 26 2013 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.8-1
Massimo b11edb
- Updating to upstream 0.8.
Massimo b11edb
Massimo ba283c
* Mon Jan 28 2013 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.7-1
Massimo ba283c
- Updating to upstream 0.7.
Massimo ba283c
Massimo fafe58
* Thu Jan 17 2013 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.6-1
Massimo fafe58
- Updating to upstream 0.6.
Massimo fafe58
Massimo fafe58
* Fri Nov 30 2012 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.5-2
Massimo fafe58
- Use macros consistently.
Massimo fafe58
Massimo fafe58
* Fri Sep 14 2012 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.5-1
Massimo fafe58
- Updating to version 0.5.
Massimo fafe58
Massimo fafe58
* Thu Jul 05 2012 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.4-1
Massimo fafe58
- Updating to version 0.4.
Massimo fafe58
Massimo fafe58
* Mon Jun 25 2012 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.3-1
Massimo fafe58
- Updating to version 0.3.
Massimo fafe58
Massimo bcd146
* Wed Mar 14 2012 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.2-1
Massimo fafe58
- Improvements.
Massimo fafe58
Massimo bcd146
* Sun Mar 11 2012 Massimo Paladin <Massimo.Paladin@gmail.com> - 0.1-1
Massimo fafe58
- Initial packaging.