[python-sh] Latest upstream and a python3 subpackage.
Ralph Bean ☃
ralph at fedoraproject.org
Sat Apr 13 16:05:17 UTC 2013
commit 960bca4fb3c5b43d605b12c3f696ac481f55789a
Author: Ralph Bean <rbean at redhat.com>
Date: Sat Apr 13 12:05:10 2013 -0400
Latest upstream and a python3 subpackage.
.gitignore | 1 +
python-sh.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
sources | 2 +-
3 files changed, 61 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a68e9ab..f5c16f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/sh-0.107.tar.gz
/sh-1.02.tar.gz
+/sh-1.08.tar.gz
diff --git a/python-sh.spec b/python-sh.spec
index c15be00..b9fe049 100644
--- a/python-sh.spec
+++ b/python-sh.spec
@@ -1,38 +1,94 @@
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
%global oname sh
Name: python-sh
License: MIT
Group: Development/Libraries
Summary: Python module to simplify calling shell commands
-Version: 1.02
-Release: 3%{?dist}
+Version: 1.08
+Release: 1%{?dist}
URL: https://github.com/amoffat/pbs/
Source: https://github.com/downloads/amoffat/%{oname}/%{oname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%endif
+
%description
A Python module to simplify calling shell commands.
Also known as PBS, or Python Bash Scripting.
+%if 0%{?with_python3}
+%package -n python3-sh
+Summary: Python module to simplify calling shell commands
+Group: Development/Libraries
+
+%description -n python3-sh
+A Python module to simplify calling shell commands.
+Also known as PBS, or Python Bash Scripting.
+%endif
+
%prep
%setup -q -n %{oname}-%{version}
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
%build
%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
%check
python sh.py test
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} sh.py test
+popd
+%endif
+
%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif
+
%{__python} setup.py install --skip-build --root %{buildroot}
%files
-%{python_sitelib}/*
+%{python_sitelib}/sh.py*
+%{python_sitelib}/%{oname}-%{version}*
%doc AUTHORS.md README.md LICENSE.txt
+%if 0%{?with_python3}
+%files -n python3-sh
+%{python3_sitelib}/sh.py
+%{python3_sitelib}/__pycache__/sh*.py*
+%{python3_sitelib}/%{oname}-%{version}*
+%doc AUTHORS.md README.md LICENSE.txt
+%endif
+
%changelog
+* Sat Apr 13 2013 Ralph Bean <rbean at redhat.com> - 1.08-1
+- Latest upstream version.
+- More explicit directory ownership in files section.
+- Added python3-sh subpackage.
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.02-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
diff --git a/sources b/sources
index 27faaa8..13a68e4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cf68bcb4dc6a917184801da710a2b056 sh-1.02.tar.gz
+4028bcba85daa0aef579ed24261e88a3 sh-1.08.tar.gz
More information about the scm-commits
mailing list