rpms/linuxdcpp/F-9 linuxdcpp-1.0.2-xdg.patch, NONE, 1.1 .cvsignore, 1.3, 1.4 linuxdcpp.spec, 1.6, 1.7 sources, 1.3, 1.4 linuxdcpp-1.0.1-gcc43-compile-fix.patch, 1.1, NONE linuxdcpp-CVE-2008-2953.patch, 1.1, NONE linuxdcpp-CVE-2008-2954.patch, 1.1, NONE

Marcin Garski mgarski at fedoraproject.org
Sun Nov 2 23:22:06 UTC 2008


Author: mgarski

Update of /cvs/pkgs/rpms/linuxdcpp/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20478

Modified Files:
	.cvsignore linuxdcpp.spec sources 
Added Files:
	linuxdcpp-1.0.2-xdg.patch 
Removed Files:
	linuxdcpp-1.0.1-gcc43-compile-fix.patch 
	linuxdcpp-CVE-2008-2953.patch linuxdcpp-CVE-2008-2954.patch 
Log Message:
- Use XDG Downloads directory (#460749)
- Update to 1.0.2
- Drop all patches (all upstream now)


linuxdcpp-1.0.2-xdg.patch:

--- NEW FILE linuxdcpp-1.0.2-xdg.patch ---
diff -ur linuxdcpp-1.0.2-orig/client/SConstruct linuxdcpp-1.0.2/client/SConstruct
--- linuxdcpp-1.0.2-orig/client/SConstruct	2008-05-04 20:55:24.000000000 +0200
+++ linuxdcpp-1.0.2/client/SConstruct	2008-09-21 22:37:32.000000000 +0200
@@ -45,7 +45,10 @@
 
 Import('env')
 
+env_client = env.Clone()
+env_client.ParseConfig('pkg-config --cflags glib-2.0')
+
 # Build the client_files
-clientObjs = env.Object(client_files)
+clientObjs = env_client.Object(client_files)
 
 Return('clientObjs')
diff -ur linuxdcpp-1.0.2-orig/client/SettingsManager.cpp linuxdcpp-1.0.2/client/SettingsManager.cpp
--- linuxdcpp-1.0.2-orig/client/SettingsManager.cpp	2008-05-04 20:55:25.000000000 +0200
+++ linuxdcpp-1.0.2/client/SettingsManager.cpp	2008-09-21 22:38:17.000000000 +0200
@@ -16,6 +16,8 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <glib.h>
+
 #include "stdinc.h"
 #include "DCPlusPlus.h"
 
@@ -112,7 +114,10 @@
 		int64Settings[k] = 0;
 	}
 
-	setDefault(DOWNLOAD_DIRECTORY, Util::getConfigPath() + "Downloads" PATH_SEPARATOR_STR);
+	const char* xdgDir = g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD);
+	const string downloadDir = xdgDir ? string(xdgDir) + PATH_SEPARATOR_STR : Util::getConfigPath() + "Downloads" PATH_SEPARATOR_STR;
+
+	setDefault(DOWNLOAD_DIRECTORY, downloadDir);
 	setDefault(TEMP_DOWNLOAD_DIRECTORY, Util::getConfigPath() + "Incomplete" PATH_SEPARATOR_STR);
 	setDefault(SLOTS, 1);
 	setDefault(TCP_PORT, 0);
diff -ur linuxdcpp-1.0.2-orig/SConstruct linuxdcpp-1.0.2/SConstruct
--- linuxdcpp-1.0.2-orig/SConstruct	2008-07-03 05:54:11.000000000 +0200
+++ linuxdcpp-1.0.2/SConstruct	2008-09-21 22:37:32.000000000 +0200
@@ -126,6 +126,11 @@
 		print '\tNote: You might have the lib but not the headers'
 		Exit(1)
 
