rpms/libxml/devel libxml-1.8.17-open-mode.patch, NONE, 1.1 libxml.spec, 1.1, 1.2

Paul Howarth (pghmcfc) fedora-extras-commits at redhat.com
Fri Aug 17 12:45:32 UTC 2007


Author: pghmcfc

Update of /cvs/pkgs/rpms/libxml/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8154

Modified Files:
	libxml.spec 
Added Files:
	libxml-1.8.17-open-mode.patch 
Log Message:
update license tag, add mode to fix call to open() with O_CREAT and only 2 args

libxml-1.8.17-open-mode.patch:

--- NEW FILE libxml-1.8.17-open-mode.patch ---
--- libxml-1.8.17/nanohttp.c	2000-06-28 19:33:46.000000000 +0100
+++ libxml-1.8.17/nanohttp.c	2007-08-17 13:26:11.000000000 +0100
@@ -1182,7 +1182,7 @@
     if (!strcmp(filename, "-")) 
         fd = 0;
     else {
-        fd = open(filename, O_CREAT | O_WRONLY);
+        fd = open(filename, O_CREAT | O_WRONLY, 0644);
 	if (fd < 0) {
 	    xmlNanoHTTPClose(ctxt);
 	    return(-1);


Index: libxml.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libxml/devel/libxml.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- libxml.spec	11 Sep 2006 17:56:51 -0000	1.1
+++ libxml.spec	17 Aug 2007 12:45:00 -0000	1.2
@@ -1,27 +1,29 @@
-Name:           libxml
-Summary:        Old libXML library for Gnome-1 application compatibility
-Epoch:          1
-Version:        1.8.17
-Release:        15%{?dist}
-License:        LGPL
-Group:          Development/Libraries
-URL:            http://veillard.com/XML/
-Source:         ftp://xmlsoft.org/libxml/old/libxml-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Name:		libxml
+Summary:	Old libXML library for Gnome-1 application compatibility
+Epoch:		1
+Version:	1.8.17
+Release:	16%{?dist}
+License:	LGPLv2+ or W3C
+Group:		Development/Libraries
+URL:		http://veillard.com/XML/
+Source:		ftp://xmlsoft.org/libxml/old/libxml-%{version}.tar.gz
+Patch0:		libxml-1.8.17-open-mode.patch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 This library allows old Gnome-1 applications to manipulate XML files.
 
 %package devel
-Summary:        Libraries, includes, etc. to build old libxml-based applications
-Group:          Development/Libraries
-Requires:       %{name} = %{epoch}:%{version}-%{release}, pkgconfig
+Summary:	Libraries, includes, etc. to build old libxml-based applications
+Group:		Development/Libraries
+Requires:	%{name} = %{epoch}:%{version}-%{release}, pkgconfig
 
 %description devel
 %{summary}.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure --disable-static
@@ -34,7 +36,7 @@
 
 # hack to get /usr/include/gnome-xml/libxml/
 if [ -d %{buildroot}/%{prefix}/include/gnome-xml ]; then
-        %{__ln_s} -f . %{buildroot}/%{_includedir}/gnome-xml/libxml
+	%{__ln_s} -f . %{buildroot}/%{_includedir}/gnome-xml/libxml
 fi
 
 %clean
@@ -60,6 +62,11 @@
 %exclude %{_libdir}/libxml.la
 
 %changelog
+* Fri Aug 17 2007 Paul Howarth <paul at city-fan.org> 1:1.8.17-16
+- add mode to fix call to open() with O_CREAT and only 2 args
+- expand tabs in spec
+- update license tag
+
 * Mon Sep 11 2006 Paul Howarth <paul at city-fan.org> 1:1.8.17-15
 - add release to versioned dependency of libxml-devel on libxml
 - drop COPYING file; license is dual W3C/LGPL and the only GPL bits are in the




More information about the fedora-extras-commits mailing list