b6735c
%global pypi_name plumbum
b94557
%global with_python2 0
b6735c
b6735c
Name:           python-%{pypi_name}
e4183d
Version:        1.6.8
5a1547
Release:        2%{?dist}
b6735c
Summary:        Shell combinators library
b6735c
b6735c
License:        MIT
b6735c
URL:            https://github.com/tomerfiliba/plumbum
b73522
Source0:        %{pypi_source}
b6735c
b6735c
BuildArch:      noarch
b94557
%if 0%{?with_python2}
7b8da4
BuildRequires:  python2-devel
b94557
%endif # if with_python2
b6735c
3104ab
BuildRequires:  python3-devel
3104ab
710ed1
%global _description\
710ed1
Ever wished the wrist-handiness of shell scripts be put into a real programming\
710ed1
language? Say hello to Plumbum Shell Combinators. Plumbum (Latin for lead,\
710ed1
which was used to create pipes back in the day) is a small yet feature-rich\
710ed1
library for shell script-like programs in Python. The motto of the library is\
710ed1
"Never write shell scripts again", and thus it attempts to mimic the shell\
710ed1
syntax ("shell combinators") where it makes sense, while keeping it all\
b6735c
pythonic and cross-platform.
b6735c
710ed1
%description %_description
710ed1
b94557
%if 0%{?with_python2}
710ed1
%package -n python2-%{pypi_name}
710ed1
Summary: %summary
7b8da4
Requires:       python2-six
710ed1
%{?python_provide:%python_provide python2-%{pypi_name}}
710ed1
710ed1
%description -n python2-%{pypi_name} %_description
b94557
%endif # with_python2
710ed1
3104ab
%package -n python3-%{pypi_name}
3104ab
Summary:        Shell combinators library
3104ab
Requires:       python3-six
3104ab
3104ab
%description -n python3-%{pypi_name}
3104ab
Ever wished the wrist-handiness of shell scripts be put into a real programming
3104ab
language? Say hello to Plumbum Shell Combinators. Plumbum (Latin for lead,
3104ab
which was used to create pipes back in the day) is a small yet feature-rich
3104ab
library for shell script-like programs in Python. The motto of the library is
3104ab
"Never write shell scripts again", and thus it attempts to mimic the shell
3104ab
syntax ("shell combinators") where it makes sense, while keeping it all
3104ab
pythonic and cross-platform.
3104ab
b6735c
%prep
b6735c
%setup -q -n %{pypi_name}-%{version}
b6735c
rm -rf %{pypi_name}.egg-info
b6735c
b94557
rm -rf "%{py3dir}"
b94557
mkdir -p "%{py3dir}"
b94557
cp -a * "%{py3dir}"
3104ab
b6735c
%build
b94557
%if 0%{?with_python2}
b73522
%{py2_build}
b94557
%endif # with_python2
b6735c
b94557
pushd "%{py3dir}"
b73522
%{py3_build}
3104ab
popd
b6735c
b6735c
%install
b94557
pushd "%{py3dir}"
b73522
%{py3_install}
3104ab
popd
3104ab
b94557
%if 0%{?with_python2}
b73522
%{py2_install}
b94557
%endif # with_python2
b6735c
b94557
%if 0%{?with_python2}
710ed1
%files -n python2-%{pypi_name}
b6735c
%doc LICENSE README.rst
b73522
%{python2_sitelib}/%{pypi_name}
b73522
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
b94557
%endif # with_python2
b6735c
3104ab
%files -n python3-%{pypi_name}
3104ab
%doc LICENSE README.rst
3104ab
%{python3_sitelib}/%{pypi_name}
3104ab
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
3104ab
b6735c
b6735c
%changelog
5a1547
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-2
5a1547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5a1547
e4183d
* Sun Nov 24 2019 Greg Hellings <greg.hellings@gmail.com> - 1.6.8-1
e4183d
- New version 1.6.8
e4183d
7e2f92
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.7-4
7e2f92
- Rebuilt for Python 3.8.0rc1 (#1748018)
7e2f92
606018
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.7-3
606018
- Rebuilt for Python 3.8
606018
a8e6f3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.7-2
a8e6f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a8e6f3
b94557
* Mon Jul 22 2019 Greg Hellings <greg.hellings@gmail.com> - 1.6.7-1
b94557
- Upstream version 1.6.7
b94557
- Drop python2 package in Fedora Rawhide
b94557
b4fe13
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-2
b4fe13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b4fe13
b73522
* Wed Jul 25 2018 Greg Hellings <greg.hellings@gmail.com> - 1.6.6-1
b73522
- Upstream version 1.6.6
b73522
- Fix FTBFS BZ#1605834
b73522
- Switch to standard Python macros for source URL and building
b73522
ff6e17
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-11
ff6e17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ff6e17
5ab179
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-10
5ab179
- Rebuilt for Python 3.7
5ab179
a43f6a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-9
a43f6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a43f6a
7b8da4
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.6.0-8
7b8da4
- Update Python 2 dependency declarations to new packaging standards
7b8da4
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
7b8da4
710ed1
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.6.0-7
710ed1
- Python 2 binary package renamed to python2-plumbum
710ed1
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
710ed1
1a5045
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-6
1a5045
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1a5045
245c2c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-5
245c2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
245c2c
42a13a
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-4
42a13a
- Rebuild for Python 3.6
42a13a
b0215e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-3
b0215e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b0215e
ad8353
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
ad8353
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ad8353
92899c
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.6.0-1
92899c
- Update to 1.6.0
92899c
cb5db5
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-3
cb5db5
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
cb5db5
1804b9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-2
1804b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1804b9
448545
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.4.2-1
448545
- Update to 1.4.2
448545
f19855
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5
f19855
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f19855
9b77a5
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.1.0-4
9b77a5
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
9b77a5
d82b18
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
d82b18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d82b18
418842
* Fri Feb 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1.0-2
418842
- Patch the Python 3.3 module subclass error.
418842
22858e
* Fri Feb 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1.0-1
22858e
- Update to 1.1.0.
22858e
3104ab
* Fri Feb 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.1-2
3104ab
- Introduce python3 subpackage.
3104ab
67ad12
* Mon Nov 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.1-1
67ad12
- Update to 1.0.1.
67ad12
44877e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
44877e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
44877e
b6735c
* Mon May 14 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.0-1
b6735c
- Initial package.