3107147
%global srcname pid
3107147
3107147
Name:           python-%{srcname}
1062f84
Version:        2.1.1
1062f84
Release:        1%{?dist}
3107147
Summary:        PID file management library
3107147
3107147
License:        ASL 2.0
3107147
URL:            https://pypi.python.org/pypi/%{srcname}
3107147
Source0:        https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
3107147
3107147
BuildArch:      noarch
3107147
3107147
%description
3107147
pid provides a PidFile class that manages PID files. PidFile features:
3107147
  - stale detection
3107147
  - locking using fcntl
3107147
  - chmod (default is 0o644)
3107147
  - chown
3107147
  - custom exceptions
3107147
3107147
PidFile can also be used as a context manager or a decorator.
3107147
3107147
%package -n python2-%{srcname}
3107147
Summary:        PID file management library
0eab078
0eab078
BuildRequires:  python2-devel
0eab078
BuildRequires:  python-setuptools
0eab078
BuildRequires:  python-nose
0eab078
3107147
%{?python_provide:%python_provide python2-%{srcname}}
3107147
3107147
%description -n python2-%{srcname}
3107147
pid provides a PidFile class that manages PID files. PidFile features:
3107147
  - stale detection
3107147
  - locking using fcntl
3107147
  - chmod (default is 0o644)
3107147
  - chown
3107147
  - custom exceptions
3107147
3107147
PidFile can also be used as a context manager or a decorator.
3107147
3107147
%package -n python3-%{srcname}
3107147
Summary:        PID file management library
0eab078
0eab078
BuildRequires:  python3-devel
0eab078
BuildRequires:  python3-setuptools
0eab078
BuildRequires:  python3-nose
0eab078
3107147
%{?python_provide:%python_provide python3-%{srcname}}
3107147
3107147
%description -n python3-%{srcname}
3107147
pid provides a PidFile class that manages PID files. PidFile features:
3107147
  - stale detection
3107147
  - locking using fcntl
3107147
  - chmod (default is 0o644)
3107147
  - chown
3107147
  - custom exceptions
3107147
3107147
PidFile can also be used as a context manager or a decorator.
3107147
3107147
%prep
3107147
%autosetup -n %{srcname}-%{version}
3107147
rm -rf *.egg-info
3107147
3107147
%build
3107147
%py2_build
3107147
%py3_build
3107147
3107147
%install
3107147
%py2_install
3107147
%py3_install
3107147
3107147
%check
3107147
%{__python2} setup.py test
3107147
%{__python3} setup.py test
3107147
3107147
%files -n python2-%{srcname}
3107147
%license LICENSE
3107147
%doc AUTHORS CHANGELOG README.rst
3107147
%{python2_sitelib}/pid
3107147
%{python2_sitelib}/pid-*.egg-info
3107147
3107147
%files -n python3-%{srcname}
3107147
%license LICENSE
3107147
%doc AUTHORS CHANGELOG README.rst
3107147
%{python3_sitelib}/pid
3107147
%{python3_sitelib}/pid-*.egg-info
3107147
3107147
%changelog
1062f84
* Tue Nov 29 2016 David Shea <dshea@redhat.com> - 2.1.1-1
1062f84
- Update to 2.1.1, which adds an optional allow_samepid parameter
1062f84
ddd7942
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-5
ddd7942
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ddd7942
af7914c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
af7914c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
af7914c
Robert Kuska 5803453
* Tue Nov 03 2015 Robert Kuska <rkuska@redhat.com> - 2.0.1-3
Robert Kuska 5803453
- Rebuilt for Python3.5 rebuild
Robert Kuska 5803453
3107147
* Wed Aug 05 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.1-2
3107147
- Update to modern python packaging guidelines
3107147
3107147
* Tue Aug  4 2015 David Shea <dshea@redhat.com> - 2.0.1-1
3107147
- Initial package