2015-08-09 08:48:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package purpose
|
|
|
|
#
|
2021-01-09 12:19:04 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2015-08-09 08:48:52 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-16 12:27:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-08-09 08:48:52 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-31 16:29:02 +00:00
|
|
|
# Used by optional plugins
|
|
|
|
%global __requires_exclude qmlimport\\((Ubuntu\\.OnlineAccounts|org\\.kde\\.kdeconnect).*
|
|
|
|
|
2018-02-14 04:36:05 +00:00
|
|
|
%define lname libKF5Purpose5
|
2021-10-09 17:44:40 +00:00
|
|
|
%define _tar_path 5.87
|
2018-02-14 04:36:05 +00:00
|
|
|
# Full KF5 version (e.g. 5.33.0)
|
|
|
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
|
|
|
# Last major and minor KF5 version (e.g. 5.33)
|
2018-07-17 08:58:22 +00:00
|
|
|
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2016-07-13 08:57:51 +00:00
|
|
|
%bcond_without lang
|
2015-08-09 08:48:52 +00:00
|
|
|
Name: purpose
|
2021-10-09 17:44:40 +00:00
|
|
|
Version: 5.87.0
|
2015-08-09 08:48:52 +00:00
|
|
|
Release: 0
|
2018-02-14 04:36:05 +00:00
|
|
|
Summary: Framework to integrate services and actions in applications
|
2018-03-14 13:01:07 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2018-02-14 04:36:05 +00:00
|
|
|
Group: System/GUI/KDE
|
2018-10-16 12:27:32 +00:00
|
|
|
URL: https://www.kde.org
|
2019-08-11 21:07:42 +00:00
|
|
|
Source: https://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
2019-08-12 00:10:17 +00:00
|
|
|
%if %{with lang}
|
2019-08-11 21:07:42 +00:00
|
|
|
Source1: https://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
2020-07-11 10:31:04 +00:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version}
|
2015-08-09 08:48:52 +00:00
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: kf5-filesystem
|
|
|
|
BuildRequires: libaccounts-glib-devel
|
|
|
|
BuildRequires: libsignon-qt5-devel
|
2018-02-14 04:36:05 +00:00
|
|
|
BuildRequires: pkgconfig
|
2019-09-13 07:45:42 +00:00
|
|
|
BuildRequires: cmake(AccountsQt5)
|
|
|
|
BuildRequires: cmake(KAccounts)
|
|
|
|
BuildRequires: cmake(KF5Config) >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: cmake(KF5CoreAddons) >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: cmake(KF5I18n) >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: cmake(KF5KIO) >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: cmake(KF5Kirigami2) >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: cmake(KF5Notifications) >= %{_kf5_bugfix_version}
|
2021-05-09 07:42:08 +00:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.15.0
|
|
|
|
BuildRequires: cmake(Qt5Gui) >= 5.15.0
|
|
|
|
BuildRequires: cmake(Qt5Network) >= 5.15.0
|
|
|
|
BuildRequires: cmake(Qt5Qml) >= 5.15.0
|
|
|
|
BuildRequires: cmake(Qt5Test) >= 5.15.0
|
|
|
|
BuildRequires: cmake(Qt5Widgets) >= 5.15.0
|
2018-05-15 12:58:59 +00:00
|
|
|
Requires: kdeclarative-components >= %{_kf5_bugfix_version}
|
2018-07-17 08:58:22 +00:00
|
|
|
Requires: libKF5QuickAddons5 >= %{_kf5_bugfix_version}
|
2018-05-15 12:58:59 +00:00
|
|
|
Requires: libqt5-qtquickcontrols2
|
2016-07-13 08:57:51 +00:00
|
|
|
Recommends: %{name}-lang
|
2018-08-20 12:59:01 +00:00
|
|
|
Suggests: kdeconnect-kde
|
2015-08-09 08:48:52 +00:00
|
|
|
|
|
|
|
%description
|
2018-02-14 04:36:05 +00:00
|
|
|
This framework offers the possibility to create integrate services and actions
|
|
|
|
on any application without having to implement them specifically. Purpose will
|
|
|
|
offer them mechanisms to list the different alternatives to execute given the
|
|
|
|
requested action type and will facilitate components so that all the plugins
|
|
|
|
can receive all the information they need.
|
|
|
|
|
|
|
|
%package -n %{lname}
|
|
|
|
Summary: Framework to integrate services and actions - core library
|
2018-02-14 08:23:08 +00:00
|
|
|
Group: System/Libraries
|
2018-03-14 13:01:07 +00:00
|
|
|
Recommends: %{name}
|
2018-02-14 04:36:05 +00:00
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
This framework offers the possibility to create integrate services and actions
|
|
|
|
on any application without having to implement them specifically. Purpose will
|
|
|
|
offer them mechanisms to list the different alternatives to execute given the
|
|
|
|
requested action type and will facilitate components so that all the plugins
|
|
|
|
can receive all the information they need.
|
|
|
|
|
|
|
|
This package contains the core library files of the package.
|
|
|
|
|
|
|
|
%package -n libKF5PurposeWidgets5
|
|
|
|
Summary: Framework to integrate services and actions - GUI library
|
2018-02-14 08:23:08 +00:00
|
|
|
Group: System/Libraries
|
2018-03-14 13:01:07 +00:00
|
|
|
Recommends: %{name}
|
2018-02-14 04:36:05 +00:00
|
|
|
|
|
|
|
%description -n libKF5PurposeWidgets5
|
|
|
|
This framework offers the possibility to create integrate services and actions
|
|
|
|
on any application without having to implement them specifically. Purpose will
|
|
|
|
offer them mechanisms to list the different alternatives to execute given the
|
|
|
|
requested action type and will facilitate components so that all the plugins
|
|
|
|
can receive all the information they need.
|
|
|
|
|
|
|
|
This package contains the library files of the package needed to use GUI widgets.
|
2015-08-09 08:48:52 +00:00
|
|
|
|
|
|
|
%package devel
|
2018-02-14 04:36:05 +00:00
|
|
|
Summary: Framework to integrate services and actions - Build Environment
|
2015-08-09 08:48:52 +00:00
|
|
|
Group: Development/Libraries/KDE
|
2018-03-14 13:01:07 +00:00
|
|
|
Requires: %{lname} = %{version}
|
2015-08-09 08:48:52 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: extra-cmake-modules
|
2018-03-14 13:01:07 +00:00
|
|
|
Requires: libKF5PurposeWidgets5 = %{version}
|
2019-09-13 07:45:42 +00:00
|
|
|
Requires: cmake(KF5CoreAddons) >= %{_kf5_bugfix_version}
|
2015-08-09 08:48:52 +00:00
|
|
|
|
|
|
|
%description devel
|
2018-02-14 04:36:05 +00:00
|
|
|
This package contains development files needed to build applications which rely on the purpose framework.
|
2015-08-09 08:48:52 +00:00
|
|
|
|
|
|
|
%lang_package
|
2018-02-14 04:36:05 +00:00
|
|
|
|
2015-08-09 08:48:52 +00:00
|
|
|
%prep
|
2021-05-09 07:42:08 +00:00
|
|
|
%autosetup -p1
|
2015-08-09 08:48:52 +00:00
|
|
|
|
|
|
|
%build
|
2021-05-09 07:42:08 +00:00
|
|
|
%cmake_kf5 -d build
|
|
|
|
%cmake_build
|
2015-08-09 08:48:52 +00:00
|
|
|
|
|
|
|
%install
|
2021-05-09 07:42:08 +00:00
|
|
|
%kf5_makeinstall -C build
|
2015-08-09 08:48:52 +00:00
|
|
|
|
2016-07-13 08:57:51 +00:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang libpurpose_quick %{name}.lang
|
|
|
|
%find_lang libpurpose_widgets %{name}.lang
|
2018-07-17 08:58:22 +00:00
|
|
|
%find_lang purpose-fileitemaction %{name}.lang
|
2021-10-09 17:44:40 +00:00
|
|
|
%find_lang purpose_barcode %{name}.lang
|
2019-08-11 21:07:42 +00:00
|
|
|
%find_lang purpose_bluetooth %{name}.lang
|
|
|
|
%find_lang purpose_email %{name}.lang
|
|
|
|
%find_lang purpose_imgur %{name}.lang
|
2018-06-13 22:11:51 +00:00
|
|
|
%find_lang purpose_kdeconnect %{name}.lang
|
2019-04-16 16:54:51 +00:00
|
|
|
%find_lang purpose_kdeconnectsms %{name}.lang
|
2016-07-13 08:57:51 +00:00
|
|
|
%find_lang purpose_ktp-sendfile %{name}.lang
|
2017-10-27 18:21:44 +00:00
|
|
|
%find_lang purpose_nextcloud %{name}.lang
|
2016-07-13 08:57:51 +00:00
|
|
|
%find_lang purpose_pastebin %{name}.lang
|
2018-06-13 22:11:51 +00:00
|
|
|
%find_lang purpose_phabricator %{name}.lang
|
2016-07-13 08:57:51 +00:00
|
|
|
%find_lang purpose_reviewboard %{name}.lang
|
|
|
|
%find_lang purpose_saveas %{name}.lang
|
|
|
|
%find_lang purpose_youtube %{name}.lang
|
|
|
|
%endif
|
2015-08-17 18:45:54 +00:00
|
|
|
|
2018-02-14 04:36:05 +00:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
%post -n libKF5PurposeWidgets5 -p /sbin/ldconfig
|
|
|
|
%postun -n libKF5PurposeWidgets5 -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2015-08-09 08:48:52 +00:00
|
|
|
|
2016-07-13 08:57:51 +00:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%endif
|
|
|
|
|
2018-02-14 04:36:05 +00:00
|
|
|
%files -n %{lname}
|
2020-09-12 12:54:36 +00:00
|
|
|
%license LICENSES/*
|
2015-08-09 08:48:52 +00:00
|
|
|
%{_kf5_libdir}/libKF5Purpose.so.*
|
2018-03-14 13:01:07 +00:00
|
|
|
%{_kf5_debugdir}/*.categories
|
2020-08-09 07:39:59 +00:00
|
|
|
%{_kf5_debugdir}/*.renamecategories
|
2018-02-14 04:36:05 +00:00
|
|
|
|
|
|
|
%files -n libKF5PurposeWidgets5
|
2015-08-09 08:48:52 +00:00
|
|
|
%{_kf5_libdir}/libKF5PurposeWidgets.so.*
|
2018-02-14 04:36:05 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_kf5_libdir}/libPhabricatorHelpers.so.*
|
|
|
|
%{_kf5_libdir}/libReviewboardHelpers.so.*
|
2016-07-13 08:57:51 +00:00
|
|
|
%{_kf5_libexecdir}/
|
2015-08-09 08:48:52 +00:00
|
|
|
%{_kf5_sharedir}/purpose/
|
|
|
|
%{_kf5_plugindir}/
|
|
|
|
%{_kf5_qmldir}/
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/actions/kipiplugin_youtube.*
|
2017-10-27 18:21:44 +00:00
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/phabricator-purpose.*
|
2016-07-13 08:57:51 +00:00
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/reviewboard-purpose.*
|
2015-08-09 08:48:52 +00:00
|
|
|
%{_kf5_sharedir}/accounts/
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_kf5_libdir}/libKF5Purpose.so
|
|
|
|
%{_kf5_libdir}/libKF5PurposeWidgets.so
|
|
|
|
%{_kf5_libdir}/cmake/KDEExperimentalPurpose/
|
|
|
|
%{_kf5_includedir}/
|
2018-02-14 04:36:05 +00:00
|
|
|
%dir %{_kf5_cmakedir}/KF5Purpose
|
|
|
|
%{_kf5_cmakedir}/KF5Purpose/*.cmake
|
2015-08-09 08:48:52 +00:00
|
|
|
|
|
|
|
%changelog
|