[python-cliapp] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Tue Jun 5 04:23:06 UTC 2012


commit 23e558bc9903f837872f0f3001b3185f3b63694d
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Tue Jun 5 11:22:53 2012 +0700

    Initial import

 .gitignore         |    1 +
 python-cliapp.spec |   65 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d7ba2ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-cliapp_0.29.orig.tar.gz
diff --git a/python-cliapp.spec b/python-cliapp.spec
new file mode 100644
index 0000000..78e1c66
--- /dev/null
+++ b/python-cliapp.spec
@@ -0,0 +1,65 @@
+%global pkgname cliapp
+
+Name:           python-%{pkgname}
+Version:        0.29
+Release:        2%{?dist}
+Summary:        Python framework for Unix command line programs
+
+License:        GPLv2+
+URL:            http://liw.fi/%{pkgname}/
+Source0:        http://code.liw.fi/debian/pool/main/p/%{name}/%{name}_%{version}.orig.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python-coverage-test-runner
+BuildRequires:  python-sphinx
+
+%description
+cliapp is a Python framework for Unix-like command line programs. It
+contains the typical stuff such programs need to do, such as parsing
+the command line for options, and iterating over input files.
+
+
+%package        doc
+Summary:        Documentation for %{pkgname}
+Requires:       %{name} = %{version}-%{release}
+
+%description    doc
+This package contains the documentation for %{pkgname}, a Python
+framework for Unix command line programs.
+
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+
+%build
+%{__python} setup.py build
+# Build documentation
+make
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+
+%check
+make check
+
+
+%files
+%doc COPYING NEWS README
+%{_mandir}/man5/cliapp.5*
+%{python_sitelib}/%{pkgname}
+%{python_sitelib}/%{pkgname}-%{version}-py?.?.egg-info
+
+%files doc
+%doc doc/_build/html/*
+
+
+%changelog
+* Tue Jun  5 2012 Michel Salim <salimma at fedoraproject.org> - 0.29-2
+- Remove unneeded %%{python_sitelib} declaration
+- Make file listing more specific
+
+* Sun Jun  3 2012 Michel Salim <salimma at fedoraproject.org> - 0.29-1
+- Initial package
diff --git a/sources b/sources
index e69de29..5e60813 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9f5006fe3cb141a9436003274cbfd5da  python-cliapp_0.29.orig.tar.gz


More information about the scm-commits mailing list