rev 9052 - in kde-extras/ktorrent/branches/experimental/debian: . patches

Modestas Vainius modax-guest at alioth.debian.org
Sun Jan 20 03:39:16 UTC 2008


Author: modax-guest
Date: 2008-01-20 03:39:15 +0000 (Sun, 20 Jan 2008)
New Revision: 9052

Added:
   kde-extras/ktorrent/branches/experimental/debian/libbtcore-dev.install
   kde-extras/ktorrent/branches/experimental/debian/libbtcore1.install
   kde-extras/ktorrent/branches/experimental/debian/patches/01_system_geoip_and_flags.diff
Removed:
   kde-extras/ktorrent/branches/experimental/debian/ktorrent.docs
   kde-extras/ktorrent/branches/experimental/debian/patches/01_libtool_update.diff
   kde-extras/ktorrent/branches/experimental/debian/patches/02_am_maintainer_mode.diff
   kde-extras/ktorrent/branches/experimental/debian/patches/03_pedantic-errors.diff
   kde-extras/ktorrent/branches/experimental/debian/patches/04_disable_no_undefined.diff
   kde-extras/ktorrent/branches/experimental/debian/patches/05_cleanup_am_lib_qt.diff
   kde-extras/ktorrent/branches/experimental/debian/patches/06_makefile_am_fixups.diff
   kde-extras/ktorrent/branches/experimental/debian/patches/98_buildprep.diff
Modified:
   kde-extras/ktorrent/branches/experimental/debian/
   kde-extras/ktorrent/branches/experimental/debian/changelog
   kde-extras/ktorrent/branches/experimental/debian/compat
   kde-extras/ktorrent/branches/experimental/debian/control
   kde-extras/ktorrent/branches/experimental/debian/ktorrent.install
   kde-extras/ktorrent/branches/experimental/debian/not-installed
   kde-extras/ktorrent/branches/experimental/debian/patches/series
   kde-extras/ktorrent/branches/experimental/debian/rules
Log:
Very rough packaging (as in buildable and runnable). Unfortunately, this snapshot of ktorrent
starts to eat all RAM once running for maximum 10 minutes and therefore it needs to be killed
to get system usable again :(


Property changes on: kde-extras/ktorrent/branches/experimental/debian
___________________________________________________________________
Name: svn:externals
   + cdbs svn://svn.debian.org/pkg-kde/branches/kde4/cdbs/


Modified: kde-extras/ktorrent/branches/experimental/debian/changelog
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/changelog	2008-01-19 23:47:47 UTC (rev 9051)
+++ kde-extras/ktorrent/branches/experimental/debian/changelog	2008-01-20 03:39:15 UTC (rev 9052)
@@ -13,8 +13,20 @@
   * Major part of packaging was done from scratch in comparision with
     2.2.4.dfsg.1-1 therefore some changes might have been left undocumented
     in this changelog.
+  * Switching to CDBS and debhelper v6.
+  * Update Standards-Version to 3.7.3.0
+  * Now ktorrent-dbg recommends kdelibs5-dbg due to obvious reasons. Also add
+    ktorrent-dbg to ktorrent Recommends because this is upstream development
+    release.
+  * Drop Homepage stanza from ktorrent description, add Homepage field to
+    debian/control source section instead.
+  * New binary packages (libbtcore1 and libbtcore-dev) for btcore public
+    library.
+  * Add kdebase-runtime-data-common as alternative for kdebase-data in
+    ktorrent Recommends. They both ship flags used by ktorrent infowidget
+    plugin.
 
- -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Sat, 19 Jan 2008 15:26:02 +0200
+ -- Modestas Vainius <modestas at vainius.eu>  Sat, 19 Jan 2008 21:04:14 +0200
 
 ktorrent (2.2.4.dfsg.1-1) unstable; urgency=medium
 

Modified: kde-extras/ktorrent/branches/experimental/debian/compat
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/compat	2008-01-19 23:47:47 UTC (rev 9051)
+++ kde-extras/ktorrent/branches/experimental/debian/compat	2008-01-20 03:39:15 UTC (rev 9052)
@@ -1 +1 @@
-5
+6

Modified: kde-extras/ktorrent/branches/experimental/debian/control
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/control	2008-01-19 23:47:47 UTC (rev 9051)
+++ kde-extras/ktorrent/branches/experimental/debian/control	2008-01-20 03:39:15 UTC (rev 9052)
@@ -3,13 +3,28 @@
 Priority: optional
 Maintainer: Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>
 Uploaders: Joel Johnson <mrjoel at lixil.net>, Modestas Vainius <modestas at vainius.eu>
-Build-Depends: debhelper (>= 5.0.0), autotools-dev, kdelibs4-dev, libpcre3-dev, libx11-dev, libgmp3-dev, libgeoip-dev, quilt (>= 0.40)
-Standards-Version: 3.7.2.0
+Build-Depends: cmake, debhelper (>= 6.0.0), cdbs, quilt, kdelibs5-dev, libgmp3-dev, libqca2-dev, libgeoip-dev, libphonon-dev
+Standards-Version: 3.7.3.0
+Homepage: http://ktorrent.org/
 
+Package: libbtcore1
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}
+Description: short here
+ Long desc here
+
+Package: libbtcore-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}
+Description: short here
+ Long desc here
+
 Package: ktorrent
 Architecture: any
 Depends: ${shlibs:Depends}
