Accepting request 128761 from devel:languages:python

Add missing requirements, build docs, run tests (forwarded request 125047 from jimfunk)

OBS-URL: https://build.opensuse.org/request/show/128761
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rdflib?expand=0&rev=9
This commit is contained in:
Stephan Kulow 2012-07-24 14:10:52 +00:00 committed by Git OBS Bridge
commit 68d6799129
2 changed files with 25 additions and 3 deletions

View File

@ -3,6 +3,19 @@ Mon Jun 11 09:34:31 UTC 2012 - dimstar@opensuse.org
- Add python-isodate Requires: rdflib imports it. - 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 Sat Apr 28 18:14:50 UTC 2012 - msuman@gnome.org

View File

@ -16,6 +16,7 @@
# #
Name: python-rdflib Name: python-rdflib
Version: 3.2.1 Version: 3.2.1
Release: 0 Release: 0
@ -23,12 +24,15 @@ Summary: A Python library for working with RDF
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: http://rdflib.net/ 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-isodate
BuildRequires: python-nose
BuildRequires: python-Sphinx
BuildRequires: python-xml BuildRequires: python-xml
# term.py:from isodate import parse_time, parse_date, parse_datetime
Requires: python-isodate Requires: python-isodate
Requires: python-xml
%if 0%{?suse_version} %if 0%{?suse_version}
%py_requires %py_requires
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
@ -49,13 +53,18 @@ sed -i "1d" rdflib/plugins/parsers/{ntriples,notation3}.py # Fix non-executable
%build %build
python setup.py build python setup.py build
cd docs
make html
%check
python setup.py test
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc CHANGELOG LICENSE README %doc CHANGELOG LICENSE README docs/_build/html
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog