--- kgraphviewer-2.0.2-kde4.1.0.orig/debian/copyright +++ kgraphviewer-2.0.2-kde4.1.0/debian/copyright @@ -0,0 +1,29 @@ +Package was debianized by Debian Qt/KDE Team at Extremadura meeting december 2007 + +Upstream Author: + Gael de Chalendar + +Copyright holders: + Copyright (C) 2005-2007 Gael de Chalendar + Copyright (C) 2005 Jaroslaw Staniek + +Files in this package is under GPLv2: + + KGraphViewer 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. + + This program 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 program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA + +On Debian Systems, the full text of the GPL2 license can be found in +/usr/share/common-licenses/GPL-2 + +Debian packaging is under any license and made by Debian Qt/KDE Team. --- kgraphviewer-2.0.2-kde4.1.0.orig/debian/rules +++ kgraphviewer-2.0.2-kde4.1.0/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export LDFLAGS+="-Wl,--as-needed" +THIS_SHOULD_GO_TO_UNSTABLE = 1 +include debian/cdbs/kde.mk + --- kgraphviewer-2.0.2-kde4.1.0.orig/debian/control +++ kgraphviewer-2.0.2-kde4.1.0/debian/control @@ -0,0 +1,33 @@ +Source: kgraphviewer +Section: utils +Priority: optional +Maintainer: Kubuntu Developers +XSBC-Original-Maintainer: Debian Qt/KDE Maintainers +Uploaders: Ana Beatriz Guerrero Lopez , Sune Vuorela , Fathi Boudra , Armin Berres +Build-Depends: cdbs, debhelper (>= 5), cmake, quilt, kdelibs5-dev (>= 4:4.1.0), + libboost-dev, kdepimlibs5-dev (>= 4:4.1.0), libphonon-dev +Standards-Version: 3.8.0 +Homepage: http://extragear.kde.org/apps/kgraphviewer/ + +Package: kgraphviewer +Architecture: any +Section: utils +Depends: ${shlibs:Depends} +Description: a GraphViz dot graph viewer for KDE 4 + KGraphViewer is a GraphViz dot graph viewer for KDE 4. The graphviz program + suite is a free software set of layout engines for graphs. They are commonly + used in scientific domains and particularly in computer science. But until + now there was a lack of a GUI to look at the graphs. Programs provided with + GraphViz are: I feel, out of date X11, or Tcl/Tk applications with few + Functionalities. KGraphViewer is aimed at replacing these tools with a modern + user-friendly GUI will all the power of a well integrated KDE application. + +Package: kgraphviewer-kde4 +Architecture: all +Priority: extra +Depends: kgraphviewer +Description: Transitional package + This dummy package is provided for a smooth transition from kgraphviewer-kde4 + to the new version, named kgraphviewer. + . + It may safely be removed after installation. --- kgraphviewer-2.0.2-kde4.1.0.orig/debian/compat +++ kgraphviewer-2.0.2-kde4.1.0/debian/compat @@ -0,0 +1 @@ +5 --- kgraphviewer-2.0.2-kde4.1.0.orig/debian/changelog +++ kgraphviewer-2.0.2-kde4.1.0/debian/changelog @@ -0,0 +1,79 @@ +kgraphviewer (4:2.0.2-kde4.1.0-0ubuntu1) intrepid; urgency=low + + * New upstream release, 4.1 final + + -- Steve Stalcup Sat, 26 Jul 2008 21:30:45 -0400 + +kgraphviewer (4:2.0.2-kde4.0.98-0ubuntu3) intrepid; urgency=low + + * Added epoch version 4 to maintain upstream versions + + -- Steve Stalcup Tue, 15 Jul 2008 22:25:41 -0400 + +kgraphviewer (2.0.2-kde4.0.98-0ubuntu2) intrepid; urgency=low + + * Add transitional package kgraphviewer-kde4 -> kgraphviewer + + -- Steve Stalcup Mon, 14 Jul 2008 22:01:01 -0400 + +kgraphviewer (2.0.2-kde4.0.98-0ubuntu1) intrepid; urgency=low + + * New upstream release (LP: #248548) + * debian/control: added Replaces: kgraphviewer-kde4 + * bumped standards version to 3.8.0 + + -- Steve Stalcup Mon, 14 Jul 2008 18:44:36 -0400 + +kgraphviewer (2.0.2-kde4.0.83-0ubuntu1) intrepid; urgency=low + + * New upstream version + + -- Richard Birnie Fri, 27 Jun 2008 07:19:31 +0000 + +kgraphviewer (2.0.2kde4.0.80-0ubuntu1) intrepid; urgency=low + + * New minor upstream release + * Dropped -kde4 from package name + * Dropped creation of binary wrapper from debian/rules + + -- Richard Birnie Tue, 10 Jun 2008 20:25:32 +0100 + +kgraphviewer-kde4 (4:2.0-0ubuntu2) hardy; urgency=low + + * New minor upstream release + + -- Richard A. Johnson Mon, 03 Mar 2008 17:29:20 -0600 + +kgraphviewer-kde4 (4:2.0-0ubuntu1) hardy; urgency=low + + * New upstream release + * Updated kde.mk + * Bumped kdelibs5-dev and kdepimlibs5-dev deps to 4:4.0.1 + + -- Richard A. Johnson Mon, 04 Feb 2008 17:37:22 -0600 + +kgraphviewer-kde4 (4.0.0-0ubuntu1) hardy; urgency=low + + * Initial release for Ubuntu, merge from Debian, Ubuntu changes are: + - cdbs/kde.mk: updated installation locations and removed rpath + - debian/control: updated Maintainer according to Ubuntu specs + - debian/control: renamed package to kgraphviewer-kde4 + - debian/control: added homepage + - debian/control: added kdepimlibs5-dev and libphonon-dev to build-deps + - debian/rules: added KDE 4 magic foo + * New upstream release + + -- Richard A. Johnson Wed, 09 Jan 2008 22:40:24 -0600 + +kgraphviewer (3.97.0-1) experimental; urgency=low + + * New upstream release. + * Build depend on kdebase-workspace-dev >= 4:3.97.0. + * Update installed files. + * Add new package extragear-plasma-l10n for localization files. + * Remove dependency on sharutils. Not needed anymore. + * Add export LDFLAGS+="-Wl,--as-needed" in rules to make dpkg-shlibdeps + happier. + * Update Standards-Version to 3.7.3. + + -- Armin Berres Sat, 08 Dec 2007 00:05:24 +0000 --- kgraphviewer-2.0.2-kde4.1.0.orig/debian/cdbs/versions.mk +++ kgraphviewer-2.0.2-kde4.1.0/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/-.*//') + --- kgraphviewer-2.0.2-kde4.1.0.orig/debian/cdbs/dh_sameversiondeps +++ kgraphviewer-2.0.2-kde4.1.0/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 --- kgraphviewer-2.0.2-kde4.1.0.orig/debian/cdbs/kde.mk +++ kgraphviewer-2.0.2-kde4.1.0/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) --- kgraphviewer-2.0.2-kde4.1.0.orig/debian/cdbs/control.mk +++ kgraphviewer-2.0.2-kde4.1.0/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