-Recommends: kdebase-data, kdebase-kio-plugins
+Recommends: kdebase-runtime-data-common | kdebase-data, ktorrent-dbg (= ${binary:Version})
 Suggests: php5-cli
 Description: BitTorrent client for KDE
  KTorrent is a BitTorrent program for KDE. You can use it to download and upload
@@ -38,14 +53,12 @@
    - Diskspace monitoring, with option to stop torrents when diskspace is
      running low
    - Statistics plugin
- .
-  Homepage: http://ktorrent.org
 
 Package: ktorrent-dbg
 Architecture: any
 Priority: extra
 Depends: ktorrent (= ${binary:Version})
-Recommends: kdelibs-dbg
+Recommends: kdelibs5-dbg
 Description: KTorrent debugging symbols
  This package contains debugging symbols for KTorrent. When KTorrent crashes,
  in most cases this package is needed to get a backtrace that is useful for

Deleted: kde-extras/ktorrent/branches/experimental/debian/ktorrent.docs

Modified: kde-extras/ktorrent/branches/experimental/debian/ktorrent.install
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/ktorrent.install	2008-01-19 23:47:47 UTC (rev 9051)
+++ kde-extras/ktorrent/branches/experimental/debian/ktorrent.install	2008-01-20 03:39:15 UTC (rev 9052)
@@ -1,13 +1,31 @@
 debian/tmp/usr/bin/ktorrent
