|
|
b6735cb |
%global pypi_name plumbum
|
|
|
3104abd |
%global with_python3 1
|
|
|
b6735cb |
|
|
|
b6735cb |
Name: python-%{pypi_name}
|
|
|
92899cb |
Version: 1.6.0
|
|
|
a43f6a0 |
Release: 9%{?dist}
|
|
|
b6735cb |
Summary: Shell combinators library
|
|
|
b6735cb |
|
|
|
b6735cb |
License: MIT
|
|
|
b6735cb |
URL: https://github.com/tomerfiliba/plumbum
|
|
|
67ad120 |
Source0: http://pypi.python.org/packages/source/p/plumbum/plumbum-%{version}.tar.gz
|
|
|
b6735cb |
|
|
|
b6735cb |
BuildArch: noarch
|
|
|
7b8da42 |
BuildRequires: python2-devel
|
|
|
b6735cb |
|
|
|
3104abd |
%if 0%{?with_python3}
|
|
|
3104abd |
BuildRequires: python3-devel
|
|
|
3104abd |
%endif # if with_python3
|
|
|
3104abd |
|
|
|
710ed1e |
%global _description\
|
|
|
710ed1e |
Ever wished the wrist-handiness of shell scripts be put into a real programming\
|
|
|
710ed1e |
language? Say hello to Plumbum Shell Combinators. Plumbum (Latin for lead,\
|
|
|
710ed1e |
which was used to create pipes back in the day) is a small yet feature-rich\
|
|
|
710ed1e |
library for shell script-like programs in Python. The motto of the library is\
|
|
|
710ed1e |
"Never write shell scripts again", and thus it attempts to mimic the shell\
|
|
|
710ed1e |
syntax ("shell combinators") where it makes sense, while keeping it all\
|
|
|
b6735cb |
pythonic and cross-platform.
|
|
|
b6735cb |
|
|
|
710ed1e |
%description %_description
|
|
|
710ed1e |
|
|
|
710ed1e |
%package -n python2-%{pypi_name}
|
|
|
710ed1e |
Summary: %summary
|
|
|
7b8da42 |
Requires: python2-six
|
|
|
710ed1e |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
710ed1e |
|
|
|
710ed1e |
%description -n python2-%{pypi_name} %_description
|
|
|
710ed1e |
|
|
|
3104abd |
%if 0%{?with_python3}
|
|
|
3104abd |
%package -n python3-%{pypi_name}
|
|
|
3104abd |
Summary: Shell combinators library
|
|
|
3104abd |
Requires: python3-six
|
|
|
3104abd |
|
|
|
3104abd |
%description -n python3-%{pypi_name}
|
|
|
3104abd |
Ever wished the wrist-handiness of shell scripts be put into a real programming
|
|
|
3104abd |
language? Say hello to Plumbum Shell Combinators. Plumbum (Latin for lead,
|
|
|
3104abd |
which was used to create pipes back in the day) is a small yet feature-rich
|
|
|
3104abd |
library for shell script-like programs in Python. The motto of the library is
|
|
|
3104abd |
"Never write shell scripts again", and thus it attempts to mimic the shell
|
|
|
3104abd |
syntax ("shell combinators") where it makes sense, while keeping it all
|
|
|
3104abd |
pythonic and cross-platform.
|
|
|
3104abd |
%endif # with_python3
|
|
|
3104abd |
|
|
|
b6735cb |
%prep
|
|
|
b6735cb |
%setup -q -n %{pypi_name}-%{version}
|
|
|
b6735cb |
rm -rf %{pypi_name}.egg-info
|
|
|
b6735cb |
|
|
|
3104abd |
%if 0%{?with_python3}
|
|
|
3104abd |
rm -rf %{py3dir}
|
|
|
3104abd |
cp -a . %{py3dir}
|
|
|
3104abd |
%endif # with_python3
|
|
|
3104abd |
|
|
|
b6735cb |
%build
|
|
|
b6735cb |
%{__python} setup.py build
|
|
|
b6735cb |
|
|
|
3104abd |
%if 0%{?with_python3}
|
|
|
3104abd |
pushd %{py3dir}
|
|
|
3104abd |
%{__python3} setup.py build
|
|
|
3104abd |
popd
|
|
|
3104abd |
%endif # with_python3
|
|
|
b6735cb |
|
|
|
b6735cb |
%install
|
|
|
3104abd |
%if 0%{?with_python3}
|
|
|
3104abd |
pushd %{py3dir}
|
|
|
3104abd |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
3104abd |
popd
|
|
|
3104abd |
%endif # with_python3
|
|
|
3104abd |
|
|
|
b6735cb |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
b6735cb |
|
|
|
710ed1e |
%files -n python2-%{pypi_name}
|
|
|
b6735cb |
%doc LICENSE README.rst
|
|
|
b6735cb |
%{python_sitelib}/%{pypi_name}
|
|
|
b6735cb |
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
b6735cb |
|
|
|
3104abd |
%if 0%{?with_python3}
|
|
|
3104abd |
%files -n python3-%{pypi_name}
|
|
|
3104abd |
%doc LICENSE README.rst
|
|
|
3104abd |
%{python3_sitelib}/%{pypi_name}
|
|
|
3104abd |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
3104abd |
%endif # with_python3
|
|
|
3104abd |
|
|
|
b6735cb |
|
|
|
b6735cb |
%changelog
|
|
|
a43f6a0 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-9
|
|
|
a43f6a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a43f6a0 |
|
|
|
7b8da42 |
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.6.0-8
|
|
|
7b8da42 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
7b8da42 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
7b8da42 |
|
|
|
710ed1e |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.6.0-7
|
|
|
710ed1e |
- Python 2 binary package renamed to python2-plumbum
|
|
|
710ed1e |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
710ed1e |
|
|
|
1a50456 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-6
|
|
|
1a50456 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
1a50456 |
|
|
|
245c2c1 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-5
|
|
|
245c2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
245c2c1 |
|
|
|
42a13a9 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-4
|
|
|
42a13a9 |
- Rebuild for Python 3.6
|
|
|
42a13a9 |
|
|
|
b0215eb |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-3
|
|
|
b0215eb |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
b0215eb |
|
|
|
ad83535 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
|
|
|
ad83535 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
ad83535 |
|
|
|
92899cb |
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.6.0-1
|
|
|
92899cb |
- Update to 1.6.0
|
|
|
92899cb |
|
|
|
cb5db5c |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-3
|
|
|
cb5db5c |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
cb5db5c |
|
|
|
1804b93 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-2
|
|
|
1804b93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
1804b93 |
|
|
|
448545a |
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.4.2-1
|
|
|
448545a |
- Update to 1.4.2
|
|
|
448545a |
|
|
|
f19855b |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5
|
|
|
f19855b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
f19855b |
|
|
|
9b77a54 |
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.1.0-4
|
|
|
9b77a54 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
9b77a54 |
|
|
|
d82b184 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
|
|
|
d82b184 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
d82b184 |
|
|
|
4188425 |
* Fri Feb 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1.0-2
|
|
|
4188425 |
- Patch the Python 3.3 module subclass error.
|
|
|
4188425 |
|
|
|
22858e5 |
* Fri Feb 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1.0-1
|
|
|
22858e5 |
- Update to 1.1.0.
|
|
|
22858e5 |
|
|
|
3104abd |
* Fri Feb 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.1-2
|
|
|
3104abd |
- Introduce python3 subpackage.
|
|
|
3104abd |
|
|
|
67ad120 |
* Mon Nov 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.1-1
|
|
|
67ad120 |
- Update to 1.0.1.
|
|
|
67ad120 |
|
|
|
44877e0 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
|
|
|
44877e0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
44877e0 |
|
|
|
b6735cb |
* Mon May 14 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.0-1
|
|
|
b6735cb |
- Initial package.
|