packages: qfaktury/qfaktury.spec, qfaktury/qfaktury-prefix_with_slash.patch...

tiwek tiwek at pld-linux.org
Tue Jul 12 14:45:21 CEST 2011


Author: tiwek                        Date: Tue Jul 12 12:45:21 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added patch for use "/" in prefix
STBR

---- Files affected:
packages/qfaktury:
   qfaktury.spec (1.22 -> 1.23) , qfaktury-prefix_with_slash.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/qfaktury/qfaktury.spec
diff -u packages/qfaktury/qfaktury.spec:1.22 packages/qfaktury/qfaktury.spec:1.23
--- packages/qfaktury/qfaktury.spec:1.22	Fri Jun  3 03:09:04 2011
+++ packages/qfaktury/qfaktury.spec	Tue Jul 12 14:45:16 2011
@@ -3,13 +3,15 @@
 Summary(pl.UTF-8):	Darmowy i wszechstronny system fakturujący
 Name:		qfaktury
 Version:	0.6.2
-Release:	1
+Release:	2
 License:	GPL v3
 Group:		X11/Applications
 Source0:	http://dl.sourceforge.net/sourceforge/qfaktury/%{name}-%{version}.tar.gz
 # Source0-md5:	047f8239bf6187c9da9b69f90f284c15
 Patch0:		%{name}-desktop.patch
 Patch1:		build.patch
+##		Patch for / in prefix
+Patch2:		qfaktury-prefix_with_slash.patch
 URL:		http://qfaktury.sourceforge.net/
 BuildRequires:	qt4-build
 BuildRequires:	qt4-qmake
@@ -35,6 +37,7 @@
 %setup -q 
 #%patch0 -p1
 %patch1 -p1
+%patch2 -p0
 sed -i -e 's|/usr/lib/qt4/mkspecs|/usr/share/qt4/mkspecs|g' Makefile
 
 %build
@@ -65,6 +68,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2011/07/12 12:45:16  tiwek
+- added patch for use "/" in prefix
+STBR
+
 Revision 1.22  2011/06/03 01:09:04  gotar
 - fix for 64b %_libdir, rel. 1
 

================================================================
Index: packages/qfaktury/qfaktury-prefix_with_slash.patch
diff -u /dev/null packages/qfaktury/qfaktury-prefix_with_slash.patch:1.1
--- /dev/null	Tue Jul 12 14:45:21 2011
+++ packages/qfaktury/qfaktury-prefix_with_slash.patch	Tue Jul 12 14:45:16 2011
@@ -0,0 +1,14 @@
+--- Faktura.cpp	2009-04-12 16:52:02.000000000 +0200
++++ Faktura.cpp	2011-03-10 16:29:00.473481810 +0100
+@@ -288,8 +288,10 @@
+ 	}
+ 	prefix = sett().value("prefix").toString();
+ 
++	//adrav: first delete the prefix, then split
++	tmp.remove(prefix);
+ 	QStringList one1 = tmp.split("/");
+-	one1[0] = one1[0].remove(prefix);
++	//one1[0] = one1[0].remove(prefix);
+ 
+ 	int nr = one1[0].toInt() + 1;
+ 	lastInvoice = prefix + numbersCount(nr,
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/qfaktury/qfaktury.spec?r1=1.22&r2=1.23&f=u



More information about the pld-cvs-commit mailing list