2015-08-09 08:48:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package purpose
|
|
|
|
#
|
2018-02-14 04:36:05 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-02-14 04:36:05 +00:00
|
|
|
%define lname libKF5Purpose5
|
|
|
|
%define _tar_path 5.43
|
|
|
|
# Full KF5 version (e.g. 5.33.0)
|
|
|
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
|
|
|
# Last major and minor KF5 version (e.g. 5.33)
|
|
|
|
%{!?_kf5_bugfix_version: %global _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
|
2018-02-14 04:36:05 +00:00
|
|
|
Version: 5.43.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
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: http://www.kde.org
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
Source1: baselibs.conf
|
2015-08-09 08:48:52 +00:00
|
|
|
BuildRequires: cmake >= 2.8.12
|
|
|
|
BuildRequires: extra-cmake-modules >= 1.7.0
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: kaccounts-integration-devel
|
2018-02-14 04:36:05 +00:00
|
|
|
BuildRequires: kconfig-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kcoreaddons-devel >= %{_kf5_bugfix_version}
|
2015-08-09 08:48:52 +00:00
|
|
|
BuildRequires: kf5-filesystem
|
2018-02-14 04:36:05 +00:00
|
|
|
BuildRequires: ki18n-devel >= %{_kf5_bugfix_version}
|
|
|
|
BuildRequires: kio-devel >= %{_kf5_bugfix_version}
|
2015-08-09 08:48:52 +00:00
|
|
|
BuildRequires: libaccounts-glib-devel
|
|
|
|
BuildRequires: libaccounts-qt5-devel
|
|
|
|
BuildRequires: libsignon-qt5-devel
|
2018-02-14 04:36:05 +00:00
|
|
|
BuildRequires: pkgconfig
|
2015-08-09 08:48:52 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
|
2017-10-27 18:21:44 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
|
2015-08-09 08:48:52 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
|
2017-10-27 18:21:44 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
2016-07-13 08:57:51 +00:00
|
|
|
%if %{with lang}
|
|
|
|
Recommends: %{name}-lang
|
|
|
|
%endif
|
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
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
|
|
|
|
%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
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Requires: %{lname} >= %{version}
|
|
|
|
|
|
|
|
%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
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: extra-cmake-modules
|
2018-02-14 04:36:05 +00:00
|
|
|
Requires: kcoreaddons-devel >= %{_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
|
2017-10-27 18:21:44 +00:00
|
|
|
%setup -q
|
2015-08-09 08:48:52 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
2016-07-13 08:57:51 +00:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang libpurpose_quick %{name}.lang
|
|
|
|
%find_lang libpurpose_widgets %{name}.lang
|
2017-10-27 18:21:44 +00:00
|
|
|
%find_lang purpose_email %{name}.lang
|
2016-07-13 08:57:51 +00:00
|
|
|
%find_lang purpose_imgur %{name}.lang
|
|
|
|
%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
|
|
|
|
%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
|
2015-08-09 08:48:52 +00:00
|
|
|
|
2018-02-14 04:36:05 +00:00
|
|
|
%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}
|
2015-08-09 08:48:52 +00:00
|
|
|
%{_kf5_libdir}/libKF5Purpose.so.*
|
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
|
|
|
|
%doc COPYING*
|
|
|
|
%{_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/
|
2016-07-13 08:57:51 +00:00
|
|
|
%{_kf5_sharedir}/kpackage/
|
2015-08-09 08:48:52 +00:00
|
|
|
%{_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
|