debian/0000755000000000000000000000000012175711162007171 5ustar debian/source/0000755000000000000000000000000012175711162010471 5ustar debian/source/format0000755000000000000000000000001412175711162011702 0ustar 3.0 (quilt) debian/apper-data.install0000644000000000000000000000004412175711162012575 0ustar usr/share/kde4/* usr/share/locale/* debian/control0000644000000000000000000000570312175711162010601 0ustar Source: apper Section: kde Priority: optional Maintainer: Matthias Klumpp Build-Depends: chrpath, cmake (>= 2.8.4), debhelper (>= 9.0.0), docbook (>= 4.5), kde-workspace-dev (>= 4:4.8), kdelibs5-dev (>= 4:4.8), libappstream-dev (>= 0.3.1), libdbus-1-dev, libdebconf-kde-dev, liblistaller-glib-dev (>= 0.5.6), libpackagekit-qt2-dev (>= 0.8.8), libxapian-dev (>= 1.2), pkg-kde-tools (>= 0.14) Standards-Version: 3.9.4 Homepage: http://kde-apps.org/content/show.php/Apper?content=84745 Vcs-Git: git://anonscm.debian.org/pkg-packagekit/apper.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-packagekit/apper.git Package: apper Architecture: any Depends: apper-data (>= ${source:Version}), listaller (>= 0.5.4), packagekit (>= 0.8.6), polkit-kde-1 | policykit-1-gnome, software-properties-kde, ${misc:Depends}, ${shlibs:Depends} Replaces: apper-appsetup (<< 0.7.2) Breaks: apper-appsetup (<< 0.7.2) Recommends: appstream-index Suggests: debconf-kde-helper Description: KDE package management tool using PackageKit PackageKit allows performing simple software management tasks over a DBus interface e.g. refreshing the cache, updating, installing and removing software packages or searching for multimedia codecs and file handlers. . This package provides a KDE package manager based on PackageKit, as well as package management support for the KDE desktop. It implements the PackageKit session API for KDE, which allows applications to easily install additional software (e.g. extensions), uninstall files and perform simple software status queries. Package: apper-data Architecture: all Replaces: apper (<< 0.7.2) Breaks: apper (<< 0.7.2) Depends: ${misc:Depends} Description: KDE package management tool using PackageKit (data files) PackageKit allows performing simple software management tasks over a DBus interface e.g. refreshing the cache, updating, installing and removing software packages or searching for multimedia codecs and file handlers. . This package provides data files for Apper, the KDE package manager based on PackageKit. Package: apper-dbg Section: debug Architecture: any Priority: extra Depends: apper (= ${binary:Version}), ${misc:Depends} Recommends: kdelibs5-dbg Description: Debugging symbols for Apper Apper ist a graphical package manager UI based on the PackageKit framework as well as a KDE implementation of the PackageKit session installer interface. . This package contains debugging symbols for Apper. When Apper crashes, in most cases this package is needed to get a backtrace that is useful for developers. If you have experienced an Apper crash without this package installed, please install it, try to reproduce the problem and fill a bug report with a new backtrace attached. debian/compat0000644000000000000000000000000212175711162010367 0ustar 9 debian/gbp.conf0000644000000000000000000000015512175711162010611 0ustar [DEFAULT] pristine-tar = True [git-buildpackage] export-dir = ../build-area/ [git-import-orig] dch = False debian/rules0000755000000000000000000000247312175711162010257 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 APPER_CONFIG_FLAGS = -DDEBCONF_SUPPORT=true \ -DAPPSTREAM=ON \ -DLISTALLER=ON \ -DEDIT_ORIGNS_DESKTOP_NAME=software-properties-kde INSTALLDIR = $(CURDIR)/debian/tmp export KUBUNTU_DESKTOP_POT=playground-sysadmin %: dh $@ --parallel --with kde --dbg-package=apper-dbg override_dh_auto_configure: dh_auto_configure -Skde -- $(APPER_CONFIG_FLAGS) override_dh_auto_install: dh_auto_install --destdir=$(INSTALLDIR) # Fix file conflict between GPK and Apper mv $(INSTALLDIR)/usr/share/dbus-1/services/org.freedesktop.PackageKit.service $(INSTALLDIR)/usr/share/dbus-1/services/kde-org.freedesktop.PackageKit.service # Stupid hack to work around cmake rpath bug chrpath --list $(INSTALLDIR)/usr/bin/apper chrpath --replace /usr/lib/apper $(INSTALLDIR)/usr/bin/apper override_dh_install: dh_install --list-missing fetch_translations: mkdir -p po cd po; svn export svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/subdirs cd po; for asdf in `cat subdirs`; do mkdir -p $${asdf}; done cd po; for asdf in `cat subdirs`; do echo $${asdf}; cd $${asdf}; svn export svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/$${asdf}/messages/playground-sysadmin/apper.po; cd ..; done cd po; rm subdirs; rmdir --ignore-fail-on-non-empty * debian/watch0000644000000000000000000000020312175711162010215 0ustar version=3 opts=pasv \ ftp://ftp.kde.org/pub/kde/stable/apper/([\d\.]+)/src/apper-([\d\.]+)\.tar\.bz2 \ debian git-import-orig debian/patches/0000755000000000000000000000000012175711162010620 5ustar debian/patches/02_lower-appstream-dep.patch0000644000000000000000000000102512175711162016030 0ustar Description: Depend on a lower version of AppStream This works around an issue in libappstream's .pc file Forwarded: not-needed Author: Matthias Klumpp Last-Update: 2013-07-30 --- a/libapper/CMakeLists.txt +++ b/libapper/CMakeLists.txt @@ -33,7 +33,7 @@ if(APPSTREAM) pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.36) - pkg_check_modules(APPSTREAM REQUIRED appstream>=0.3.1) + pkg_check_modules(APPSTREAM REQUIRED appstream>=0.3) set(libapper_SRCS ${libapper_SRCS} AppStream.cpp) endif() debian/patches/series0000644000000000000000000000007012175711162012032 0ustar 01_appstream-loading.patch 02_lower-appstream-dep.patch debian/patches/01_appstream-loading.patch0000644000000000000000000000474112175711162015556 0ustar commit 77dbdd1285624dc76636124b22140897dcd34914 Author: Matthias Klumpp Date: Tue Jul 30 01:25:08 2013 +0200 appstream: Split db loading into exra function and add additional return check diff --git a/libapper/AppStream.cpp b/libapper/AppStream.cpp index 9786ccf..23a810f 100644 --- a/libapper/AppStream.cpp +++ b/libapper/AppStream.cpp @@ -37,8 +37,10 @@ AppStream* AppStream::m_instance = 0; AppStream* AppStream::instance() { - if(!m_instance) + if(!m_instance) { m_instance = new AppStream(qApp); + m_instance->open(); + } return m_instance; } @@ -47,21 +49,36 @@ AppStream::AppStream(QObject *parent) : QObject(parent) { #ifdef HAVE_APPSTREAM - bool ret; - // create new AppStream database and screenshot service m_asDB = appstream_database_new(); m_asScreenshots = appstream_screenshot_service_new(); +#endif //HAVE_APPSTREAM +} + +AppStream::~AppStream() +{ +#ifdef HAVE_APPSTREAM + g_object_unref(m_asDB); + g_object_unref(m_asScreenshots); +#endif +} - ret = appstream_database_open(m_asDB); +bool AppStream::open() +{ +#ifdef HAVE_APPSTREAM + bool ret = appstream_database_open(m_asDB); if (!ret) { qWarning("Unable to open AppStream Xapian database!"); - return; + return false; } // cache application data (we might use the db directly, later (making use of AppstreamSearchQuery)) - GPtrArray *appArray = NULL; + GPtrArray *appArray; appArray = appstream_database_get_all_applications(m_asDB); + if (appArray == NULL) { + qWarning("AppStream application array way NULL! (This should never happen)"); + return false; + } for (uint i = 0; i < appArray->len; i++) { AppstreamAppInfo *appInfo; @@ -98,14 +115,9 @@ AppStream::AppStream(QObject *parent) } g_ptr_array_unref(appArray); -#endif //HAVE_APPSTREAM -} - -AppStream::~AppStream() -{ -#ifdef HAVE_APPSTREAM - g_object_unref(m_asDB); - g_object_unref(m_asScreenshots); + return true; +#else + return false; #endif } diff --git a/libapper/AppStream.h b/libapper/AppStream.h index c288543..a3e139c 100644 --- a/libapper/AppStream.h +++ b/libapper/AppStream.h @@ -46,6 +46,7 @@ class KDE_EXPORT AppStream : public QObject { }; static AppStream* instance(); virtual ~AppStream(); + bool open(); QList applications(const QString &pkgName) const; QString genericIcon(const QString &pkgName) const; debian/apper.install0000644000000000000000000000017112175711162011667 0ustar usr/bin/apper usr/bin/apper-appsetup usr/lib/* usr/share/applications/* usr/share/dbus-1/services/* usr/share/man/man1/* debian/copyright0000644000000000000000000000645012175711162011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: Apper Source: https://projects.kde.org/projects/extragear/sysadmin/apper/ Files: * Copyright: Daniel Nicoletti License: GPL-2+ License: GPL-2+ 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; either version 2 of the License, or (at your option) any later version. . 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 program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: LGPL-2+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library/Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This library 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 Library/Lesser General Public License for more details. . You should have received a copy of the GNU Library/Lesser General Public License along with this library. If not, see . On Debian systems, the complete text of the GNU Library General Public License version 2 can be found in "/usr/share/common-licenses/LGPL-2". Files: libapper/CategorizedView.cpp libapper/CategorizedView.h libapper/CategoryDrawer.cpp libapper/CategoryDrawer.h Copyright: 2009 by Rafael Fernãndez López License: GPL-2+ Files: libapper/PkIcons.cpp libapper/PkIcons.h libapper/PackageModel.cpp Copyright: 2008 by Trever Fischer 2009-2011 by Daniel Nicoletti License: GPL-2+ Files: AppSetup/SimplePage.cpp AppSetup/SimplePage.h AppSetup/LicensePage.cpp AppSetup/LicensePage.h Copyright: 2011-2012 by Daniel Nicoletti 2012 by Matthias Klumpp License: LGPL-2+ Files: AppSetup/* Copyright: 2011-2012 by Daniel Nicoletti 2012 by Matthias Klumpp License: GPL-2+ Files: Sentinel/PkInstallPlasmaResources.cpp Sentinel/PkInstallPlasmaResources.h Copyright: 2011 Kevin Kofler 2009-2011 by Daniel Nicoletti License: GPL-2+ Files: libapper/ChangesDelegate.h libapper/ChangesDelegate.cpp libapper/ApplicationsDelegate.h libapper/ApplicationsDelegate.cpp Copyright: 2007 Ivan Cukic 2008-2011 Daniel Nicoletti License: LGPL-2+ Files: po/* Copyright: (C) 2008-2011 The KDE Translation teams Every language file is made by the respective translation team. You can find a list of the translation teams and their contact email addresses at: http://i18n.kde.org/teams-list.php License: GPL-2+ Files: debian/* Copyright: 2010-2012 Matthias Klumpp License: GPL-2+ debian/changelog0000644000000000000000000000600612175711162011045 0ustar apper (0.8.1-1) unstable; urgency=low * New upstream release: 0.8.1 * Depend on software-properties-kde instead of suggesting it (Closes: #696583) * Add patch to make AppStream loading more failsafe -- Matthias Klumpp Tue, 30 Jul 2013 12:34:46 +0200 apper (0.8.0-2) unstable; urgency=low * Upload to unstable (Closes: #696585, #697996, #708090) * Add patch to compile against new QPK API -- Matthias Klumpp Mon, 24 Jun 2013 14:32:36 +0200 apper (0.8.0-1) experimental; urgency=low * New upstream release: 0.8.0 * Merge apper-appsetup package with main package * Update package description * Change mail to my Debian address * Update dependency on PackageKit -- Matthias Klumpp Sun, 14 Apr 2013 14:46:46 +0100 apper (0.7.2-5) unstable; urgency=low * Make Apper listen to restart-requests of other Apt tools too -- Matthias Klumpp Wed, 07 Nov 2012 16:31:13 +0100 apper (0.7.2-4) unstable; urgency=low * Suggest appsetup-support, it's only a tech-preview for Wheezy * Enable resource conserving (bug fixed in kdelibs) -- Matthias Klumpp Tue, 26 Jun 2012 16:31:21 +0200 apper (0.7.2-3) unstable; urgency=low * Make transition to apper-data really work (Closes: #675538) * Remove lintian override: Lintian is fixed now * Rebuild on i386 because of temporary build-issue -- Matthias Klumpp Thu, 07 Jun 2012 00:30:10 +0200 apper (0.7.2-2) unstable; urgency=low * Make apper-data break old apper package (Closes: #675538) -- Matthias Klumpp Sun, 03 Jun 2012 15:55:27 +0200 apper (0.7.2-1) unstable; urgency=low * New upstream release: 0.7.2 - Automatic Refresh Cache properly fixed - Initial Listaller support (optional) - Supported filter added (depends on the backend) - KDED plugin runs on a separate thread to avoid desktop freezes - Fixed updating packages that were on untrusted repos - Fresh manual pages (thanks to Matthias) - Many other bug- and Krazy fixes * Updated debian/copyright * Switch to compat-level 9 * Updated watch file * Split out arch-indep apper-data package * Add apper-appsetup package for Listaller modules * Remove old replacement for KPackageKit: No longer required * Removed manpages: Pages are upstream now * Override lintian false-positive about icon-sizes * Allow DM upload -- Matthias Klumpp Tue, 22 May 2012 10:45:24 +0200 apper (0.7.1-1) unstable; urgency=low * Break the old kpackagekit package on Ubuntu * Depend on a PolKit agent (Closes: #658934) * New upstream bugfix release: 0.7.1 * Added debian/watch file * Bump standards version to 3.9.3 (no change required) * Allow using aptd instead of PK -- Matthias Klumpp Fri, 24 Feb 2012 14:46:14 +0100 apper (0.7.0-1) unstable; urgency=low * Initial release (Closes: #604391) -- Matthias Klumpp Thu, 06 Oct 2011 17:54:49 +0200