3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
9 Summary: Python subprocess interface
10 Name: python-%{module}
14 Group: Libraries/Python
15 Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
16 # Source0-md5: 7af8df6c92d29ff927b6db0146bddec3
17 URL: https://amoffat.github.io/sh/
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.710
21 BuildRequires: python-modules >= 1:2.6
22 BuildRequires: python-setuptools
25 BuildRequires: python3-modules
26 BuildRequires: python3-setuptools
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 sh (previously pbs) is a full-fledged subprocess replacement for
33 Python 2.6 - 3.4 that allows you to call any program as if it were a
36 %package -n python3-%{module}
37 Summary: SH module for python 3
38 Summary(pl.UTF-8): ModuĊ sh dla pythona 3
39 Group: Libraries/Python
41 %description -n python3-%{module}
42 sh (previously pbs) is a full-fledged subprocess replacement for
43 Python 2.6 - 3.4 that allows you to call any program as if it were a
47 %setup -q -n %{module}-%{version}
59 rm -rf $RPM_BUILD_ROOT
70 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc AUTHORS.md CHANGELOG.md README.md
76 %{py_sitescriptdir}/%{module}.py[co]
77 %{py_sitescriptdir}/%{egg_name}-*-py*.egg-info
81 %files -n python3-%{module}
82 %defattr(644,root,root,755)
83 %doc AUTHORS.md CHANGELOG.md README.md
84 %{py3_sitescriptdir}/__pycache__/%{module}.*.pyc
85 %{py3_sitescriptdir}/%{module}.py
86 %{py3_sitescriptdir}/%{egg_name}-*-py*.egg-info