--- kcoloredit-4.0.98.orig/debian/compat +++ kcoloredit-4.0.98/debian/compat @@ -0,0 +1 @@ +5 --- kcoloredit-4.0.98.orig/debian/kcoloredit-kde4.lintian +++ kcoloredit-4.0.98/debian/kcoloredit-kde4.lintian @@ -0,0 +1,5 @@ +# We install KDE 4 in to /usr/lib current so it will always contain image files +kcoloredit-kde4: image-file-in-usr-lib + +# RPATH is essential for our KDE 4 packages currently due to our install location +kcoloredit: binary-or-shlib-defines-rpath --- kcoloredit-4.0.98.orig/debian/changelog +++ kcoloredit-4.0.98/debian/changelog @@ -0,0 +1,77 @@ +kcoloredit (4:4.0.98-0ubuntu1) intrepid; urgency=low + + * New upstream release candidate + + -- Richard Birnie Mon, 14 Jul 2008 19:27:55 +0000 + +kcoloredit (4:4.0.83-0ubuntu1) intrepid; urgency=low + + * New minor upstream release + + -- Richard Birnie Thu, 26 Jun 2008 20:03:30 +0000 + +kcoloredit (4:4.0.80-0ubuntu2) intrepid; urgency=low + + * Fix broken version number + + -- Richard Birnie Tue, 17 Jun 2008 19:41:17 +0000 + +kcoloredit (4:4.0.80-0ubuntu1) intrepid; urgency=low + + * New Upstream release + + -- Richard Birnie Sun, 15 Jun 2008 16:31:27 +0100 + +kcoloredit-kde4 (4.0.4-0ubuntu1~hardy1) hardy; urgency=low + + * New upstream release (LP: #226694) + * Updated control file bumping 4:4.0.3 to 4:4.0.4 and fixing description to + show package is for KDE 4 + + -- Richard A. Johnson Sun, 04 May 2008 18:53:06 -0500 + +kcoloredit-kde4 (4.0.3-0ubuntu1) hardy; urgency=low + + * New upstream release + * Bumped KDE 4 deps to 4:4.0.3 + * Updated rules file removing old wrapper script - replaced by kde.mk + + -- Richard A. Johnson Tue, 01 Apr 2008 12:36:18 -0500 + +kcoloredit-kde4 (4.0.2-0ubuntu3) hardy; urgency=low + + * Fixed watch file + * Fixed copyright file by removing the (s) created by template + * Added lintian overrides: + - for image files being installed into /usr/lib as our KDE 4 packages get + installed to /usr/lib/kde4, so there will always be image files in there + - for rpath defines since it is necessary for our KDE 4 packages + + -- Richard A. Johnson Wed, 26 Mar 2008 18:58:47 -0500 + +kcoloredit-kde4 (4.0.2-0ubuntu2) hardy; urgency=low + + * Added watch file + + -- Richard A. Johnson Wed, 26 Mar 2008 13:15:07 -0500 + +kcoloredit-kde4 (4.0.2-0ubuntu1) hardy; urgency=low + + * New upstream release + + -- Richard A. Johnson Mon, 03 Mar 2008 17:27:34 -0600 + +kcoloredit-kde4 (4.0.1-0ubuntu1) hardy; urgency=low + + * New upstream release + * Updated kde.mk + * Bumped kdelibs5-dev dep to 4:4.0.1 + + -- Richard A. Johnson Mon, 04 Feb 2008 17:35:06 -0600 + +kcoloredit-kde4 (4.0.0-0ubuntu1) hardy; urgency=low + + * Initial release + + -- Richard A. Johnson Wed, 09 Jan 2008 22:38:28 -0600 + --- kcoloredit-4.0.98.orig/debian/watch +++ kcoloredit-4.0.98/debian/watch @@ -0,0 +1,2 @@ +version=3 +ftp://ktown.kde.org/pub/kde/stable/latest/src/extragear/kcoloredit-(.*).tar.bz2 debian uupdate --- kcoloredit-4.0.98.orig/debian/rules +++ kcoloredit-4.0.98/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +THIS_SHOULD_GO_TO_UNSTABLE = 1 +include debian/cdbs/kde.mk --- kcoloredit-4.0.98.orig/debian/control +++ kcoloredit-4.0.98/debian/control @@ -0,0 +1,14 @@ +Source: kcoloredit +Section: utils +Priority: optional +Maintainer: Kubuntu Developers +XSBC-Original-Maintainer: Richard A. Johnson +Build-Depends: debhelper (>= 5), cdbs, quilt, cmake, kdelibs5-dev (>= 4:4.0.4) +Standards-Version: 3.7.3 + +Package: kcoloredit +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: color palette file editor for KDE 4 + KColorEdit is a palette files editor that can be used for editing color + palettes as well as for color choosing and naming in KDE 4. --- kcoloredit-4.0.98.orig/debian/copyright +++ kcoloredit-4.0.98/debian/copyright @@ -0,0 +1,41 @@ +This package was debianized by Richard A. Johnson on +Sat, 05 Jan 2008 23:31:02 -0600. + +Tarball downloaded from ftp://ktown.kde.org/ + +Upstream Author: + Artur Rataj + +Copyright Holder: + Copyright (C) 2000 - 2007 by Artur Rataj + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301, USA. + +The documentation docbook files in this package, placed under docs/, are under +the GNU Free Documentation License: + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation License, + Version 1.1 or any later version published by the Free Software + Foundation; with no Invariant Sections, with no Front-Cover Texts, + and with no Back-Cover Texts. + +The full text of the GNU Free Documentation License is available on Debian +systems in /usr/share/common-licenses/GFDL-1.2 + +The Debian packaging is (C) 2008, Richard A. Johnson +and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- kcoloredit-4.0.98.orig/debian/cdbs/versions.mk +++ kcoloredit-4.0.98/debian/cdbs/versions.mk @@ -0,0 +1,14 @@ + +CDBS_MIN_VER:=0.4.52 +QUILT_MIN_VER:=0.40 +CMAKE_MIN_VER:=2.4.8 + + +KDELIBS_VERSION:=$(shell dpkg -l kdelibs5 | grep kdelibs5 | awk '{print $$3}') +KDELIBS_SOURCE_VERSION:=$(shell echo $(KDELIBS_VERSION) | sed 's/+b.*//') +KDELIBS_UPSTREAM_VERSION:=$(shell echo $(KDELIBS_VERSION) | sed 's/-.*//') + +KDEPIMLIBS_VERSION:=$(shell dpkg -l kdepimlibs5 | grep kdepimlibs5 | awk '{print $$3}') +KDEPIMLIBS_SOURCE_VERSION:=$(shell echo $(KDEPIMLIBS_VERSION) | sed 's/+b.*//') +KDEPIMLIBS_UPSTREAM_VERSION:=$(shell echo $(KDEPIMLIBS_VERSION) | sed 's/-.*//') + --- kcoloredit-4.0.98.orig/debian/cdbs/kde.mk +++ kcoloredit-4.0.98/debian/cdbs/kde.mk @@ -0,0 +1,108 @@ +include /usr/share/cdbs/1/class/cmake.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/rules/utils.mk + +DEB_CONFIG_INSTALL_DIR ?= /usr/share/kde4/config + +DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el +DEB_CMAKE_EXTRA_FLAGS += \ + -DCMAKE_BUILD_TYPE=Debian \ + $(KDE4-ENABLE-FINAL) \ + -DKDE4_BUILD_TESTS=false \ + -DKDE_DISTRIBUTION_TEXT="Kubuntu packages" \ + -DCMAKE_SKIP_RPATH=true \ + -DKDE4_USE_ALWAYS_FULL_RPATH=false \ + -DCONFIG_INSTALL_DIR=$(DEB_CONFIG_INSTALL_DIR) \ + -DDATA_INSTALL_DIR=/usr/share/kde4/apps \ + -DHTML_INSTALL_DIR=/usr/share/doc/kde4/HTML \ + -DKCFG_INSTALL_DIR=/usr/share/kde4/config.kcfg \ + -DLIB_INSTALL_DIR=/usr/lib \ + -DSYSCONF_INSTALL_DIR=/etc + +# Set the one below to something else than 'yes' to disable linking +# with --as-needed (on by default) +DEB_KDE_LINK_WITH_AS_NEEDED ?= yes +ifneq (,$(findstring yes, $(DEB_KDE_LINK_WITH_AS_NEEDED))) + ifeq (,$(findstring no-as-needed, $(DEB_BUILD_OPTIONS))) + DEB_KDE_LINK_WITH_AS_NEEDED := yes + DEB_CMAKE_EXTRA_FLAGS += \ + -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \ + -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" + else + DEB_KDE_LINK_WITH_AS_NEEDED := no + endif +else + DEB_KDE_LINK_WITH_AS_NEEDED := no +endif + +#DEB_CMAKE_PREFIX = /usr/lib/kde4 +DEB_DH_INSTALL_SOURCEDIR = debian/tmp +#DEB_DH_SHLIBDEPS_ARGS = -l/usr/lib/kde4/lib/ +DEB_KDE_ENABLE_FINAL ?= +#DEB_MAKE_ENVVARS += XDG_CONFIG_DIRS=/etc/xdg XDG_DATA_DIRS=/usr/share +#DEB_STRIP_EXCLUDE = so + +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + cdbs_treat_me_gently_arches := arm m68k alpha ppc64 armel armeb + ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(cdbs_treat_me_gently_arches))) + KDE4-ENABLE-FINAL = $(if $(DEB_KDE_ENABLE_FINAL),-DKDE4_ENABLE_FINAL=true,) + else + KDE4-ENABLE-FINAL = + endif +endif + +common-build-arch:: debian/stamp-man-pages +debian/stamp-man-pages: + if ! test -d debian/man/out; then mkdir -p debian/man/out; fi + for f in $$(find debian/man -name '*.sgml'); do \ + docbook-to-man $$f > debian/man/out/`basename $$f .sgml`.1; \ + done + for f in $$(find debian/man -name '*.man'); do \ + soelim -I debian/man $$f \ + > debian/man/out/`basename $$f .man`.`head -n1 $$f | awk '{print $$NF}'`; \ + done + touch debian/stamp-man-pages + +clean:: +ifndef THIS_SHOULD_GO_TO_UNSTABLE + #guard against experimental uploads to unstable + dpkg-parsechangelog | grep ^Distribution | grep -q 'experimental\|UNRELEASED' +endif + rm -rf debian/man/out + -rmdir debian/man + rm -f debian/stamp-man-pages + rm -f CMakeCache.txt + + +$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: + if test -x /usr/bin/dh_desktop; then dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS); fi + if test -e debian/$(cdbs_curpkg).lintian; then \ + install -p -D -m644 debian/$(cdbs_curpkg).lintian \ + debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \ + fi + if test -e debian/$(cdbs_curpkg).presubj; then \ + install -p -D -m644 debian/$(cdbs_curpkg).presubj \ + debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \ + fi + +binary-install/$(DEB_SOURCE_PACKAGE)-doc-html:: + set -e; \ + for doc in `cd $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en; find . -name index.docbook`; do \ + pkg=$${doc%/index.docbook}; pkg=$${pkg#./}; \ + echo Building $$pkg HTML docs...; \ + mkdir -p $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \ + cd $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \ + meinproc4 $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en/$$pkg/index.docbook; \ + done + for pkg in $(DOC_HTML_PRUNE) ; do \ + rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \ + done + + +# Process "sameVersionDep:" substvars +DH_SAMEVERSIONDEPS=debian/cdbs/dh_sameversiondeps +common-binary-predeb-arch common-binary-predeb-indep:: + @if [ ! -x "$(DH_SAMEVERSIONDEPS)" ]; then chmod a+x "$(DH_SAMEVERSIONDEPS)"; fi + $(DH_SAMEVERSIONDEPS) --- kcoloredit-4.0.98.orig/debian/cdbs/dh_sameversiondeps +++ kcoloredit-4.0.98/debian/cdbs/dh_sameversiondeps @@ -0,0 +1,140 @@ +#!/usr/bin/perl -w + +use strict; +use Dpkg::Control; +use Dpkg::Substvars; +use Dpkg::ErrorHandling; +use File::Copy; + +use Debian::Debhelper::Dh_Lib; + +my $namespace = "sameVersionDep"; +my @fields = qw(Depends Recommends Suggests Enhances Pre-Depends); +my $re_fields = join("|", @fields); +my $re_pkgname = qr/[a-z0-9][a-z0-9+.-]*/; +my $re_oursubstvar = qr/\$\{($namespace:($re_pkgname):($re_pkgname)-($re_fields)-($re_pkgname))\}/; + +# Global substvars file +my $g_substvars = new Dpkg::Substvars; +$g_substvars->parse("debian/substvars") if (-r "debian/substvars"); + +sub Shlibsvars::new { + my ($cls, $package, $control, $substvars_file) = @_; + my $self = bless ( { + "package" => $package, + "control" => $control, + "file" => $substvars_file, + }, $cls); + $self->{substvars} = new Dpkg::Substvars; + if (-r $self->{file}) { + $self->{substvars}->parse($self->{file}); + } + return $self; +} + +sub Shlibsvars::get_fieldval { + my ($self, $field) = @_; + + my $pkg = $self->{control}->get_pkg_by_name($self->{package}); + return undef if (!defined $pkg || !exists $pkg->{$field}); + + # Turn of warnings for substvars runs + my $save_quiet = $Dpkg::ErrorHandling::quiet_warnings; + $Dpkg::ErrorHandling::quiet_warnings = 1; + + my $val = $pkg->{$field}; + $val = $self->{substvars}->substvars($val); + $val = $g_substvars->substvars($val); + + $Dpkg::ErrorHandling::quiet_warnings = $save_quiet; + return $val; +} + +sub Shlibsvars::extract_deps { + my ($self, $field, $deppkg) = @_; + + my $val = $self->get_fieldval($field); + return undef() unless defined $val; + + # Extract dependency fields we need + my @matched_deps; + for my $dep (split(/\s*,\s*/, $val)) { + if ($dep =~ /^\Q$deppkg\E(?:$|[\W])/) { + push @matched_deps, $dep; + } + } + return join(",", @matched_deps); +} + +sub write_substvar($$$$) { + my ($pkgname, $varname, $value, $substvars) = @_; + my @contents; + my $varset = 0; + + my $file = (-r $substvars) ? $substvars : "debian/substvars"; + if (-r $file) { + open(FILE, "<$file") or die "Unable to open substvars file '$file' for reading\n"; + while () { + if (!$varset && /^\s*\Q$varname=\E/) { + push @contents, "$varname=$value\n"; + $varset = 1; + } else { + push @contents, $_; + } + } + close(FILE); + } else { + # Fallback to default + $file = $substvars; + } + + open(FILE, ">$file.tmp") or die "Unable to open substvars file '$file.tmp' for writing\n"; + for (@contents) { + print FILE $_; + } + if (!$varset) { + print FILE "$varname=$value", "\n"; + } + close(FILE); + + File::Copy::move("$file.tmp", "$file"); +} + +init(); + +my $control = new Dpkg::Control; +my %shlibsvars; + +foreach my $package (@{$dh{DOPACKAGES}}) { + my $pkg_substvars = sprintf("debian/%ssubstvars", pkgext($package)); + my $pkg = $control->get_pkg_by_name($package); + + for my $fieldname (@fields) { + if (exists $pkg->{$fieldname}) { + my $fieldval = $pkg->{$fieldname}; + my $pkgname = $pkg->{Package}; + + while ($fieldval =~ m/\G.*?$re_oursubstvar/g) { + my $varname = $1; + my $dep2add = $2; + my $basepkg = $3; + my $deptype = $4; + my $deppkg = $5; + + if (!exists $shlibsvars{$basepkg}) { + my $base_substvars = sprintf("debian/%ssubstvars", pkgext($basepkg)); + $shlibsvars{$basepkg} = new Shlibsvars($basepkg, $control, $base_substvars); + } + my $vars = $shlibsvars{$basepkg}; + my $deps = $vars->extract_deps($deptype, $deppkg); + $deps = "" unless($deps); + $deps =~ s/\b\Q$deppkg\E\b/$dep2add/g; + + # Write substvar for the package + write_substvar($pkgname, $varname, $deps, $pkg_substvars); + } + } + } +} + +exit 0 --- kcoloredit-4.0.98.orig/debian/cdbs/control.mk +++ kcoloredit-4.0.98/debian/cdbs/control.mk @@ -0,0 +1,19 @@ +include debian/cdbs/versions.mk +debian/control: debian/control.tmp + mv debian/control.tmp debian/control + +debian/control.tmp: update-versions + +update-versions: debian/control.in + sed "s/CDBS_MIN_VER/$(CDBS_MIN_VER)/;\ + s/QUILT_MIN_VER/$(QUILT_MIN_VER)/;\ + s/CMAKE_MIN_VER/$(CMAKE_MIN_VER)/;\ + s/KDELIBS_VERSION/$(KDELIBS_VERSION)/;\ + s/KDELIBS_UPSTREAM_VERSION/$(KDELIBS_UPSTREAM_VERSION)/;\ + s/KDELIBS_SOURCE_VERSION/$(KDELIBS_SOURCE_VERSION)/;\ + s/KDEPIMLIBS_VERSION/$(KDEPIMLIBS_VERSION)/;\ + s/KDEPIMLIBS_SOURCE_VERSION/$(KDEPIMLIBS_SOURCE_VERSION)/;\ + s/KDEPIMLIBS_UPSTREAM_VERSION/$(KDEPIMLIBS_UPSTREAM_VERSION)/;\ + " debian/control.in > debian/control.tmp + +.PHONY: update-versions