[python-rdflib/el5] Update to 3.2.0
Pierre-YvesChibon
pingou at fedoraproject.org
Fri Jan 20 10:01:05 UTC 2012
commit 76d4e0b96b740a7f9e9a6ec90f3f0ee0abd3014a
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date: Fri Jan 20 10:21:55 2012 +0100
Update to 3.2.0
.gitignore | 4 ++++
filter-provides.sh | 9 ---------
python-rdflib.spec | 51 +++++++++++++++------------------------------------
sources | 2 +-
4 files changed, 20 insertions(+), 46 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ffcb75a..4013842 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,5 @@
rdflib-2.4.0.tar.gz
+rdflib-2.4.2.tar.gz
+/rdflib-3.1.0.tar.gz
+/rdflib-3.2.0-RC.tar.gz
+/rdflib-3.2.0.tar.gz
diff --git a/python-rdflib.spec b/python-rdflib.spec
index a0232ee..30bd4c9 100644
--- a/python-rdflib.spec
+++ b/python-rdflib.spec
@@ -1,25 +1,18 @@
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-
# The upstream test suite does not pass on recent versions of Fedora
# See package review (bug 378841)
# For now, we disable running the test suite:
%define run_tests 0
Name: python-rdflib
-Version: 2.4.0
-Release: 7%{?dist}
+Version: 3.2.0
+Release: 1%{?dist}
Summary: Python library for working with RDF
Group: Development/Languages
License: BSD
URL: http://rdflib.net
-Source0: http://rdflib.net/rdflib-2.4.0.tar.gz
-
-# Filter out unwanted autogenerated Provides: SPARQLParserc.so
-# See http://fedoraproject.org/wiki/PackagingDrafts/FilteringAutomaticDependencies
-Source1: filter-provides.sh
-%define _use_internal_dependency_generator 0
-%define __find_provides %{SOURCE1}
+Source0: http://rdflib.googlecode.com/files/rdflib-%{version}.tar.gz
+BuildArch: noarch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
@@ -45,46 +38,30 @@ memory, MySQL, Redland, SQLite, Sleepycat, ZODB and SQLObject.
%prep
%setup -q -n rdflib-%{version}
-chmod +x %{SOURCE1}
%build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-cp LICENSE $RPM_BUILD_ROOT/%{python_sitearch}/rdflib/LICENSE
-rm -rf $RPM_BUILD_ROOT/%{python_sitearch}/test
+cp LICENSE $RPM_BUILD_ROOT/%{python_sitelib}/rdflib/LICENSE
# Various .py files within site-packages have a shebang line but aren't
# flagged as executable.
# I've gone through them and either removed the shebang or made them
# executable as appropriate:
-# rdflib_tools/RDFPipe.py: __main__ parses RDF from stdin
-chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/rdflib_tools/RDFPipe.py
-
-# sparql/parser.py: __main__ runs self-tests:
-chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/rdflib/sparql/parser.py
-# syntax/parsers/n3meta.py doesn't have a meaningful __main__; drop
-# the shebang:
-%{__sed} -i "s|#!/usr/bin/env python||" $RPM_BUILD_ROOT/%{python_sitearch}/rdflib/syntax/parsers/n3p/n3meta.py
+# __main__ parses URI as N-Triples:
+chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/rdflib/plugins/parsers/ntriples.py
-# syntax/parsers/ntriples.py: __main__ parses NTriples from a URI:
-chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/rdflib/syntax/parsers/ntriples.py
+# __main__ parses the file given on the command line:
+chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/rdflib/plugins/parsers/notation3.py
-# syntax/parsers/n3p/n3p.py: __main__ parses N3 from a file
-chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/rdflib/syntax/parsers/n3p/n3p.py
-
-# syntax/parsers/n3p/uripath.py: __main__ runs unit tests:
-chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/rdflib/syntax/parsers/n3p/uripath.py
-
-# syntax/parsers/n3p/n3proc.py: __main__ parses from a URI:
-chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/rdflib/syntax/parsers/n3p/n3proc.py
%check
%if %{run_tests}
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py test
+%{__python} run_tests.py
%endif
%clean
@@ -93,10 +70,12 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
-%{python_sitearch}/*
-%{_bindir}/rdfpipe
+%{python_sitelib}/*
%changelog
+* Fri Jan 20 2012 Pierre-Yves Chibon <pingou at pingoured.fr> - 3.2.0-1
+- Update to 3.2.0
+
* Wed Oct 1 2008 David Malcolm <dmalcolm at redhat.com> - 2.4.0-7
- fix tab/space issue in specfile
diff --git a/sources b/sources
index 57dc97e..a55f141 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ce7c73ffd2fe8a4a527143168bc91058 rdflib-2.4.0.tar.gz
+ab3d3a5f71ebb6fe4fd33539f5d5768e rdflib-3.2.0.tar.gz
More information about the scm-commits
mailing list