e833ec1
# Disable automatic dependencies generation
e833ec1
# It fails for xattr as pyxattr provices pyxattr, not xattr
e833ec1
%{?python_disable_dependency_generator}
e833ec1
86c8fb0
%global pypi_name pifpaf
86c8fb0
7bc502e
%if 0%{?fedora} || 0%{?rhel} > 7
7bc502e
%bcond_with    python2
7bc502e
%bcond_without python3
7bc502e
%else
7bc502e
%bcond_without python2
7bc502e
%bcond_with    python3
86c8fb0
%endif
86c8fb0
86c8fb0
Name:           python-pifpaf
7bc502e
Version:        2.2.2
d646154
Release:        20%{?dist}
86c8fb0
Summary:        Pifpaf is a suite of fixtures to manage daemons 
86c8fb0
License:        ASL 2.0
86c8fb0
URL:            https://github.com/jd/pifpaf
7bc502e
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
7bc502e
86c8fb0
BuildArch:      noarch
86c8fb0
7bc502e
%if %{with python2}
86c8fb0
%package -n python2-%{pypi_name}
86c8fb0
Summary:        Pifpaf is a suite of fixtures to manage daemons
86c8fb0
%{?python_provide:%python_provide python2-pifpaf}
86c8fb0
0c51a9c
BuildRequires:    python2-setuptools
86c8fb0
BuildRequires:    python2-devel
0c51a9c
BuildRequires:    python2-pbr
86c8fb0
7bc502e
Requires:         python2-daiquiri
7bc502e
Requires:         python2-psutil
0c51a9c
Requires:         python2-pbr
0c51a9c
Requires:         python2-six
0c51a9c
Requires:         python2-fixtures
0c51a9c
Requires:         python2-jinja2
86c8fb0
869ffeb
%if 0%{?rhel} <= 7
869ffeb
Requires:         python-click
869ffeb
Requires:         pyxattr
869ffeb
%else
869ffeb
Requires:         python2-click
869ffeb
Requires:         python2-pyxattr
869ffeb
%endif
869ffeb
86c8fb0
%description -n python2-%{pypi_name}
86c8fb0
Pifpaf is a suite of fixtures and a command-line tool that allows to start and
86c8fb0
stop daemons for a quick throw-away usage.
86c8fb0
7bc502e
%endif
7bc502e
86c8fb0
7bc502e
%if %{with python3}
86c8fb0
%package -n python3-%{pypi_name}
86c8fb0
86c8fb0
Summary:          Pifpaf is a suite of fixtures to manage daemons
86c8fb0
%{?python_provide:%python_provide python3-pifpaf}
86c8fb0
86c8fb0
BuildRequires:    python3-setuptools
86c8fb0
BuildRequires:    python3-devel
442b488
BuildRequires:    python3-pbr
86c8fb0
7bc502e
Requires:         python3-click
7bc502e
Requires:         python3-daiquiri
7bc502e
Requires:         python3-psutil
86c8fb0
Requires:         python3-pbr
86c8fb0
Requires:         python3-six
86c8fb0
Requires:         python3-fixtures
86c8fb0
Requires:         python3-pyxattr
81e297a
Requires:         python3-jinja2
86c8fb0
86c8fb0
%description -n python3-%{pypi_name}
86c8fb0
Pifpaf is a suite of fixtures and a command-line tool that allows to start and
86c8fb0
stop daemons for a quick throw-away usage. 
86c8fb0
86c8fb0
%endif
86c8fb0
86c8fb0
%description
86c8fb0
Pifpaf is a suite of fixtures and a command-line tool that allows to start and
86c8fb0
stop daemons for a quick throw-away usage. 
86c8fb0
86c8fb0
%prep
86c8fb0
%setup -q -n %{pypi_name}-%{version}
86c8fb0
86c8fb0
%build
7bc502e
%if %{with python2}
86c8fb0
%py2_build
7bc502e
%endif
86c8fb0
7bc502e
%if %{with python3}
defd116
%py3_build
86c8fb0
%endif
86c8fb0
86c8fb0
%install
7bc502e
%if %{with python2}
7bc502e
%py2_install
86c8fb0
%endif
86c8fb0
7bc502e
%if %{with python3}
7bc502e
%py3_install
7bc502e
%endif
86c8fb0
86c8fb0
7bc502e
%if %{with python2}
86c8fb0
%files -n python2-%{pypi_name}
86c8fb0
%doc README.rst
86c8fb0
%license LICENSE
86c8fb0
%{_bindir}/pifpaf
86c8fb0
%{python2_sitelib}/*
7bc502e
%endif
86c8fb0
7bc502e
%if %{with python3}
86c8fb0
%files -n python3-%{pypi_name}
86c8fb0
%doc README.rst
86c8fb0
%license LICENSE
7bc502e
%{_bindir}/pifpaf
86c8fb0
%{python3_sitelib}/*
86c8fb0
%endif
86c8fb0
86c8fb0
%changelog
d646154
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-20
d646154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d646154
cee5fba
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-19
cee5fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cee5fba
15e3d2f
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-18
15e3d2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
15e3d2f
f9850ec
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.2.2-17
f9850ec
- Rebuilt for Python 3.12
f9850ec
bacacb9
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-16
bacacb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
bacacb9
42b231c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-15
42b231c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
42b231c
35dd963
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.2.2-14
35dd963
- Rebuilt for Python 3.11
35dd963
11cdb34
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-13
11cdb34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
11cdb34
8ed15d4
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-12
8ed15d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8ed15d4
6d6a536
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.2.2-11
6d6a536
- Rebuilt for Python 3.10
6d6a536
286ea7a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-10
286ea7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
286ea7a
474b7da
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-9
474b7da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
474b7da
aa89710
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.2.2-8
aa89710
- Rebuilt for Python 3.9
aa89710
2972234
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-7
2972234
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2972234
1aa9723
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2.2-6
1aa9723
- Rebuilt for Python 3.8.0rc1 (#1748018)
1aa9723
7980df8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2.2-5
7980df8
- Rebuilt for Python 3.8
7980df8
4867fce
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-4
4867fce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4867fce
869ffeb
* Thu Feb 07 2019 Javier Peña <jpena@redhat.com> - 2.2.2-3
869ffeb
- Fix dependencies when building on RHEL 7
869ffeb
e833ec1
* Fri Feb 01 2019 Alfredo Moralejo <amoralej@redhat.com> - 2.2.2-2
e833ec1
- Disable automatic dependencies generation.
e833ec1
7bc502e
* Fri Feb 01 2019 Javier Peña <jpena@redhat.com> - 2.2.2-1
7bc502e
- Rebase to 2.2.2
7bc502e
- Drop python2 subpackage in Fedora
7bc502e
defd116
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.0-7
defd116
- Drop explicit locale setting
defd116
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
defd116
73a1c06
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
73a1c06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
73a1c06
e6bcc5d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-5
e6bcc5d
- Rebuilt for Python 3.7
e6bcc5d
0c51a9c
* Tue Mar 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.0-4
0c51a9c
- Update Python 2 dependency declarations to new packaging standards
0c51a9c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
0c51a9c
1a60501
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
1a60501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1a60501
5bce59c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
5bce59c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5bce59c
81e297a
* Wed May 03 2017 Pradeep Kilambi <pkilambi@redhat.com> - 1.1.0-1
81e297a
- rebase to 1.1.0
81e297a
6564338
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.1-2
6564338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6564338
d8d9cde
* Wed Feb 08 2017 Pradeep Kilambi <pkilambi@redhat.com> - 0.24.1-1
d8d9cde
- rebase to 0.24.0
d8d9cde
5c21a0e
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-2
5c21a0e
- Rebuild for Python 3.6
5c21a0e
86c8fb0
* Fri Jul 29 2016 Pradeep Kilambi <pkilambi@redhat.com> - 0.12.0-1
86c8fb0
- rebase to 0.12.0
86c8fb0
86c8fb0
* Fri Jul 29 2016 Pradeep Kilambi <pkilambi@redhat.com> - 0.6.0-2
86c8fb0
- dropped macros
86c8fb0
- fixed python-xattr
86c8fb0
- fixed python3 symlink binaries
86c8fb0
86c8fb0
* Thu Jun 23 2016 Pradeep Kilambi <pkilambi@redhat.com> - 0.6.0-1
86c8fb0
- initial package release