2015-08-05 15:38:28 +00:00
|
|
|
%global srcname pid
|
|
|
|
|
2019-03-05 15:52:04 +00:00
|
|
|
%global common_description %{expand:
|
|
|
|
pid provides a PidFile class that manages PID files. PidFile features:
|
|
|
|
- stale detection
|
|
|
|
- locking using fcntl
|
|
|
|
- chmod (default is 0o644)
|
|
|
|
- chown
|
|
|
|
- custom exceptions
|
|
|
|
|
|
|
|
PidFile can also be used as a context manager or a decorator.}
|
|
|
|
|
2019-03-05 16:06:23 +00:00
|
|
|
%if %{defined el6}
|
|
|
|
%bcond_without python2
|
2019-03-05 16:08:48 +00:00
|
|
|
# nose is too old
|
|
|
|
%bcond_with python2_tests
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
|
|
|
|
2019-03-05 16:06:23 +00:00
|
|
|
%if %{defined el7}
|
|
|
|
%bcond_without python2
|
2019-03-05 16:08:48 +00:00
|
|
|
%bcond_without python2_tests
|
2019-03-05 16:06:23 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%bcond_without python3
|
2019-03-05 16:08:48 +00:00
|
|
|
%bcond_without python3_tests
|
2019-03-05 16:06:23 +00:00
|
|
|
|
2015-08-05 15:38:28 +00:00
|
|
|
Name: python-%{srcname}
|
2019-03-05 15:59:47 +00:00
|
|
|
Version: 2.2.3
|
2020-05-23 06:06:42 +00:00
|
|
|
Release: 7%{?dist}
|
2015-08-05 15:38:28 +00:00
|
|
|
Summary: PID file management library
|
|
|
|
|
|
|
|
License: ASL 2.0
|
2019-03-05 15:59:47 +00:00
|
|
|
URL: https://github.com/trbs/pid
|
|
|
|
Source0: %pypi_source
|
2019-01-24 15:26:40 +00:00
|
|
|
|
2019-03-05 16:08:48 +00:00
|
|
|
# https://github.com/trbs/pid/pull/23
|
|
|
|
Patch0: use-standard-library-mock-when-available.patch
|
|
|
|
|
2015-08-05 15:38:28 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-03-05 15:52:04 +00:00
|
|
|
%description %{common_description}
|
2015-08-05 15:38:28 +00:00
|
|
|
|
2019-01-24 15:26:40 +00:00
|
|
|
%if %{with python2}
|
|
|
|
%package -n python2-%{srcname}
|
2019-03-05 15:52:04 +00:00
|
|
|
Summary: %{summary}
|
2015-08-05 15:38:28 +00:00
|
|
|
|
2019-03-05 15:59:47 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
2019-03-05 16:08:48 +00:00
|
|
|
%if %{with python2_tests}
|
|
|
|
BuildRequires: python2-nose >= 1.0
|
|
|
|
BuildRequires: python2-mock
|
|
|
|
%endif
|
2015-08-05 15:38:28 +00:00
|
|
|
|
2019-01-24 15:26:40 +00:00
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
2015-08-05 15:38:28 +00:00
|
|
|
|
2019-03-05 15:52:04 +00:00
|
|
|
%description -n python2-%{srcname} %{common_description}
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
2019-03-05 15:52:04 +00:00
|
|
|
Summary: %{summary}
|
2019-01-24 15:26:40 +00:00
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2019-03-05 16:08:48 +00:00
|
|
|
%if %{with python3_tests}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-nose >= 1.0
|
|
|
|
%endif
|
2019-01-24 15:26:40 +00:00
|
|
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
|
2019-03-05 15:52:04 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{srcname} %{common_description}
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
2015-08-05 15:38:28 +00:00
|
|
|
|
|
|
|
%prep
|
2019-01-24 15:26:40 +00:00
|
|
|
# This needs to have a blank line after because of a bug in the EL6 macros
|
|
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
|
|
2019-03-05 15:53:36 +00:00
|
|
|
rm -rf %{srcname}.egg-info
|
2015-08-05 15:38:28 +00:00
|
|
|
|
|
|
|
%build
|
2019-01-24 15:26:40 +00:00
|
|
|
%if %{with python2}
|
|
|
|
%py2_build
|
|
|
|
%endif
|
|
|
|
%if %{with python3}
|
2015-08-05 15:38:28 +00:00
|
|
|
%py3_build
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
2015-08-05 15:38:28 +00:00
|
|
|
|
|
|
|
%install
|
2019-01-24 15:26:40 +00:00
|
|
|
%if %{with python2}
|
|
|
|
%py2_install
|
|
|
|
%endif
|
|
|
|
%if %{with python3}
|
2015-08-05 15:38:28 +00:00
|
|
|
%py3_install
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
2015-08-05 15:38:28 +00:00
|
|
|
|
|
|
|
%check
|
2019-03-05 16:08:48 +00:00
|
|
|
%if %{with python2_tests}
|
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} --verbose
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
2019-03-05 16:08:48 +00:00
|
|
|
%if %{with python3_tests}
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} --verbose
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%files -n python2-%{srcname}
|
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS CHANGELOG README.rst
|
2019-03-05 15:53:36 +00:00
|
|
|
%{python2_sitelib}/%{srcname}
|
|
|
|
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
2015-08-05 15:38:28 +00:00
|
|
|
|
2019-01-24 15:26:40 +00:00
|
|
|
%if %{with python3}
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
2015-08-05 15:38:28 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS CHANGELOG README.rst
|
2019-03-05 15:53:36 +00:00
|
|
|
%{python3_sitelib}/%{srcname}
|
|
|
|
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
2019-01-24 15:26:40 +00:00
|
|
|
%endif
|
2015-08-05 15:38:28 +00:00
|
|
|
|
|
|
|
%changelog
|
2020-05-23 06:06:42 +00:00
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 2.2.3-7
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-01-30 14:03:07 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-03 12:22:57 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2.3-5
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-16 10:45:59 +00:00
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2.3-4
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 15:10:31 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-03-08 01:22:40 +00:00
|
|
|
* Fri Mar 08 2019 Troy Dawson <tdawson@redhat.com> - 2.2.3-2
|
|
|
|
- Rebuilt to change main python from 3.4 to 3.6
|
|
|
|
|
2019-03-05 15:59:47 +00:00
|
|
|
* Tue Mar 05 2019 Carl George <carl@george.computer> - 2.2.3-1
|
|
|
|
- Latest upstream
|
2019-03-05 16:06:23 +00:00
|
|
|
- Build python3 subpackage on el6
|
2019-03-05 16:08:48 +00:00
|
|
|
- Run tests correctly
|
2019-03-05 15:59:47 +00:00
|
|
|
|
2019-02-02 08:19:52 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-14 01:24:13 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-15 23:01:01 +00:00
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.1-8
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-03-22 17:11:51 +00:00
|
|
|
* Thu Mar 22 2018 David Shea <dshea@redhat.com> - 2.1.1-7
|
|
|
|
- Remove the python2 package
|
|
|
|
|
2018-02-09 09:47:42 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-27 00:06:49 +00:00
|
|
|
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.1-5
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2017-07-27 11:17:28 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 09:57:03 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-13 14:45:42 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 2.1.1-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-11-29 15:44:05 +00:00
|
|
|
* Tue Nov 29 2016 David Shea <dshea@redhat.com> - 2.1.1-1
|
|
|
|
- Update to 2.1.1, which adds an optional allow_samepid parameter
|
|
|
|
|
2016-07-19 10:57:49 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-5
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 20:28:51 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-03 16:57:28 +00:00
|
|
|
* Tue Nov 03 2015 Robert Kuska <rkuska@redhat.com> - 2.0.1-3
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-08-05 15:38:28 +00:00
|
|
|
* Wed Aug 05 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.1-2
|
|
|
|
- Update to modern python packaging guidelines
|
|
|
|
|
|
|
|
* Tue Aug 4 2015 David Shea <dshea@redhat.com> - 2.0.1-1
|
|
|
|
- Initial package
|