diff --git a/kf5-purpose.spec b/kf5-purpose.spec new file mode 100644 index 0000000..a85f933 --- /dev/null +++ b/kf5-purpose.spec @@ -0,0 +1,118 @@ +%global framework purpose + +Name: kf5-purpose +Summary: Framework for providing abstractions to get the developer's purposes fulfilled +Version: 5.97.0 +Release: 1 +License: GPLv2 or GPLv3 +URL: https://invent.kde.org/frameworks/%{framework} + +%global majmin %(echo %{version} | cut -d. -f1-2) +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: https://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz + +Obsoletes: kf5-purpose-twitter < 5.68.0 + +%global __provides_exclude_from ^(%{_kf5_qtplugindir}/.*\\.so)$ + +BuildRequires: extra-cmake-modules >= %{majmin} +BuildRequires: gettext +BuildRequires: intltool + +BuildRequires: kf5-rpm-macros +BuildRequires: kf5-kconfig-devel >= %{majmin} +BuildRequires: kf5-kcoreaddons-devel >= %{majmin} +BuildRequires: kf5-ki18n-devel >= %{majmin} +BuildRequires: kf5-kio-devel >= %{majmin} +BuildRequires: kf5-kirigami2-devel >= %{majmin} + +BuildRequires: cmake(KF5Kirigami2) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5Notifications) + +BuildRequires: pkgconfig(Qt5Network) +BuildRequires: pkgconfig(Qt5Qml) + +BuildRequires: kaccounts-integration-devel +# runtime dep +BuildRequires: kde-connect +BuildRequires: pkgconfig(accounts-qt5) +BuildRequires: pkgconfig(libaccounts-glib) + +%description +Purpose 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 devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: cmake(KF5CoreAddons) + +%description devel +%{summary}. + + +%prep +%autosetup -n %{framework}-%{version} -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd +%make_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang %{name} --all-name + +# conflicting icons with older kamoso +rm -fv %{buildroot}%{_datadir}/icons/hicolor/*/actions/kipiplugin_youtube.png + + +%ldconfig_scriptlets + +%files -f %{name}.lang +%doc README.md +%license LICENSES/*.txt +%{_kf5_datadir}/qlogging-categories5/%{framework}.* +%{_kf5_libdir}/libKF5Purpose.so.5* +%{_kf5_libdir}/libKF5PurposeWidgets.so.5* +%{_kf5_libdir}/libPhabricatorHelpers.so.5* +%{_kf5_libdir}/libReviewboardHelpers.so.5* +%{_kf5_libexecdir}/purposeprocess +%{_kf5_datadir}/purpose/ +%{_kf5_plugindir}/purpose/ +%dir %{_kf5_plugindir}/kfileitemaction/ +%{_kf5_plugindir}/kfileitemaction/sharefileitemaction.so +%{_kf5_qmldir}/org/kde/purpose/ +# Ok we can't access this but we need to package this +%{_kf5_datadir}/accounts/services/kde/google-youtube.service +# Another one need to be packaged +%{_kf5_datadir}/accounts/services/kde/nextcloud-upload.service +%{_datadir}/icons/hicolor/*/apps/*-purpose.* +#{_datadir}/icons/hicolor/*/actions/google-youtube.* + +%files devel +%{_kf5_libdir}/libKF5Purpose.so +%{_kf5_libdir}/libKF5PurposeWidgets.so +%{_kf5_includedir}/purpose/ +%{_kf5_includedir}/purposewidgets/ +%{_kf5_libdir}/cmake/KDEExperimentalPurpose/ +%{_kf5_libdir}/cmake/KF5Purpose/ + + +%changelog +* Thu Jul 14 2022 misaka00251 - 5.97.0-1 +- Init package diff --git a/kf5-purpose.yaml b/kf5-purpose.yaml new file mode 100644 index 0000000..fdc2e23 --- /dev/null +++ b/kf5-purpose.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/purpose +tag_prefix: "^v" +separator: "." diff --git a/purpose-5.97.0.tar.xz b/purpose-5.97.0.tar.xz new file mode 100644 index 0000000..ab2e49d Binary files /dev/null and b/purpose-5.97.0.tar.xz differ