rpms/libextractor/devel libextractor-0.5.17-nodebug.patch, NONE, 1.1 libextractor.spec, 1.2, 1.3

Enrico Scholz (ensc) fedora-extras-commits at redhat.com
Tue Jan 2 15:08:15 UTC 2007


Author: ensc

Update of /cvs/extras/rpms/libextractor/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24125

Modified Files:
	libextractor.spec 
Added Files:
	libextractor-0.5.17-nodebug.patch 
Log Message:
- disabled debug messages
- fixed pkgconfig installation dir


libextractor-0.5.17-nodebug.patch:

--- NEW FILE libextractor-0.5.17-nodebug.patch ---
--- libextractor-0.5.17/src/main/extractor.c.nodebug	2006-12-29 04:47:45.000000000 +0100
+++ libextractor-0.5.17/src/main/extractor.c	2007-01-02 15:00:52.000000000 +0100
@@ -35,7 +35,7 @@
 #include <zlib.h>
 #endif
 
-#define DEBUG 1
+#define DEBUG 0
 
 /**
  * The sources of keywords as strings.


Index: libextractor.spec
===================================================================
RCS file: /cvs/extras/rpms/libextractor/devel/libextractor.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- libextractor.spec	2 Jan 2007 12:47:06 -0000	1.2
+++ libextractor.spec	2 Jan 2007 15:07:45 -0000	1.3
@@ -6,7 +6,7 @@
 
 Name:		libextractor
 Version:	0.5.17
-Release:	%release_func 1
+Release:	%release_func 2
 Summary:	Simple library for keyword extraction
 
 Group:		System Environment/Libraries
@@ -14,6 +14,7 @@
 URL:		http://gnunet.org/libextractor
 Source0:	http://gnunet.org/libextractor/download/%name-%version.tar.gz
 Source1:	README.fedora
+Patch0:		libextractor-0.5.17-nodebug.patch
 BuildRoot:	%_tmppath/%name-%version-%release-root
 
 BuildRequires:	gettext
@@ -120,6 +121,8 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .nodebug
+
 install -pm644 %SOURCE1 .
 
 # remove the '4' suffix of the QtXXX libs
@@ -129,12 +132,21 @@
 	touch -r .timestamp "$i"
 done
 
+# fix empty datadir
 for i in configure{.ac,}; do
 	touch -r "$i" .timestamp
 	sed -i -e '/^datadir=$/d' "$i"
 	touch -r .timestamp "$i"
 done
 
+# fix pkgconfig path
+for i in Makefile.{am,in}; do
+	touch -r "$i" .timestamp
+	sed -i -e 's!^\(pkgconfigdatadir[^=]*=\).*$!\1 $(libdir)/pkgconfig!' "$i"
+	touch -r .timestamp "$i"
+done
+
+
 rm -f README.debian
 
 
@@ -231,6 +243,10 @@
 
 
 %changelog
+* Tue Jan  2 2007 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.5.17-2
+- disabled debug messages
+- fixed pkgconfig installation dir
+
 * Tue Jan  2 2007 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.5.17-1
 - updated to 0.5.17
 - fixed 'datadir' brokeness




More information about the fedora-extras-commits mailing list