-debian/tmp/usr/bin/ktshell
-debian/tmp/usr/lib/libktorrent-*.so
-debian/tmp/usr/lib/kde3/*
-debian/tmp/usr/share/applications/kde/ktorrent.desktop
-debian/tmp/usr/share/apps/ktorrent/*
-debian/tmp/usr/share/config.kcfg/*
-debian/tmp/usr/share/icons/*
+debian/tmp/usr/bin/ktupnptest
+debian/tmp/usr/lib/kde4/ktbwschedulerplugin.so
+debian/tmp/usr/lib/kde4/ktinfowidgetplugin.so
+debian/tmp/usr/lib/kde4/ktipfilterplugin.so
+debian/tmp/usr/lib/kde4/ktlogviewerplugin.so
+debian/tmp/usr/lib/kde4/ktscanfolderplugin.so
+debian/tmp/usr/lib/kde4/ktsearchplugin.so
+debian/tmp/usr/lib/kde4/ktstatsplugin.so
+debian/tmp/usr/lib/kde4/ktupnpplugin.so
+debian/tmp/usr/lib/kde4/ktwebinterfaceplugin.so
+debian/tmp/usr/lib/libktcore.so.1
+debian/tmp/usr/lib/libktcore.so.1.0.0
+debian/tmp/usr/lib/libktupnp.so.1
+debian/tmp/usr/lib/libktupnp.so.1.0.0
+debian/tmp/usr/share/applications/kde4/ktorrent.desktop
+debian/tmp/usr/share/icons/hicolor/*
+debian/tmp/usr/share/kde4/apps/ktorrent/*
+debian/tmp/usr/share/kde4/services/ktbwschedulerplugin.desktop
+debian/tmp/usr/share/kde4/services/ktinfowidgetplugin.desktop
+debian/tmp/usr/share/kde4/services/ktipfilterplugin.desktop
+debian/tmp/usr/share/kde4/services/ktlogviewerplugin.desktop
+debian/tmp/usr/share/kde4/services/ktscanfolderplugin.desktop
+debian/tmp/usr/share/kde4/services/ktsearchplugin.desktop
+debian/tmp/usr/share/kde4/services/ktstatsplugin.desktop
+debian/tmp/usr/share/kde4/services/ktupnpplugin.desktop
+debian/tmp/usr/share/kde4/services/ktwebinterfaceplugin.desktop
+debian/tmp/usr/share/kde4/servicetypes/ktorrentplugin.desktop
 debian/tmp/usr/share/locale/*
-debian/tmp/usr/share/services/*
-debian/tmp/usr/share/servicetypes/*
 
 debian/ktorrent.xpm usr/share/pixmaps/

Added: kde-extras/ktorrent/branches/experimental/debian/libbtcore-dev.install
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/libbtcore-dev.install	                        (rev 0)
+++ kde-extras/ktorrent/branches/experimental/debian/libbtcore-dev.install	2008-01-20 03:39:15 UTC (rev 9052)
@@ -0,0 +1,55 @@
+debian/tmp/usr/include/libbtcore/bcodec/bdecoder.h
+debian/tmp/usr/include/libbtcore/bcodec/bencoder.h
+debian/tmp/usr/include/libbtcore/bcodec/bnode.h
+debian/tmp/usr/include/libbtcore/bcodec/value.h
+debian/tmp/usr/include/libbtcore/btcore_export.h
+debian/tmp/usr/include/libbtcore/btversion.h
+debian/tmp/usr/include/libbtcore/datachecker/datacheckerlistener.h
+debian/tmp/usr/include/libbtcore/diskio/cache.h
+debian/tmp/usr/include/libbtcore/diskio/chunkmanager.h
+debian/tmp/usr/include/libbtcore/interfaces/chunkdownloadinterface.h
+debian/tmp/usr/include/libbtcore/interfaces/exitoperation.h
+debian/tmp/usr/include/libbtcore/interfaces/ipblockinginterface.h
+debian/tmp/usr/include/libbtcore/interfaces/logmonitorinterface.h
+debian/tmp/usr/include/libbtcore/interfaces/monitorinterface.h
+debian/tmp/usr/include/libbtcore/interfaces/peerinterface.h
+debian/tmp/usr/include/libbtcore/interfaces/peersource.h
+debian/tmp/usr/include/libbtcore/interfaces/queuemanagerinterface.h
+debian/tmp/usr/include/libbtcore/interfaces/torrentfileinterface.h
+debian/tmp/usr/include/libbtcore/interfaces/torrentinterface.h
+debian/tmp/usr/include/libbtcore/interfaces/trackerslist.h
+debian/tmp/usr/include/libbtcore/mse/streamsocket.h
+debian/tmp/usr/include/libbtcore/net/address.h
+debian/tmp/usr/include/libbtcore/net/portlist.h
+debian/tmp/usr/include/libbtcore/net/socket.h
+debian/tmp/usr/include/libbtcore/net/socketmonitor.h
+debian/tmp/usr/include/libbtcore/peer/authenticationmonitor.h
+debian/tmp/usr/include/libbtcore/peer/peerid.h
+debian/tmp/usr/include/libbtcore/peer/peermanager.h
+debian/tmp/usr/include/libbtcore/torrent/choker.h
+debian/tmp/usr/include/libbtcore/torrent/globals.h
+debian/tmp/usr/include/libbtcore/torrent/ipblocklist.h
+debian/tmp/usr/include/libbtcore/torrent/server.h
+debian/tmp/usr/include/libbtcore/torrent/timeestimator.h
+debian/tmp/usr/include/libbtcore/torrent/torrent.h
+debian/tmp/usr/include/libbtcore/torrent/torrentcontrol.h
+debian/tmp/usr/include/libbtcore/torrent/torrentcreator.h
+debian/tmp/usr/include/libbtcore/torrent/torrentfile.h
+debian/tmp/usr/include/libbtcore/tracker/httptracker.h
+debian/tmp/usr/include/libbtcore/tracker/tracker.h
+debian/tmp/usr/include/libbtcore/tracker/udptrackersocket.h
+debian/tmp/usr/include/libbtcore/util/array.h
+debian/tmp/usr/include/libbtcore/util/bitset.h
+debian/tmp/usr/include/libbtcore/util/constants.h
+debian/tmp/usr/include/libbtcore/util/error.h
+debian/tmp/usr/include/libbtcore/util/file.h
+debian/tmp/usr/include/libbtcore/util/fileops.h
+debian/tmp/usr/include/libbtcore/util/functions.h
+debian/tmp/usr/include/libbtcore/util/log.h
+debian/tmp/usr/include/libbtcore/util/ptrmap.h
+debian/tmp/usr/include/libbtcore/util/sha1hash.h
+debian/tmp/usr/include/libbtcore/util/sha1hashgen.h
+debian/tmp/usr/include/libbtcore/util/timer.h
+debian/tmp/usr/include/libbtcore/util/waitjob.h
+debian/tmp/usr/lib/libbtcore.so
+debian/tmp/usr/share/kde4/apps/cmake/modules/FindBTCore.cmake

Added: kde-extras/ktorrent/branches/experimental/debian/libbtcore1.install
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/libbtcore1.install	                        (rev 0)
+++ kde-extras/ktorrent/branches/experimental/debian/libbtcore1.install	2008-01-20 03:39:15 UTC (rev 9052)
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libbtcore.so.1
+debian/tmp/usr/lib/libbtcore.so.1.0.0

Modified: kde-extras/ktorrent/branches/experimental/debian/not-installed
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/not-installed	2008-01-19 23:47:47 UTC (rev 9051)
+++ kde-extras/ktorrent/branches/experimental/debian/not-installed	2008-01-20 03:39:15 UTC (rev 9052)
@@ -1,8 +1,3 @@
-# Various utilities shipped with ktorrent 
-debian/tmp/usr/bin/ktcachecheck
-debian/tmp/usr/bin/kttorinfo
-debian/tmp/usr/bin/ktupnptest
-
 # Development stuff
-debian/tmp/usr/lib/libktorrent.so
-debian/tmp/usr/lib/libktorrent.la
+usr/lib/libktcore.so
+usr/lib/libktupnp.so

Deleted: kde-extras/ktorrent/branches/experimental/debian/patches/01_libtool_update.diff

Added: kde-extras/ktorrent/branches/experimental/debian/patches/01_system_geoip_and_flags.diff
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/patches/01_system_geoip_and_flags.diff	                        (rev 0)
+++ kde-extras/ktorrent/branches/experimental/debian/patches/01_system_geoip_and_flags.diff	2008-01-20 03:39:15 UTC (rev 9052)
@@ -0,0 +1,86 @@
+diff -uNr -x debian -x .pc ktorrent-3.0~beta1+svn763151.dfsg.1/plugins/infowidget/CMakeLists.txt ktorrent-3.0~beta1+svn763151.dfsg.1.n/plugins/infowidget/CMakeLists.txt
+--- ktorrent-3.0~beta1+svn763151.dfsg.1/plugins/infowidget/CMakeLists.txt	2008-01-19 12:10:51.000000000 +0200
++++ ktorrent-3.0~beta1+svn763151.dfsg.1.n/plugins/infowidget/CMakeLists.txt	2008-01-20 03:34:48.000000000 +0200
+@@ -1,3 +1,30 @@
++# Add an option to compile & link against system GeoIP (off by default)
++option(WITH_SYSTEM_GEOIP 
++	"Link InfoWidget plugin against system GeoIP library and use system-wide default GeoIP Country database"
++	OFF)
++
++if (WITH_SYSTEM_GEOIP)
++	check_include_file("GeoIP.h" have_geoip_include)
++	find_library(SYSTEM_GEOIP_LIBRARY "GeoIP")
++	check_library_exists("GeoIP" "GeoIP_open_type" ${SYSTEM_GEOIP_LIBRARY} have_geoip_library)
++	if (NOT have_geoip_include OR NOT have_geoip_library)
++		set(WITH_SYSTEM_GEOIP OFF CACHE BOOL
++		  "GeoIP development files could not be found on this system. Forcing this option to OFF"
++		  FORCE)
++		message(SEND_ERROR
++		  "GeoIP library development files could not be found on your system. Embedding a local copy of GeoIP instead")
++	endif(NOT have_geoip_include OR NOT have_geoip_library)
++endif(WITH_SYSTEM_GEOIP)
++
++if (WITH_SYSTEM_GEOIP)
++	message(STATUS "   Linking InfoWidget against system GeoIP library")
++	add_definitions( -DUSE_SYSTEM_GEOIP )
++	set(geoip_link "GeoIP")
++else(WITH_SYSTEM_GEOIP)
++	message(STATUS "   Compiling GeoIP support directly into InfoWidget plugin")
++	set(geoip_src GeoIP.c)
++endif(WITH_SYSTEM_GEOIP)    
++
+ add_subdirectory(geoip)
+ 
+ set(ktinfowidgetplugin_SRC 
+@@ -13,16 +40,16 @@
+ 	chunkdownloadview.cpp
+ 	chunkdownloadmodel.cpp
+ 	trackerview.cpp
+-	GeoIP.c
+ 	flagdb.cpp
+ 	iwfiletreemodel.cpp
+-	iwfilelistmodel.cpp)
++	iwfilelistmodel.cpp
++	${geoip_src})
+ 
+ kde4_add_ui_files(ktinfowidgetplugin_SRC iwprefpage.ui statustab.ui chunkdownloadview.ui trackerview.ui)
+ kde4_add_kcfg_files(ktinfowidgetplugin_SRC infowidgetpluginsettings.kcfgc)
+ kde4_add_plugin(ktinfowidgetplugin ${ktinfowidgetplugin_SRC})
+ 
+-target_link_libraries(ktinfowidgetplugin ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KPARTS_LIBS} ktcore )
++target_link_libraries(ktinfowidgetplugin ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KPARTS_LIBS} ktcore ${geoip_link})
+ install(TARGETS ktinfowidgetplugin  DESTINATION ${PLUGIN_INSTALL_DIR} )
+ install(FILES ktinfowidgetplugin.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )
+ 
+diff -uNr -x debian -x .pc ktorrent-3.0~beta1+svn763151.dfsg.1/plugins/infowidget/geoip/CMakeLists.txt ktorrent-3.0~beta1+svn763151.dfsg.1.n/plugins/infowidget/geoip/CMakeLists.txt
+--- ktorrent-3.0~beta1+svn763151.dfsg.1/plugins/infowidget/geoip/CMakeLists.txt	2008-01-19 12:10:51.000000000 +0200
++++ ktorrent-3.0~beta1+svn763151.dfsg.1.n/plugins/infowidget/geoip/CMakeLists.txt	2008-01-20 03:29:22.000000000 +0200
+@@ -1,9 +1,17 @@
++# Do not install GeoIP specific data files if infowidget is being
++# compiled against system GeoIP
++if (NOT WITH_SYSTEM_GEOIP)
++	set(geoip_data geoip.dat GeoIP-LICENSE.txt)
++	install(FILES ${geoip_data} DESTINATION ${DATA_INSTALL_DIR}/ktorrent)
++endif(NOT WITH_SYSTEM_GEOIP)    
+ 
+-set(geoip_data geoip.dat GeoIP-LICENSE.txt)
++# Allow to disable instalation of built-in country flags
++option (WITH_BUILTIN_COUNTRY_FLAGS
++	"Install and prefer builtin country flags to the ones provided by KDE"
++	ON)
+ 
+-install(FILES ${geoip_data} DESTINATION ${DATA_INSTALL_DIR}/ktorrent)
+-
+-set(flags ad.png ae.png af.png ag.png ai.png al.png am.png an.png ao.png 
++if (WITH_BUILTIN_COUNTRY_FLAGS)
++	set(flags ad.png ae.png af.png ag.png ai.png al.png am.png an.png ao.png 
+ 		aq.png ar.png as.png at.png au.png aw.png az.png ba.png bb.png bd.png be.png 
+ 		bf.png bg.png bh.png bi.png bj.png bm.png bn.png bo.png br.png bs.png bt.png 
+ 		bv.png bw.png by.png bz.png ca.png cc.png cd.png cf.png cg.png ch.png ci.png 
+@@ -27,4 +35,5 @@
+ 		ve.png vg.png vi.png vn.png vu.png wf.png ws.png ye.png yt.png yu.png za.png 
+ 		zm.png zw.png FLAGS_LICENCE)
+ 
+-install(FILES ${flags} DESTINATION ${DATA_INSTALL_DIR}/ktorrent)
++	install(FILES ${flags} DESTINATION ${DATA_INSTALL_DIR}/ktorrent)
++endif(WITH_BUILTIN_COUNTRY_FLAGS)

Deleted: kde-extras/ktorrent/branches/experimental/debian/patches/02_am_maintainer_mode.diff

Deleted: kde-extras/ktorrent/branches/experimental/debian/patches/03_pedantic-errors.diff

Deleted: kde-extras/ktorrent/branches/experimental/debian/patches/04_disable_no_undefined.diff

Deleted: kde-extras/ktorrent/branches/experimental/debian/patches/05_cleanup_am_lib_qt.diff

Deleted: kde-extras/ktorrent/branches/experimental/debian/patches/06_makefile_am_fixups.diff

Deleted: kde-extras/ktorrent/branches/experimental/debian/patches/98_buildprep.diff

Modified: kde-extras/ktorrent/branches/experimental/debian/patches/series
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/patches/series	2008-01-19 23:47:47 UTC (rev 9051)
+++ kde-extras/ktorrent/branches/experimental/debian/patches/series	2008-01-20 03:39:15 UTC (rev 9052)
@@ -1,7 +1 @@
-01_libtool_update.diff
-02_am_maintainer_mode.diff
-03_pedantic-errors.diff
-04_disable_no_undefined.diff
-05_cleanup_am_lib_qt.diff
-06_makefile_am_fixups.diff
-98_buildprep.diff
+01_system_geoip_and_flags.diff

Modified: kde-extras/ktorrent/branches/experimental/debian/rules
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/rules	2008-01-19 23:47:47 UTC (rev 9051)
+++ kde-extras/ktorrent/branches/experimental/debian/rules	2008-01-20 03:39:15 UTC (rev 9052)
@@ -1,97 +1,12 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+include debian/cdbs/kde.mk
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_CMAKE_EXTRA_FLAGS += -DWITH_SYSTEM_GEOIP:BOOL=ON \
+                         -DWITH_BUILTIN_COUNTRY_FLAGS:BOOL=OFF
 
-include /usr/share/quilt/quilt.make
+DEB_DH_INSTALL_ARGS=
 
-CFLAGS = -Wall -g
-CXXFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-	CXXFLAGS += -O0
-else
-	CFLAGS += -O2
-	CXXFLAGS += -O2
-endif
-
-# Disable --enable-final on arm to hopefully make it build
-ifeq ($(DEB_HOST_ARCH),arm)
-    ENABLE_FINAL :=
-else
-    ENABLE_FINAL := --enable-final
-endif
-
-config.status: $(QUILT_STAMPFN)
-	dh_testdir
-	test -L config.sub || ln -sf /usr/share/misc/config.sub config.sub
-	test -L config.guess || ln -sf /usr/share/misc/config.guess config.guess
-
-	CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
-		--build=$(DEB_BUILD_GNU_TYPE) \
-		--prefix=/usr --mandir=\$${prefix}/share/man --disable-rpath \
-		$(ENABLE_FINAL) --enable-largefile \
-		--enable-system-geoip --disable-builtin-country-flags
-
-
-build: build-stamp
-
-build-stamp: config.status
-	dh_testdir
-	$(MAKE)
-	touch build-stamp
-
-clean::
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp 
-
-	[ ! -f Makefile ] || $(MAKE) maintainer-clean
-	rm -f config.sub config.guess
-
-	dh_clean 
-
-clean:: unpatch
-
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k 
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
-
-	# Install lintian overrides
-	install -D -o root -g root -m 0644 debian/overrides.lintian \
-		$(CURDIR)/debian/ktorrent/usr/share/lintian/overrides/ktorrent
-
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs ChangeLog
-	dh_installdocs
-	dh_installman
-	dh_install
-	dh_installmenu
-	dh_strip --dbg-package=ktorrent-dbg
-	dh_compress
-	dh_fixperms
-	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary-indep:
-	# nop - no common archives
-
 prune-tarball:
 	# Remove non-free components: flags and geoip data file
 	rm -f plugins/infowidget/geoip/*.png
@@ -99,5 +14,4 @@
 	rm -f plugins/infowidget/geoip/geoip.dat
 	rm -f plugins/infowidget/geoip/GeoIP-LICENSE.txt
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install prune-tarball
+.PHONY: prune-tarball




More information about the pkg-kde-commits mailing list