summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Šplíchal <psplicha@redhat.com>2012-02-22 01:43:30 +0100
committerPetr Šplíchal <psplicha@redhat.com>2012-02-22 01:43:30 +0100
commit9707ada7391985131c26f433339b3a79fb2f393c (patch)
treec761ac67060e8cc8c2970d422972bb29d46a3576
parente4e43b416711d15b122a6b5c471564d5cd3d68a1 (diff)
downloadpython-nitrate-9707ada7391985131c26f433339b3a79fb2f393c.zip
python-nitrate-9707ada7391985131c26f433339b3a79fb2f393c.tar.gz
python-nitrate-9707ada7391985131c26f433339b3a79fb2f393c.tar.xz
Initial version of the spec file
-rw-r--r--python-nitrate.spec52
1 files changed, 52 insertions, 0 deletions
diff --git a/python-nitrate.spec b/python-nitrate.spec
new file mode 100644
index 0000000..a9c7aa7
--- /dev/null
+++ b/python-nitrate.spec
@@ -0,0 +1,52 @@
+Name: python-nitrate
+Version: 0.7
+Release: 1%{?dist}
+
+Summary: Python API for the Nitrate test case management system
+Group: Development/Languages
+License: LGPLv2
+
+URL: http://psss.fedorapeople.org/python-nitrate/
+Source0: http://psss.fedorapeople.org/python-nitrate/%{name}-%{version}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+BuildRequires: python-devel
+Requires: python-kerberos
+
+%description
+python-nitrate is a Python interface to the Nitrate test case
+management system. The package consists of a high-level Python
+module (provides natural object interface), a low-level driver
+(allows to directly access Nitrate's XMLRPC API) and a command
+line interpreter (useful for fast debugging and experimenting).
+
+%prep
+%setup -q
+
+%build
+gzip -c documentation/nitrate.man > documentation/nitrate.1.gz
+chmod 644 examples/*
+
+%clean
+rm -rf %{buildroot}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{python_sitelib}/nitrate
+install -m 644 source/*.py %{buildroot}%{python_sitelib}/nitrate
+mkdir -p %{buildroot}%{_bindir}
+install source/nitrate %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_mandir}/man1
+install -m 644 documentation/*.1.gz %{buildroot}%{_mandir}/man1
+
+%files
+%defattr(-,root,root,-)
+%{_mandir}/man1/*
+%{_bindir}/nitrate
+%{python_sitelib}/*
+%doc COPYING README examples
+
+%changelog
+* Wed Feb 23 2012 Petr Splichal <psplicha@redhat.com> 0.7-1
+- Initial packaging.