SHA256
1
0
forked from pool/purpose
purpose/purpose.spec
Fabian Vogt a8fbbb875e Accepting request 537194 from home:wolfi323:test
- Update to 1.2.1
  * Add back the translations that were missing completely in 1.2
- Update to 1.2
  * New plugins: nextcloud, email, phabricator
  * Possibility to disable plugins via config file

OBS-URL: https://build.opensuse.org/request/show/537194
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/purpose?expand=0&rev=10
2017-10-27 18:21:44 +00:00

127 lines
3.7 KiB
RPMSpec

#
# spec file for package purpose
#
# Copyright (c) 2017 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/
#
%bcond_without lang
Name: purpose
Version: 1.2.1
Release: 0
%define kf5_version 5.7.0
BuildRequires: cmake >= 2.8.12
BuildRequires: extra-cmake-modules >= 1.7.0
BuildRequires: intltool
BuildRequires: kaccounts-integration-devel
BuildRequires: kconfig-devel >= %{kf5_version}
BuildRequires: kcoreaddons-devel >= %{kf5_version}
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel >= %{kf5_version}
BuildRequires: kio-devel >= %{kf5_version}
BuildRequires: libaccounts-glib-devel
BuildRequires: libaccounts-qt5-devel
BuildRequires: libsignon-qt5-devel
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
%if %{with lang}
Recommends: %{name}-lang
%endif
Summary: Provides abstractions to get the developer's purposes fulfilled
License: LGPL-2.1+
Group: System/GUI/KDE
Url: http://www.kde.org
Source: http://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Framework for providing abstractions to get the developer's purposes fulfilled.
%package devel
Summary: Provides abstractions to get the developer's purposes fulfilled: Build Environment
Group: Development/Libraries/KDE
Requires: %{name} = %{version}
Requires: extra-cmake-modules
Requires: kcoreaddons-devel >= %{kf5_version}
%description devel
Framework for providing abstractions to get the developer's purposes fulfilled.
Development files.
%lang_package
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%if %{with lang}
%find_lang libpurpose_quick %{name}.lang
%find_lang libpurpose_widgets %{name}.lang
%find_lang purpose_email %{name}.lang
%find_lang purpose_imgur %{name}.lang
%find_lang purpose_ktp-sendfile %{name}.lang
%find_lang purpose_nextcloud %{name}.lang
%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
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%if %{with lang}
%files lang -f %{name}.lang
%defattr(-,root,root)
%endif
%files
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libKF5Purpose.so.*
%{_kf5_libdir}/libKF5PurposeWidgets.so.*
%{_kf5_libdir}/libPhabricatorHelpers.so
%{_kf5_libdir}/libReviewboardHelpers.so
%{_kf5_libexecdir}/
%{_kf5_sharedir}/purpose/
%{_kf5_sharedir}/kpackage/
%{_kf5_plugindir}/
%{_kf5_qmldir}/
%{_kf5_iconsdir}/hicolor/*/actions/kipiplugin_youtube.*
%{_kf5_iconsdir}/hicolor/*/apps/phabricator-purpose.*
%{_kf5_iconsdir}/hicolor/*/apps/reviewboard-purpose.*
%{_kf5_sharedir}/accounts/
%files devel
%defattr(-,root,root)
%{_kf5_libdir}/libKF5Purpose.so
%{_kf5_libdir}/libKF5PurposeWidgets.so
%{_kf5_libdir}/cmake/KDEExperimentalPurpose/
%{_kf5_includedir}/
%changelog