2021-04-19 13:30:57 +00:00
committed by Git OBS Bridge
parent 2cc08f19cc
commit 4621c8f98b
6 changed files with 39 additions and 31 deletions

View File

@@ -21,14 +21,18 @@
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
%bcond_without lang
Name: kgpg
Version: 21.03.90
Version: 21.04.0
Release: 0
Summary: Encryption Tool
License: GPL-2.0-or-later
Group: Productivity/Security
URL: https://www.kde.org
Source: https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch1: kgpg-autostart.diff
URL: https://apps.kde.org/kgpg
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
%if %{with lang}
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
Patch0: kgpg-autostart.diff
BuildRequires: extra-cmake-modules
BuildRequires: kf5-filesystem
BuildRequires: libgpgme-devel
@@ -53,10 +57,6 @@ BuildRequires: cmake(Qt5Widgets)
Requires: gpg2
# It can only build on the same platforms as Qt Webengine
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 mips mips64
%if %{with lang}
Source1: https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
BuildRequires: libboost_headers-devel
Recommends: %{name}-lang
@@ -66,8 +66,7 @@ Kgpg is a simple GUI for gpg
%lang_package
%prep
%setup -q -n kgpg-%{version}
%patch1
%autosetup -p0
%build
%cmake_kf5 -d build
@@ -85,18 +84,17 @@ Kgpg is a simple GUI for gpg
%license COPYING
%doc AUTHORS
%config %{_kf5_configdir}/autostart/org.kde.kgpg.desktop
%dir %{_kf5_appstreamdir}
%doc %lang(en) %{_kf5_htmldir}/en/kgpg/
%{_kf5_applicationsdir}/org.kde.kgpg.desktop
%{_kf5_appstreamdir}/org.kde.kgpg.appdata.xml
%{_kf5_bindir}/kgpg
%{_kf5_configkcfgdir}/kgpg.kcfg
%{_kf5_dbusinterfacesdir}/org.kde.kgpg.Key.xml
%{_kf5_debugdir}/kgpg.categories
%{_kf5_iconsdir}/hicolor/*/*/*
%{_kf5_kxmlguidir}/kgpg/
%{_kf5_servicesdir}/ServiceMenus/
%{_kf5_sharedir}/kgpg/
%{_kf5_debugdir}/kgpg.categories
%if %{with lang}
%files lang -f %{name}.lang