Accepting request 157734 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/157734
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rdflib?expand=0&rev=14
This commit is contained in:
Stephan Kulow 2013-03-08 12:29:13 +00:00 committed by Git OBS Bridge
commit 808c768253
4 changed files with 32 additions and 13 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Jan 31 13:27:04 UTC 2013 - saschpe@suse.de
- Drop shipped bytecode files and recompile them
-------------------------------------------------------------------
Wed Jan 30 13:06:06 UTC 2013 - saschpe@suse.de
- Run testsuite everywhere
- Macro cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jan 13 16:52:06 UTC 2013 - p.drouand@gmail.com Sun Jan 13 16:52:06 UTC 2013 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-rdflib # spec file for package python-rdflib
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -25,21 +25,19 @@ Group: Development/Libraries/Python
Url: http://rdflib.net/ Url: http://rdflib.net/
Source: http://pypi.python.org/packages/source/r/rdflib/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: fdupes
BuildRequires: python-Sphinx BuildRequires: python-Sphinx
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-isodate BuildRequires: python-isodate
BuildRequires: python-nose BuildRequires: python-nose
BuildRequires: python-xml BuildRequires: python-xml
BuildRequires: fdupes
Requires: python-isodate Requires: python-isodate
Requires: python-xml Requires: python-xml
%if 0%{?suse_version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%py_requires %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%if 0%{?suse_version} > 1110 %else
BuildArch: noarch BuildArch: noarch
%endif %endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
RDFLib is a Python library for working with RDF, a simple yet powerful RDFLib is a Python library for working with RDF, a simple yet powerful
@ -49,7 +47,8 @@ The library also contains both in-memory and persistent Graph backends.
%prep %prep
%setup -q -n rdflib-%{version} %setup -q -n rdflib-%{version}
sed -i "1d" rdflib/plugins/parsers/{ntriples,notation3}.py # Fix non-executable bits # Drop py2.7 bytecode files, we have to rebuild these:
find . -type f -name "*.pyc" -print -delete
%build %build
python setup.py build python setup.py build
@ -62,10 +61,8 @@ rm -r _build/html/.buildinfo
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s build/html %fdupes -s build/html
%if 0%{?suse_version} >= 1220
%check %check
python setup.py test python setup.py test
%endif
%files %files
%defattr(-,root,root) %defattr(-,root,root)

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Jan 31 13:27:29 UTC 2013 - saschpe@suse.de
- Drop shipped bytecode files and recompile them
-------------------------------------------------------------------
Wed Jan 30 13:06:17 UTC 2013 - saschpe@suse.de
- Run testsuite everywhere
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jan 13 15:25:50 UTC 2013 - p.drouand@gmail.com Sun Jan 13 15:25:50 UTC 2013 - p.drouand@gmail.com

View File

@ -25,14 +25,15 @@ Group: Development/Libraries/Python
Url: http://rdflib.net/ Url: http://rdflib.net/
Source: http://pypi.python.org/packages/source/r/rdflib/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: fdupes
BuildRequires: python-Sphinx BuildRequires: python-Sphinx
BuildRequires: python3 BuildRequires: python3
BuildRequires: python3-2to3
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-distribute BuildRequires: python3-distribute
BuildRequires: python3-isodate BuildRequires: python3-isodate
BuildRequires: python3-nose BuildRequires: python3-nose
BuildRequires: python3-xml BuildRequires: python3-xml
BuildRequires: fdupes
Requires: python3-isodate Requires: python3-isodate
Requires: python3-xml Requires: python3-xml
BuildArch: noarch BuildArch: noarch
@ -46,6 +47,8 @@ The library also contains both in-memory and persistent Graph backends.
%prep %prep
%setup -q -n rdflib-%{version} %setup -q -n rdflib-%{version}
sed -i "1d" rdflib/plugins/parsers/{ntriples,notation3}.py # Fix non-executable bits sed -i "1d" rdflib/plugins/parsers/{ntriples,notation3}.py # Fix non-executable bits
# Drop py2.7 bytecode files, we have to rebuild these:
find . -type f -name "*.pyc" -print -delete
%build %build
python3 setup.py build python3 setup.py build
@ -58,10 +61,8 @@ rm -r _build/html/.buildinfo
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s build/html %fdupes -s build/html
%if 0%{?suse_version} >= 1230
%check %check
python3 setup.py test python3 setup.py test
%endif
%files %files
%defattr(-,root,root) %defattr(-,root,root)