[python-taskw] Initial import (#848256)
Ralph Bean
ralph at fedoraproject.org
Mon Aug 20 15:27:18 UTC 2012
commit d6394fcf72d791dd8ae72c7b9d78b996f6065fd1
Author: Ralph Bean <rbean at redhat.com>
Date: Mon Aug 20 11:27:11 2012 -0400
Initial import (#848256)
.gitignore | 1 +
python-taskw.spec | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 115 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8cd5cc0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/taskw-0.4.3.tar.gz
diff --git a/python-taskw.spec b/python-taskw.spec
new file mode 100644
index 0000000..fd405ca
--- /dev/null
+++ b/python-taskw.spec
@@ -0,0 +1,113 @@
+
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%endif
+
+%global modname taskw
+
+Name: python-taskw
+Version: 0.4.3
+Release: 2%{?dist}
+Summary: Python bindings for your taskwarrior database
+
+Group: Development/Libraries
+License: GPLv3+
+URL: http://pypi.python.org/pypi/taskw
+Source0: http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-nose
+BuildRequires: python-six
+
+Requires: python-six
+
+%if %{?rhel}%{!?rhel:0} >= 6
+BuildRequires: python-ordereddict
+Requires: python-ordereddict
+%endif
+
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-nose
+BuildRequires: python3-six
+%endif
+
+%description
+This is a python API for the `taskwarrior <http://taskwarrior.org>`_
+command line tool.
+
+%if 0%{?with_python3}
+%package -n python3-taskw
+Summary: Python bindings for your taskwarrior database
+Group: Development/Libraries
+
+Requires: python3-six
+
+%description -n python3-taskw
+This is a python API for the `taskwarrior <http://taskwarrior.org>`_
+command line tool.
+%endif
+
+%prep
+%setup -q -n %{modname}-%{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
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
+popd
+%endif
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+%check
+%{__python} setup.py test
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py test
+popd
+%endif
+
+# Remove the tests after we've run them. No reason to ship them.
+%{__rm} -r %{buildroot}%{python_sitelib}/%{modname}/test
+
+%files
+%doc README.rst LICENSE.txt
+%{python_sitelib}/%{modname}
+%{python_sitelib}/%{modname}-%{version}*
+
+%if 0%{?with_python3}
+%files -n python3-%{modname}
+%doc LICENSE.txt README.rst
+%{python3_sitelib}/%{modname}
+%{python3_sitelib}/%{modname}-%{version}-*
+
+%endif
+
+
+%changelog
+* Sun Aug 19 2012 Ralph Bean <rbean at redhat.com> - 0.4.3-2
+- Removed dependency on "task". Its not actually required.
+- Remove tests from sitelib after running them.
+
+* Tue Aug 14 2012 Ralph Bean <rbean at redhat.com> - 0.4.3-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..a783d34 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a269d7b26c92858e7cb51236ed45359e taskw-0.4.3.tar.gz
More information about the scm-commits
mailing list