SHA256
1
0
forked from pool/kgpg
kgpg/kgpg.spec

96 lines
2.8 KiB
RPMSpec

#
# spec file for package kgpg
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kgpg
Version: 17.03.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}')}
# It can only build on the same platforms as Qt Webengine
ExclusiveArch: %ix86 x86_64 %arm aarch64 mips mips64
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
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
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: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
Requires: gpg2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Kgpg is a simple GUI for gpg
%prep
%setup -q -n kgpg-%{version}
%patch1
#patch2 -p1
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
#suse_update_desktop_file org.kde.kgpg.deskt Utility Security
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_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