Hello community,

here is the log from the commit of package python3-rdflib for openSUSE:Factory 
checked in at 2015-07-19 11:44:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-rdflib (Old)
 and      /work/SRC/openSUSE:Factory/.python3-rdflib.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-rdflib"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-rdflib/python3-rdflib.changes    
2015-07-03 00:18:57.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-rdflib.new/python3-rdflib.changes       
2015-07-19 11:44:19.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Jul  9 20:52:30 UTC 2015 - [email protected]
+
+- Make update-alternatives compatible with python-rdflib
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-rdflib.spec ++++++
--- /var/tmp/diff_new_pack.tF7ok9/_old  2015-07-19 11:44:20.000000000 +0200
+++ /var/tmp/diff_new_pack.tF7ok9/_new  2015-07-19 11:44:20.000000000 +0200
@@ -89,16 +89,12 @@
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 # for update-alternatives
-mv %{buildroot}%{_bindir}/csv2rdf %{buildroot}%{_bindir}/csv2rdf-%{py3_ver}
-mv %{buildroot}%{_bindir}/rdf2dot %{buildroot}%{_bindir}/rdf2dot-%{py3_ver}
-mv %{buildroot}%{_bindir}/rdfgraphisomorphism 
%{buildroot}%{_bindir}/rdfgraphisomorphism-%{py3_ver}
-mv %{buildroot}%{_bindir}/rdfpipe %{buildroot}%{_bindir}/rdfpipe-%{py3_ver}
-mv %{buildroot}%{_bindir}/rdfs2dot %{buildroot}%{_bindir}/rdfs2dot-%{py3_ver}
-ln -s  %{_bindir}/csv2rdf-%{py3_ver} %{buildroot}%{_bindir}/csv2rdf
-ln -s  %{_bindir}/rdf2dot-%{py3_ver} %{buildroot}%{_bindir}/rdf2dot
-ln -s  %{_bindir}/rdfgraphisomorphism-%{py3_ver} 
%{buildroot}%{_bindir}/rdfgraphisomorphism
-ln -s  %{_bindir}/rdfpipe-%{py3_ver} %{buildroot}%{_bindir}/rdfpipe
-ln -s  %{_bindir}/rdfs2dot-%{py3_ver} %{buildroot}%{_bindir}/rdfs2dot
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+for f in csv2rdf rdf2dot rdfgraphisomorphism rdfpipe rdfs2dot; do
+    mv %{buildroot}%{_bindir}/$f %{buildroot}%{_bindir}/$f-%{py3_ver}
+    touch %{buildroot}%{_sysconfdir}/alternatives/$f
+    ln -sf %{_sysconfdir}/alternatives/$f %{buildroot}%{_bindir}/$f
+done
 
 %if 0%{?suse_version} != 1315 
 # fix end-of-line encoding
@@ -107,12 +103,21 @@
 %fdupes -s docs/_build/html
 %endif
 
+%pre
+# Since /usr/bin/* became ghosted to be used with update-alternatives, we have 
to get rid
+# of the old binary resulting from the non-update-alternativies-ified package:
+[ -h %{_bindir}/csv2rdf ] || rm -f %{_bindir}/csv2rdf
+[ -h %{_bindir}/rdf2dot ] || rm -f %{_bindir}/rdf2dot
+[ -h %{_bindir}/rdfgraphisomorphism ] || rm -f %{_bindir}/rdfgraphisomorphism
+[ -h %{_bindir}/rdfpipe ] || rm -f %{_bindir}/rdfpipe
+[ -h %{_bindir}/rdfs2dot ] || rm -f %{_bindir}/rdfs2dot
+
 %post
 update-alternatives \
    --install %{_bindir}/rdfpipe rdfpipe %{_bindir}/rdfpipe-%{py3_ver} 30 \
    --slave %{_bindir}/csv2rdf csv2rdf %{_bindir}/csv2rdf%{py3_ver} \
    --slave %{_bindir}/rdf2dot rdf2dot %{_bindir}/rdf2dot%{py3_ver} \
-   --slave %{_bindir}/rdfgraphisomorphism rdfgraphisomorphism 
%{_bindir}/rdfgraphisomorphism%{py3_ver} \
+   --slave %{_bindir}/rdfgraphisomorphism graphisomorpishm 
%{_bindir}/rdfgraphisomorphism%{py3_ver} \
    --slave %{_bindir}/rdfs2dot rdfs2dot %{_bindir}/rdfs2dot%{py3_ver}
 
 %preun
@@ -126,16 +131,21 @@
 %files
 %defattr(-,root,root)
 %doc CHANGELOG.md LICENSE CONTRIBUTORS README.md
+%ghost %{_sysconfdir}/alternatives/csv2rdf
+%ghost %{_sysconfdir}/alternatives/rdf2dot
+%ghost %{_sysconfdir}/alternatives/rdfgraphisomorphism
+%ghost %{_sysconfdir}/alternatives/rdfpipe
+%ghost %{_sysconfdir}/alternatives/rdfs2dot
 %{_bindir}/csv2rdf-%{py3_ver}
 %{_bindir}/rdf2dot-%{py3_ver}
 %{_bindir}/rdfgraphisomorphism-%{py3_ver}
 %{_bindir}/rdfpipe-%{py3_ver}
 %{_bindir}/rdfs2dot-%{py3_ver}
-%ghost %{_bindir}/csv2rdf
-%ghost %{_bindir}/rdf2dot
-%ghost %{_bindir}/rdfgraphisomorphism
-%ghost %{_bindir}/rdfpipe
-%ghost %{_bindir}/rdfs2dot
+%{_bindir}/csv2rdf
+%{_bindir}/rdf2dot
+%{_bindir}/rdfgraphisomorphism
+%{_bindir}/rdfpipe
+%{_bindir}/rdfs2dot
 %{python3_sitelib}/rdflib/
 %{python3_sitelib}/rdflib-%{version}-py*.egg-info
 


Reply via email to