[packages/transmission] - updated verchange bcond (client version identifiaction: 2.42)

charles charles at pld-linux.org
Thu Jul 26 17:37:49 CEST 2012


commit 45cd44dc56c41726564716437c82b62a5e1db471
Author: Karol Krenski <charles at pld-linux.org>
Date:   Thu Jul 26 17:37:36 2012 +0200

    - updated verchange bcond (client version identifiaction: 2.42)

 transmission-version.patch | 61 +++++-----------------------------------------
 transmission.spec          |  9 +++++--
 2 files changed, 13 insertions(+), 57 deletions(-)
---
diff --git a/transmission-version.patch b/transmission-version.patch
index 8dffe8f..0f9adc7 100644
--- a/transmission-version.patch
+++ b/transmission-version.patch
@@ -1,62 +1,13 @@
-diff -ur transmission-2.41-orig/configure transmission-2.41/configure
---- transmission-2.41-orig/configure	2011-10-11 13:08:57.632668941 +0200
-+++ transmission-2.41/configure	2011-10-11 13:13:54.969736327 +0200
-@@ -570,8 +570,8 @@
- # Identity of this package.
- PACKAGE_NAME='transmission'
- PACKAGE_TARNAME='transmission'
--PACKAGE_VERSION='2.51'
--PACKAGE_STRING='transmission 2.51'
-+PACKAGE_VERSION='2.33'
-+PACKAGE_STRING='transmission 2.33'
- PACKAGE_BUGREPORT='http://trac.transmissionbt.com/newticket'
- PACKAGE_URL=''
- 
-@@ -2509,9 +2509,9 @@
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- 
- 
--USERAGENT_PREFIX=2.51
-+USERAGENT_PREFIX=2.33
- 
--PEERID_PREFIX=-TR2510-
-+PEERID_PREFIX=-TR2330-
- 
- 
- # Check whether --enable-silent-rules was given.
-diff -ur transmission-2.41-orig/configure.ac transmission-2.41/configure.ac
---- transmission-2.41-orig/configure.ac	2011-10-11 13:08:59.142738694 +0200
-+++ transmission-2.41/configure.ac	2011-10-11 13:14:45.528738295 +0200
+--- transmission-2.61/configure.ac.orig
++++ transmission-2.61/configure.ac
 @@ -3,8 +3,8 @@
  dnl         "Z" for unsupported trunk builds,
  dnl         "0" for stable, supported releases
  dnl these should be the only two lines you need to change
--m4_define([user_agent_prefix],[2.51])
--m4_define([peer_id_prefix],[-TR2510-])
-+m4_define([user_agent_prefix],[2.33])
-+m4_define([peer_id_prefix],[-TR2330-])
+-m4_define([user_agent_prefix],[2.61])
+-m4_define([peer_id_prefix],[-TR2610-])
++m4_define([user_agent_prefix],[2.42])
++m4_define([peer_id_prefix],[-TR2420-])
  
  AC_INIT([transmission],
          [user_agent_prefix],
-diff -ur transmission-2.41-orig/libtransmission/version.h transmission-2.41/libtransmission/version.h
---- transmission-2.41-orig/libtransmission/version.h	2011-10-11 13:08:57.982685108 +0200
-+++ transmission-2.41/libtransmission/version.h	2011-07-21 01:39:34.000000000 +0200
-@@ -1,10 +1,10 @@
--#define PEERID_PREFIX             "-TR2510-"
--#define USERAGENT_PREFIX          "2.51"
--#define SVN_REVISION              "13280"
--#define SVN_REVISION_NUM          13280
--#define SHORT_VERSION_STRING      "2.51"
--#define LONG_VERSION_STRING       "2.51 (13280)"
--#define VERSION_STRING_INFOPLIST  2.51
-+#define PEERID_PREFIX             "-TR2330-"
-+#define USERAGENT_PREFIX          "2.33"
-+#define SVN_REVISION              "12565"
-+#define SVN_REVISION_NUM          12565
-+#define SHORT_VERSION_STRING      "2.33"
-+#define LONG_VERSION_STRING       "2.33 (12565)"
-+#define VERSION_STRING_INFOPLIST  2.33
- #define MAJOR_VERSION             2
--#define MINOR_VERSION             51
-+#define MINOR_VERSION             33
- #define TR_STABLE_RELEASE         1
diff --git a/transmission.spec b/transmission.spec
index e91017d..5cc90f1 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -1,5 +1,6 @@
 # Conditional build:
-%bcond_with verchange     # changes client version identifiaction to 2.22
+%bcond_with verchange     # changes client version identifiaction to 2.42
+
 Summary:	A versatile and multi-platform BitTorrent client
 Summary(hu.UTF-8):	Egy sokoldalú és multiplatformos BitTorrent kliens
 Summary(pl.UTF-8):	Wszechstronny i wieloplatformowy klient BitTorrenta
@@ -126,7 +127,11 @@ mv %{name}-%{version}/* .
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%{?with_verchange:%patch4 -p1}
+%if %{with verchange}
+%patch4 -p1
+./update-version-h.sh
+%endif
+
 %{__rm} po/ckb.po
 %{__sed} -i 's/\(^CONFIG.*\)\( debug\)/\1/' qt/qtr.pro
 


More information about the pld-cvs-commit mailing list