Accepting request 443343 from home:luca_b:test_KA
KDE Applications - please review OBS-URL: https://build.opensuse.org/request/show/443343 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kgpg?expand=0&rev=38
This commit is contained in:
committed by
Git OBS Bridge
parent
d4f7003847
commit
b39e431fcf
75
kgpg.spec
75
kgpg.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package kgpg
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,23 +17,42 @@
|
||||
|
||||
|
||||
Name: kgpg
|
||||
Version: 16.08.3
|
||||
Version: 16.11.80
|
||||
Release: 0
|
||||
%define kf5_version 5.26.0
|
||||
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
|
||||
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
||||
Summary: Encryption Tool
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Security
|
||||
Url: http://www.kde.org
|
||||
Source0: kgpg-%{version}.tar.xz
|
||||
Patch1: kgpg-autostart.diff
|
||||
Patch2: fix-build-gcc48.patch
|
||||
BuildRequires: akonadi-contact-devel
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: karchive-devel
|
||||
BuildRequires: kcalcore-devel
|
||||
BuildRequires: kcodecs-devel
|
||||
BuildRequires: kdelibs4support-devel
|
||||
BuildRequires: kdoctools-devel
|
||||
BuildRequires: kf5-filesystem
|
||||
BuildRequires: ki18n-devel
|
||||
BuildRequires: kiconthemes-devel
|
||||
BuildRequires: kio-devel
|
||||
BuildRequires: kservice-devel
|
||||
BuildRequires: ktexteditor-devel
|
||||
BuildRequires: kwidgetsaddons-devel
|
||||
BuildRequires: libgpgme-devel
|
||||
BuildRequires: libkdepimlibs4-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: xz
|
||||
BuildRequires: pkgconfig(Qt5Core)
|
||||
BuildRequires: pkgconfig(Qt5Gui)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
Requires: gpg2
|
||||
Recommends: kdepim4-runtime
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{kde4_runtime_requires}
|
||||
%{kde4_pimlibs_requires}
|
||||
|
||||
%description
|
||||
Kgpg is a simple GUI for gpg
|
||||
@@ -41,45 +60,33 @@ Kgpg is a simple GUI for gpg
|
||||
%prep
|
||||
%setup -q -n kgpg-%{version}
|
||||
%patch1
|
||||
#patch2 -p1
|
||||
|
||||
%build
|
||||
%cmake_kde4 -d build
|
||||
%cmake_kf5 -d build
|
||||
%make_jobs
|
||||
|
||||
%install
|
||||
%kde4_makeinstall -C build
|
||||
%suse_update_desktop_file kgpg Utility Security
|
||||
# for 13.15+ symlink the servicemenus for plasma5/kf5 too
|
||||
%if 0%{?suse_version} > 1310
|
||||
mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus
|
||||
pushd %{buildroot}%{_kde4_servicesdir}/ServiceMenus/ > /dev/null
|
||||
for i in *.desktop; do
|
||||
ln -s %{_kde4_servicesdir}/ServiceMenus/$i %{buildroot}/%{_kf5_servicesdir}/ServiceMenus/
|
||||
done
|
||||
popd > /dev/null
|
||||
%endif
|
||||
%kde_post_install
|
||||
%kf5_makeinstall -C build
|
||||
#suse_update_desktop_file org.kde.kgpg.deskt Utility Security
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING
|
||||
%doc %lang(en) %{_kde4_htmldir}/en/kgpg/
|
||||
%{_datadir}/appdata/
|
||||
%{_kde4_applicationsdir}/*.desktop
|
||||
%{_kde4_appsdir}/kgpg/
|
||||
%{_kde4_bindir}/kgpg
|
||||
%{_kde4_configkcfgdir}/*.kcfg
|
||||
%{_kde4_datadir}/autostart/*.desktop
|
||||
%{_kde4_datadir}/dbus-1/interfaces/*.xml
|
||||
%{_kde4_iconsdir}/hicolor/*/*/*.png
|
||||
%{_kde4_servicesdir}/ServiceMenus/*.desktop
|
||||
%if 0%{?suse_version} > 1310
|
||||
%dir %{_kf5_servicesdir}/ServiceMenus/
|
||||
%{_kf5_servicesdir}/ServiceMenus/*.desktop
|
||||
%endif
|
||||
%{_bindir}/kgpg
|
||||
%dir %{_kf5_appstreamdir}
|
||||
%{_kf5_appstreamdir}/org.kde.kgpg.appdata.xml
|
||||
%{_kf5_applicationsdir}/org.kde.kgpg.desktop
|
||||
%{_kf5_configkcfgdir}/kgpg.kcfg
|
||||
%{_datadir}/dbus-1/interfaces/org.kde.kgpg.Key.xml
|
||||
%{_kf5_htmldir}/en/kgpg/
|
||||
%{_kf5_iconsdir}/hicolor/*/*/*
|
||||
%{_datadir}/kgpg/
|
||||
%{_kf5_servicesdir}/ServiceMenus/
|
||||
%{_kf5_configdir}/autostart/org.kde.kgpg.desktop
|
||||
%{_kf5_kxmlguidir}/kgpg/
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user