Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xmlformat for openSUSE:Factory 
checked in at 2021-05-19 17:48:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xmlformat (Old)
 and      /work/SRC/openSUSE:Factory/.xmlformat.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xmlformat"

Wed May 19 17:48:54 2021 rev:16 rq:893562 version:1.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/xmlformat/xmlformat.changes      2018-01-13 
21:48:03.976903373 +0100
+++ /work/SRC/openSUSE:Factory/.xmlformat.new.2988/xmlformat.changes    
2021-05-19 17:48:55.945647281 +0200
@@ -1,0 +2,13 @@
+Sat May 15 13:23:05 UTC 2021 - Thomas Schraitle <thomas.schrai...@suse.com> - 
1.9
+
+- Update to 1.9
+  - Change to the someth2say/xmlformat fork
+  - Add length wrap for wrap-type option.
+    Contains now an additional value "sentence" which wraps by sentences.
+  - Use version 1.9 to distinguish from original Kitebird's v1.04
+    version.
+- Spec file
+  provide update-alternatives to make it possible to switch between
+  the Perl or Ruby variant
+
+-------------------------------------------------------------------

Old:
----
  xmlformat-1.04.tar.bz2

New:
----
  xmlformat-1.9.tar.gz

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

Other differences:
------------------
++++++ xmlformat.spec ++++++
--- /var/tmp/diff_new_pack.oGZEUu/_old  2021-05-19 17:48:56.481645033 +0200
+++ /var/tmp/diff_new_pack.oGZEUu/_new  2021-05-19 17:48:56.481645033 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xmlformat
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,23 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           xmlformat
-Version:        1.04
+Version:        1.9
 Release:        0
 Summary:        XML document formatter
-License:        BSD-3-Clause
+License:        BSD-3-Clause AND GPL-3.0-only
 Group:          Productivity/Publishing/XML
-URL:            http://www.kitebird.com/software/xmlformat/
-Source0:        
http://www.kitebird.com/software/xmlformat/%{name}-%{version}.tar.bz2
+URL:            https://github.com/someth2say/xmlformat
+Source0:        
https://github.com/someth2say/xmlformat/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  perl
+BuildRequires:  ruby
+BuildRequires:  shunit2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 
 %description
@@ -35,21 +39,37 @@
 xmlformat provides improved diagnostic information when a document is not
 well-formed. (Prints line and token number, and stack trace).
 
+Based on Kitebird's original implementation v1.04
+
 %prep
 %setup -q
 
 %build
+# --
 
 %install
-install -Dpm 0755 xmlformat.pl  \
-  %{buildroot}%{_bindir}/xmlformat.pl
-install -Dpm 0755 xmlformat.rb  \
-  %{buildroot}%{_bindir}/xmlformat.rb
+install -Dpm 0755 bin/xmlformat.pl  %{buildroot}%{_bindir}/xmlformat.pl
+install -Dpm 0755 bin/xmlformat.rb  %{buildroot}%{_bindir}/xmlformat.rb
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+ln -s -f %{_sysconfdir}/alternatives/xmlformat 
%{buildroot}/%{_bindir}/xmlformat
+
+%check
+(cd test; ./test.sh )
+
+%post
+%{_sbindir}/update-alternatives --install %{_bindir}/xmlformat xmlformat 
%{_bindir}/xmlformat.rb 10
+%{_sbindir}/update-alternatives --install %{_bindir}/xmlformat xmlformat 
%{_bindir}/xmlformat.pl 20
+
+%postun
+if [ ! -f %{_bindir}/xmlformat ] ; then
+   update-alternatives --remove xmlformat %{_bindir}/xmlformat
+fi
 
 %files
-%doc BUGS ChangeLog INSTALL LICENSE README TODO
-%doc bad* test.conf
-%doc docs tests
-%{_bindir}/xmlformat.*
+%doc README.md *.html
+%doc bin/xmlformat.conf
+%license LICENSE.txt
+%{_bindir}/xmlformat*
+%ghost %_sysconfdir/alternatives/xmlformat
 
 %changelog

Reply via email to