]> git.pld-linux.org Git - packages/kf5-purpose.git/blobdiff - kf5-purpose.spec
- updated to 5.110.0
[packages/kf5-purpose.git] / kf5-purpose.spec
index 8010a41cdebc9837045b7fd57685e4fa0f329acf..2488056e01f89993a271d564450e2a41f0ce9403 100644 (file)
@@ -1,19 +1,22 @@
-%define                kdeframever     5.82
-%define                qtver           5.9.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeframever     5.110
+%define                qtver           5.15.2
 %define                kfname          purpose
 
 Summary:       Offers available actions for a specific purpose
 Name:          kf5-%{kfname}
-Version:       5.82.0
+Version:       5.110.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
-Source0:       http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 022f49177ea5178b98a047392c29a2ff
+Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: a007abef9234eebe7d32910951190d13
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Test-devel >= %{qtver}
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.16
 BuildRequires: gettext-devel
 BuildRequires: ka5-kaccounts-integration-devel
 BuildRequires: kf5-extra-cmake-modules >= %{version}
@@ -67,12 +70,17 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
 %setup -q -n %{kfname}-%{version}
 
 %build
-install -d build
-cd build
-%cmake -G Ninja \
-       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-       ../
-%ninja_build
+%cmake -B build \
+       -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
+       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+
+%ninja_build -C build
+
+%if %{with tests}
+%ninja_build -C build test
+%endif
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -99,6 +107,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/qt5/plugins/kf5/kfileitemaction
 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kfileitemaction/sharefileitemaction.so
 %dir %{_libdir}/qt5/plugins/kf5/purpose
+%attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/barcodeplugin.so
 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/bluetoothplugin.so
 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/emailplugin.so
 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/imgurplugin.so
@@ -117,7 +126,6 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/qt5/qml/org/kde/purpose/phabricator
 %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/purpose/phabricator/libphabricatorquickplugin.so
 %{_libdir}/qt5/qml/org/kde/purpose/phabricator/qmldir
-%{_libdir}/qt5/qml/org/kde/purpose/plugins.qmltypes
 %{_libdir}/qt5/qml/org/kde/purpose/qmldir
 %dir %{_libdir}/qt5/qml/org/kde/purpose/reviewboard
 %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/purpose/reviewboard/librbpurposequickplugin.so
@@ -138,18 +146,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_iconsdir}/hicolor/32x32/actions/kipiplugin_youtube.png
 %{_iconsdir}/hicolor/48x48/actions/kipiplugin_youtube.png
 %{_iconsdir}/hicolor/64x64/actions/kipiplugin_youtube.png
-%dir %{_datadir}/purpose
-%{_datadir}/purpose/bluetoothplugin_config.qml
-%{_datadir}/purpose/kdeconnectplugin_config.qml
-%{_datadir}/purpose/nextcloudplugin_config.qml
-%{_datadir}/purpose/phabricatorplugin_config.qml
-%{_datadir}/purpose/reviewboardplugin_config.qml
-%{_datadir}/purpose/saveasplugin_config.qml
-%{_datadir}/purpose/youtubeplugin_config.qml
+%{_datadir}/purpose
 %{_datadir}/qlogging-categories5/purpose.renamecategories
-
-#%%files twitter
-#%%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/twitterplugin.so
+%{_libdir}/qt5/qml/org/kde/purpose/AlternativesView.qml
+%{_libdir}/qt5/qml/org/kde/purpose/JobView.qml
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.464667 seconds and 4 git commands to generate.