packages apper.spec
      Pages: < 1 >  DOWNLOAD      
Name:          apper
Epoch:         1
Version:       1.0.0
Release:       2mamba
Summary:       A KDE interface and plasmoid for PackageKit
Group:         Graphical Desktop/Applications/Administration
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://www.kde-apps.org/content/show.php/show.php?content=84745
Source:        https://download.kde.org/stable/apper/%{version}/apper-%{version}.tar.xz
Source1:       01-fedora-org.packagekit.updater.js
Source2:       apper-0.8.0-translations.tar.xz
Patch0:        apper-0.8.1-plasmoid-fix-icons.patch
Patch1:        apper-0.9.1-no-popup-for-background-actions.patch
Patch2:        apper-1.0.0-fix_rpath.patch
License:       GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libappstream-qt-devel
BuildRequires: libgcc
BuildRequires: libkauth-devel
BuildRequires: libkbookmarks-devel
BuildRequires: libkcodecs-devel
BuildRequires: libkcompletion-devel
BuildRequires: libkconfig-devel
BuildRequires: libkconfigwidgets-devel
BuildRequires: libkcoreaddons-devel
BuildRequires: libkdbusaddons-devel
BuildRequires: libki18n-devel
BuildRequires: libkiconthemes-devel
BuildRequires: libkio-devel
BuildRequires: libkitemviews-devel
BuildRequires: libkjobwidgets-devel
BuildRequires: libknotifications-devel
BuildRequires: libkservice-devel
BuildRequires: libkwidgetsaddons-devel
BuildRequires: libkxmlgui-devel
BuildRequires: libpackagekitqt5-devel
BuildRequires: libplasma-workspace-devel
BuildRequires: libqt5-devel
BuildRequires: libsolid-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: automoc4
Requires:      libqt5-sqlite
Provides:      kpackagekit
Obsoletes:     kpackagekit
Provides:      packagekitgui
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Apper (aka KPackageKit) is the KDE interface for PackageKit.

%debug_package

%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
%patch2 -p1

#rm -f plasmoid/package/contents/ui/main.qml.orig

#-a2
#%patch0 -p1

#cat >> CMakeLists.txt << _EOF
#include(MacroOptionalAddSubdirectory)
#macro_optional_add_subdirectory( po )
#_EOF

#-D -T
#:<< _EOF

%build
#:<< _EOF
%cmake_kde5 -d build
%make

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build

%find_lang %{name}5_qt --with-qt --with-man --all-name || touch %{name}5_qt.lang

# update script to integrate packagekit updater plasmoid
#install -D -m0644 %{SOURCE1} %{buildroot}%{_kde4_datadir}/plasma-desktop/updates/01-packagekit.updater.js

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%pre
if [ $1 -ge 0 ]; then
   [ -L %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service ] && \
      rm -f %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service
fi
:

%post
/sbin/ldconfig
touch --no-create %{_kde5_icondir}/hicolor >/dev/null 2>&1
update-desktop-database -q >/dev/null 2>&1
update-mime-database %{_kde5_mimedir} >/dev/null 2>&1
gtk-update-icon-cache %{_kde5_icondir}/hicolor >/dev/null 2>&1
exit 0

%preun
if [ $1 -eq 0 ]; then
/sbin/ldconfig
fi
exit 0

%postun
if [ $1 -eq 0 ]; then
   update-desktop-database -q >/dev/null 2>&1
   update-mime-database %{_kde5_mimedir} >/dev/null 2>&1
   touch --no-create %{_kde5_icondir}/hicolor >/dev/null 2>&1
   gtk-update-icon-cache %{_kde5_icondir}/hicolor >/dev/null 2>&1
fi
:

