Hello community,

here is the log from the commit of package xmlstarlet for openSUSE:Factory
checked in at Sun Feb 27 13:46:32 CET 2011.



--------
--- xmlstarlet/xmlstarlet.changes       2009-12-14 14:33:32.000000000 +0100
+++ xmlstarlet/xmlstarlet.changes       2011-02-17 10:07:35.000000000 +0100
@@ -1,0 +2,29 @@
+Thu Feb 17 09:02:37 UTC 2011 - [email protected]
+
+- update to 1.0.5:
+  * fixes a bug in which stylesheets with CDATA nodes led to memory corruption
+  * the --help option now prints to stdout and exits with success
+
+- changes from 1.0.4:
+  * special XML characters in arguments are escaped (in particular, double
+    quotes can now be included in xpath expressions)
+  * non-zero exit code when an input file is not found
+  * XML ed with --pf/--ps options no longer reformats output
+  * exit with an error instead of segfaulting when trying to delete namespace
+    nodes
+
+- changes from 1.0.3:
+  * fixes several bugs
+  * when validating long documents, error messages will now give correct line
+    numbers past 65536 sf#1219072
+  * validation will not use an embedded DTD if not asked, sf#1167215
+  * the parameters to the --value option for update and the --output option for
+    select are now escaped (sf#3052978 and sf#1912978)
+  * c14n on documents with a DTD now respects default attributes (sf#1505579)
+
+- changes from 1.0.2:
+  * inplace editing now works
+  * libxml2 features are only used if libxml2 has been compiled to support them
+  * the -N option usage has been expanded
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  xmlstarlet-0.9.5-configure_fix.diff
  xmlstarlet-1.0.0-no_static_linking.diff
  xmlstarlet-1.0.1.tar.bz2

New:
----
  xmlstarlet-1.0.5.tar.bz2

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

Other differences:
------------------
++++++ xmlstarlet.spec ++++++
--- /var/tmp/diff_new_pack.hTwzIF/_old  2011-02-27 13:44:41.000000000 +0100
+++ /var/tmp/diff_new_pack.hTwzIF/_new  2011-02-27 13:44:41.000000000 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package xmlstarlet (Version 1.0.1)
+# spec file for package xmlstarlet
 #
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,20 +19,21 @@
 
 
 Name:           xmlstarlet
-BuildRequires:  libxslt-devel pkgconfig sgml-skel
+BuildRequires:  libxml2-devel >= 2.6.23
+BuildRequires:  libxslt-devel >= 1.1.9
+BuildRequires:  sgml-skel
+BuildRequires:  autoconf automake gcc glibc-devel libtool pkgconfig
 Summary:        Command Line Tool to Process XML Documents
-Version:        1.0.1
-Release:        153
+Version:        1.0.5
+Release:        1
 License:        MIT License (or similar)
 Group:          Productivity/Publishing/XML
-Source0:        
http://ftp1.sourceforge.net/xmlstar/xmlstarlet-%{version}.tar.bz2
+# http://prdownloads.sourceforge.net/xmlstar/xmlstarlet-%{version}.tar.gz
+Source0:        xmlstarlet-%{version}.tar.bz2
 Source1:        %{name}-rpmlintrc
-Patch0:         %{name}-1.0.0-no_static_linking.diff
-Patch1:         %{name}-0.9.5-configure_fix.diff
 Patch2:         %{name}-xml_depyx.c.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Url:            http://sourceforge.net/projects/xmlstar/
-DocDir:         %{_docdir}
 
 %description
 XMLStarlet (xml) is a command line XML toolkit which can be used to
@@ -48,40 +49,34 @@
 
 %prep
 %setup -q
-%patch0 -p 1
-%patch1
 %patch2
 
 %build
-autoreconf --force --install
 export CFLAGS="$RPM_OPT_FLAGS -W -Wall"
-./configure --prefix=%{_prefix} \
-  --sysconfdir=%{_sysconfdir} \
-  --mandir=%{_mandir} \
-  --libdir=%{_libdir}
-make
-%{__mkdir_p} html
-%{__cp} -a doc/callouts html
-%{__cp} doc/*{css,html} html
+%configure \
+    --disable-static-libs
+
+%__make %{?_smp_flags}
+
+%__mkdir_p html
+%__cp -a doc/callouts html
+%__cp doc/*{css,html} html
 
 %check
-make tests
+%__make tests
 
 %install
-#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
-#  && %{__rm} -rf $RPM_BUILD_ROOT
-[ -e "%buildroot" -a -d "%buildroot" ] || %{__mkdir} %buildroot
 %makeinstall
 
 %clean
-%{__rm} -fr %{buildroot}
+%{?buildroot:%__rm -rf "%{buildroot}"}
 
 %files
 %defattr(-, root, root)
 %doc AUTHORS ChangeLog NEWS README Copyright TODO
 %doc doc/xmlstarlet.txt doc/xmlstarlet.pdf
 %doc html
-%{_prefix}/bin/xml
-%{_mandir}/*/*
+%{_bindir}/xml
+%doc %{_mandir}/man1/xmlstarlet.1%{ext_man}
 
 %changelog

++++++ xmlstarlet-1.0.1.tar.bz2 -> xmlstarlet-1.0.5.tar.bz2 ++++++
++++ 21732 lines of diff (skipped)

++++++ xmlstarlet-xml_depyx.c.diff ++++++
--- /var/tmp/diff_new_pack.hTwzIF/_old  2011-02-27 13:44:41.000000000 +0100
+++ /var/tmp/diff_new_pack.hTwzIF/_new  2011-02-27 13:44:41.000000000 +0100
@@ -1,12 +1,30 @@
-Index: src/xml_depyx.c
-===================================================================
---- src/xml_depyx.c.orig
-+++ src/xml_depyx.c
-@@ -214,6 +214,7 @@ pyxDePyx(char *file)
-            }
+--- src/xml_depyx.c.orig       2011-02-17 09:53:27.000000000 +0100
++++ src/xml_depyx.c    2011-02-17 10:00:13.000000000 +0100
+@@ -115,6 +115,7 @@
+ {
+    static char line[INSZ];
+    FILE *in = stdin;
++   int opened_in = 0;
+ 
+    if (strcmp(file, "-"))
+    {
+@@ -124,6 +125,7 @@
+           fprintf(stderr, "error: could not open: %s\n", file);
+           exit(EXIT_BAD_FILE);
+        }
++       opened_in = 1;
+    }
+    
+    while (!feof(in))
+@@ -216,6 +218,11 @@
         }
     }
-+   fclose( in);
  
-    return 0;
++   if (opened_in)
++   {
++       fclose(in);
++   }
++
+    return EXIT_SUCCESS;
  }
+ 


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



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to