From acd55752f3654580ee39a029d40d56ce0f15a3c116f922888f61e087891784be Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 23 Jul 2012 13:19:33 +0000 Subject: [PATCH] Accepting request 125047 from home:jimfunk:branches:devel:languages:python Add missing requirements, build docs, run tests OBS-URL: https://build.opensuse.org/request/show/125047 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=24 --- python-rdflib.changes | 13 +++++++++++++ python-rdflib.spec | 15 ++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/python-rdflib.changes b/python-rdflib.changes index 5f4002e..264ff91 100644 --- a/python-rdflib.changes +++ b/python-rdflib.changes @@ -3,6 +3,19 @@ Mon Jun 11 09:34:31 UTC 2012 - dimstar@opensuse.org - Add python-isodate Requires: rdflib imports it. +------------------------------------------------------------------- +Wed Jun 6 18:17:39 UTC 2012 - jfunk@funktronics.ca + +- Require python-Sphinx instead of python-sphinx +- Change Source to full URL + +------------------------------------------------------------------- +Thu May 24 19:41:43 UTC 2012 - jfunk@funktronics.ca + +- Run tests +- Add missing requirements +- Build documentation + ------------------------------------------------------------------- Sat Apr 28 18:14:50 UTC 2012 - msuman@gnome.org diff --git a/python-rdflib.spec b/python-rdflib.spec index dd4668a..65320ee 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -16,6 +16,7 @@ # + Name: python-rdflib Version: 3.2.1 Release: 0 @@ -23,12 +24,15 @@ Summary: A Python library for working with RDF License: BSD-3-Clause Group: Development/Libraries/Python Url: http://rdflib.net/ -Source: rdflib-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel +BuildRequires: python-isodate +BuildRequires: python-nose +BuildRequires: python-Sphinx BuildRequires: python-xml -# term.py:from isodate import parse_time, parse_date, parse_datetime Requires: python-isodate +Requires: python-xml %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1110 @@ -49,13 +53,18 @@ sed -i "1d" rdflib/plugins/parsers/{ntriples,notation3}.py # Fix non-executable %build python setup.py build +cd docs +make html + +%check +python setup.py test %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root) -%doc CHANGELOG LICENSE README +%doc CHANGELOG LICENSE README docs/_build/html %{python_sitelib}/* %changelog