python-pid/python-pid.spec

111 lines
2.9 KiB
RPMSpec
Raw Normal View History

2015-08-05 15:38:28 +00:00
%global srcname pid
Name: python-%{srcname}
Version: 2.1.1
2016-12-13 14:45:42 +00:00
Release: 2%{?dist}
2015-08-05 15:38:28 +00:00
Summary: PID file management library
License: ASL 2.0
URL: https://pypi.python.org/pypi/%{srcname}
Source0: https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
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.
%package -n python2-%{srcname}
Summary: PID file management library
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
2015-08-05 15:38:28 +00:00
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
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.
%package -n python3-%{srcname}
Summary: PID file management library
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose
2015-08-05 15:38:28 +00:00
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname}
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.
%prep
%autosetup -n %{srcname}-%{version}
rm -rf *.egg-info
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-%{srcname}
%license LICENSE
%doc AUTHORS CHANGELOG README.rst
%{python2_sitelib}/pid
%{python2_sitelib}/pid-*.egg-info
%files -n python3-%{srcname}
%license LICENSE
%doc AUTHORS CHANGELOG README.rst
%{python3_sitelib}/pid
%{python3_sitelib}/pid-*.egg-info
%changelog
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
* 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
* 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
* 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