%files -f %{name}5_qt.lang
%defattr(-,root,root)
%{_kde5_bindir}/apper
%{_libdir}/apper/libapper_private.so
%{_libdir}/qt5/plugins/kded_apperd.so
%{_libexecdir}/apper-pk-session
%{_datadir}/apper/icons/hicolor/22x22/actions/*.png
%{_datadir}/apper/icons/hicolor/48x48/actions/*.png
%{_datadir}/apper/icons/hicolor/48x48/animations/*.png
%{_datadir}/apper/icons/hicolor/48x48/categories/*.png
%{_datadir}/apperd/apperd.notifyrc
%{_datadir}/applications/org.kde.apper*.desktop
%{_datadir}/metainfo/org.kde.apper.appdata.xml
%{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service
%{_datadir}/kservices5/kded/apperd.desktop
%{_mandir}/man1/apper.1*
%doc COPYING
# TODO

%changelog
* Sat Apr 07 2018 Silvan Calarco <silvan.calarco@...> 1.0.0-2mamba
- patched to fix rpath for private library in apper binary

* Thu Mar 15 2018 Silvan Calarco <silvan.calarco@...> 1.0.0-1mamba
- update to 1.0.0

* Thu Aug 20 2015 Silvan Calarco <silvan.calarco@...> 0.9.2-3mamba
- try to fix icons by restoring default installation paths inernal to application dir

* Sun Aug 16 2015 Silvan Calarco <silvan.calarco@...> 0.9.2-2mamba
- remove not working icons patch

* Fri Aug 14 2015 Silvan Calarco <silvan.calarco@...> 0.9.2-1mamba
- update to 0.9.2

* Thu Oct 16 2014 Silvan Calarco <silvan.calarco@...> 0.8.2-1mamba
- update to 0.8.2

* Sun Sep 15 2013 Silvan Calarco <silvan.calarco@...> 0.8.1-3mamba
- install icons in kde system hicolor theme dir

* Sat Aug 24 2013 Silvan Calarco <silvan.calarco@...> 0.8.1-2mamba
- update to stable release

* Mon Jul 01 2013 Silvan Calarco <silvan.calarco@...> 0.8.1-1mamba
- update to 0.8.1

* Fri Mar 22 2013 Silvan Calarco <silvan.calarco@...> 0.8.0-2mamba
- added update js script to install plasmoid in tray icon bar
- added upstream patches from git

* Wed Mar 06 2013 Silvan Calarco <silvan.calarco@...> 0.8.0-1mamba
- update to 0.8.0

* Thu Feb 21 2013 Silvan Calarco <silvan.calarco@...> 0.7.2-5mamba
- added a patch to fix a fatal assert on kcmdlineargs (only seen on x86_64)

* Tue Feb 19 2013 Silvan Calarco <silvan.calarco@...> 0.7.2-4mamba
- require libqt4-sqlite (for apper-sentinel)

* Fri Jul 27 2012 Silvan Calarco <silvan.calarco@...> 0.7.2-3mamba
- fix actions icon installation path
- added kpackagekit compatibility symlink

* Thu Jul 26 2012 Silvan Calarco <silvan.calarco@...> 0.7.2-2mamba
- italian translations added

* Thu Jul 26 2012 Silvan Calarco <silvan.calarco@...> 0.7.2-1mamba
- update to 0.7.2

* Sun Sep 25 2011 Silvan Calarco <silvan.calarco@...> 0.6.3.3-2mamba
- provide packagekitgui

* Sat Mar 05 2011 Silvan Calarco <silvan.calarco@...> 0.6.3.3-1mamba
- update to 0.6.3.3
- configure as alternative for dbus PackageKit service

* Tue Sep 28 2010 Silvan Calarco <silvan.calarco@...> 0.6.1-1mamba
- update to 0.6.1

* Sat Apr 03 2010 Silvan Calarco <silvan.calarco@...> 0.6.0-1mamba
- update to 0.6.0

* Mon Mar 15 2010 Silvan Calarco <silvan.calarco@...> 0.6.0.svn20100301-1mamba
- update to 0.6.0.svn20100315

* Mon Mar 15 2010 Silvan Calarco <silvan.calarco@...> 0.5.4.7z-1mamba
- package created by autospec