+	if not conf.CheckPKG('glib-2.0 >= 2.14'):
+		print '\tglib >= 2.14 not found.'
+		print '\tNote: You might have the lib but not the headers'
+		Exit(1)
+
 	if not conf.CheckHeader('time.h'):
 		Exit(1)
 


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/linuxdcpp/F-9/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore	28 Dec 2007 14:59:11 -0000	1.3
+++ .cvsignore	2 Nov 2008 23:21:36 -0000	1.4
@@ -1 +1 @@
-linuxdcpp-1.0.1.tar.bz2
+linuxdcpp-1.0.2.tar.bz2


Index: linuxdcpp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/linuxdcpp/F-9/linuxdcpp.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- linuxdcpp.spec	2 Jul 2008 11:49:43 -0000	1.6
+++ linuxdcpp.spec	2 Nov 2008 23:21:36 -0000	1.7
@@ -1,20 +1,17 @@
 Name:		linuxdcpp
-Version:	1.0.1
-Release:	3%{?dist}
+Version:	1.0.2
+Release:	2%{?dist}
 Summary:	Direct Connect client
 
 Group:		Applications/Internet
 License:	GPLv2+
-URL:		http://linuxdcpp.berlios.de/
-Source0:	ftp://ftp.berlios.de/pub/linuxdcpp/linuxdcpp-%{version}.tar.bz2
+URL:		https://launchpad.net/linuxdcpp
+Source0:	http://launchpad.net/linuxdcpp/1.0/1.0.2/+download/linuxdcpp-%{version}.tar.bz2
 Source1:	%{name}.desktop
+Patch0:		linuxdcpp-1.0.2-xdg.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-Patch0:		linuxdcpp-1.0.1-gcc43-compile-fix.patch
-Patch1:		linuxdcpp-CVE-2008-2953.patch
-Patch2:		linuxdcpp-CVE-2008-2954.patch
-
-BuildRequires:	scons gtk2-devel >= 2.6.0 glib2-devel >= 2.4.0 pkgconfig
+BuildRequires:	scons gtk2-devel >= 2.8.0 glib2-devel >= 2.14.0 pkgconfig
 BuildRequires:	libglade2-devel >= 2.4.0 zlib-devel bzip2-devel openssl-devel
 BuildRequires:	desktop-file-utils
 
@@ -22,11 +19,8 @@
 LinuxDC++ is a Linux port of DC++, a popular client for Direct Connect network.
 
 %prep
-%setup -q -c
-
+%setup -q
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
 
 %build
 CXXFLAGS="$RPM_OPT_FLAGS" scons %{?_smp_mflags} PREFIX="%{_prefix}"
@@ -51,9 +45,6 @@
 	mv -f ${i}.tmp ${i}
 done
 
-# Fix docs permissions
-chmod 0644 License.txt Readme.txt
-
 # Remove unversioned docdir
 rm -rf $RPM_BUILD_ROOT%{_docdir}/linuxdcpp/
 
@@ -69,6 +60,13 @@
 %{_datadir}/pixmaps/linuxdcpp.png
 
 %changelog
+* Thu Sep 25 2008 Marcin Garski <mgarski[AT]post.pl> 1.0.2-2
+- Use XDG Downloads directory (#460749)
+
+* Sun Jul 06 2008 Marcin Garski <mgarski[AT]post.pl> 1.0.2-1
+- Update to 1.0.2
+- Drop all patches (all upstream now)
+
 * Wed Jul 02 2008 Marcin Garski <mgarski[AT]post.pl> 1.0.1-3
 - Fix for CVE-2008-2953 and CVE-2008-2954 (#453731)
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/linuxdcpp/F-9/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources	28 Dec 2007 14:59:11 -0000	1.3
+++ sources	2 Nov 2008 23:21:36 -0000	1.4
@@ -1 +1 @@
-62166f54d3366e61950d8baf51068a95  linuxdcpp-1.0.1.tar.bz2
+905d572357cbdbc66c8d45fe394f80fc  linuxdcpp-1.0.2.tar.bz2


--- linuxdcpp-1.0.1-gcc43-compile-fix.patch DELETED ---


--- linuxdcpp-CVE-2008-2953.patch DELETED ---


--- linuxdcpp-CVE-2008-2954.patch DELETED ---




More information about the fedora-extras-commits mailing list