Hello community,

here is the log from the commit of package createrepo for openSUSE:Factory 
checked in at 2018-02-22 14:57:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/createrepo (Old)
 and      /work/SRC/openSUSE:Factory/.createrepo.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "createrepo"

Thu Feb 22 14:57:06 2018 rev:47 rq:578786 version:0.10.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/createrepo/createrepo.changes    2016-03-29 
09:51:13.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.createrepo.new/createrepo.changes       
2018-02-22 14:57:07.057506172 +0100
@@ -1,0 +2,7 @@
+Wed Feb 21 17:15:40 CET 2018 - m...@suse.de
+
+- make createrepo et al an alternative, so that createrepo_c
+  can be installed and configured as substitute [bnc#1075670]
+- also provide createrepo-implementation
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ createrepo.spec ++++++
--- /var/tmp/diff_new_pack.RQiE3o/_old  2018-02-22 14:57:08.453455941 +0100
+++ /var/tmp/diff_new_pack.RQiE3o/_new  2018-02-22 14:57:08.453455941 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package createrepo
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -39,6 +39,9 @@
 Requires:       rpm-python
 Requires:       yum-common >= 3.2.25
 Requires:       yum-metadata-parser
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+Provides:       createrepo-implentation
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -67,6 +70,37 @@
 mv $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/createrepo 
$RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/createrepo.sh
 for i in genpkgmetadata.py mergerepo mergerepo.py modifyrepo modifyrepo.py ; 
do rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/$i ; done
 
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/alternatives
+for i in createrepo mergerepo modifyrepo ; do
+  mv $RPM_BUILD_ROOT/%{_bindir}/$i $RPM_BUILD_ROOT/%{_bindir}/${i}_yum
+  ln -s %{_bindir}/${i}_yum $RPM_BUILD_ROOT/%{_sysconfdir}/alternatives/$i
+  ln -s %{_sysconfdir}/alternatives/$i $RPM_BUILD_ROOT/%{_bindir}/$i
+done
+for i in mergerepo modifyrepo ; do
+  mv $RPM_BUILD_ROOT/%{_mandir}/man1/$i.1 
$RPM_BUILD_ROOT/%{_mandir}/man1/${i}_yum.1
+  ln -s %{_mandir}/man1/${i}_yum.1.gz 
$RPM_BUILD_ROOT/%{_sysconfdir}/alternatives/$i.1.gz
+  ln -s %{_sysconfdir}/alternatives/$i.1.gz 
$RPM_BUILD_ROOT/%{_mandir}/man1/$i.1.gz
+done
+for i in createrepo ; do
+  mv $RPM_BUILD_ROOT/%{_mandir}/man8/$i.8 
$RPM_BUILD_ROOT/%{_mandir}/man8/${i}_yum.8
+  ln -s %{_mandir}/man8/${i}_yum.8.gz 
$RPM_BUILD_ROOT/%{_sysconfdir}/alternatives/$i.8.gz
+  ln -s %{_sysconfdir}/alternatives/$i.8.gz 
$RPM_BUILD_ROOT/%{_mandir}/man8/$i.8.gz
+done
+
+%post
+update-alternatives \
+  --install %{_bindir}/createrepo createrepo %{_bindir}/createrepo_yum 15 \
+  --slave %{_bindir}/mergerepo mergerepo %{_bindir}/mergerepo_yum \
+  --slave %{_bindir}/modifyrepo modifyrepo %{_bindir}/modifyrepo_yum \
+  --slave %{_mandir}/man8/createrepo.8.gz createrepo.8.gz 
%{_mandir}/man8/createrepo_yum.8.gz \
+  --slave %{_mandir}/man1/mergerepo.1.gz mergerepo.1.gz 
%{_mandir}/man1/mergerepo_yum.1.gz \
+  --slave %{_mandir}/man1/modifyrepo.1.gz modifyrepo.1.gz 
%{_mandir}/man1/modifyrepo_yum.1.gz
+
+%postun
+if test ! -f %{_bindir}/createrepo_yum ; then
+  update-alternatives --remove createrepo %{_bindir}/createrepo_yum
+fi
+
 %files
 %defattr(-,root,root)
 %doc ChangeLog COPYING COPYING.lib README
@@ -75,5 +109,6 @@
 %config %{_sysconfdir}/bash_completion.d/createrepo.sh
 %{_datadir}/%{name}/
 %{python_sitearch}/*
+%ghost %{_sysconfdir}/alternatives/*
 
 %changelog


Reply via email to