[packages/ka6-kdegraphics-mobipocket] - unified with ka5-kdegraphics-mobipocket.spec
qboosh
qboosh at pld-linux.org
Mon Jun 9 07:54:31 CEST 2025
commit 54188c91f84564414b8e2eced68232975aad3575
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jun 9 06:32:13 2025 +0200
- unified with ka5-kdegraphics-mobipocket.spec
ka6-kdegraphics-mobipocket.spec | 44 +++++++++++++++++++----------------------
1 file changed, 20 insertions(+), 24 deletions(-)
---
diff --git a/ka6-kdegraphics-mobipocket.spec b/ka6-kdegraphics-mobipocket.spec
index d103e00..4e12972 100644
--- a/ka6-kdegraphics-mobipocket.spec
+++ b/ka6-kdegraphics-mobipocket.spec
@@ -1,30 +1,28 @@
-#
-# Conditional build:
-%bcond_with tests # build with tests
-%define kdeappsver 25.04.2
-%define kframever 5.94.0
-%define qtver 5.15.2
+%define kf_ver 5.94.0
+%define qt_ver 6.4.0
%define kaname kdegraphics-mobipocket
-Summary: KDE graphics mobipocket
+Summary: KDE graphics mobipocket library
+Summary(pl.UTF-8): Biblioteka KDE graphics mobipocket
Name: ka6-%{kaname}
Version: 25.04.2
Release: 1
-License: GPL v2+/LGPL v2.1+
+License: GPL v2+
Group: X11/Libraries
-Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+Source0: https://download.kde.org/stable/release-service/%{version}/src/%{kaname}-%{version}.tar.xz
# Source0-md5: ba527148ce6ae8bf174cde1adb731973
-URL: https://www.kde.org/
-BuildRequires: Qt6Core-devel >= %{qtver}
-BuildRequires: Qt6Gui-devel
+URL: https://kde.org/
+BuildRequires: Qt6Core-devel >= %{qt_ver}
+BuildRequires: Qt6Gui-devel >= %{qt_ver}
BuildRequires: cmake >= 3.20
BuildRequires: gettext-tools
-BuildRequires: kf6-kio-devel >= %{kframever}
+BuildRequires: kf6-extra-cmake-modules >= %{kf_ver}
BuildRequires: ninja
-BuildRequires: qt6-build >= %{qtver}
-BuildRequires: rpmbuild(macros) >= 1.164
+BuildRequires: qt6-build >= %{qt_ver}
+BuildRequires: rpmbuild(macros) >= 1.736
BuildRequires: tar >= 1:1.22
BuildRequires: xz
-BuildRequires: zlib-devel
+Requires: Qt6Core >= %{qt_ver}
+Requires: Qt6Gui >= %{qt_ver}
Obsoletes: ka5-%{kaname} < %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -39,6 +37,8 @@ Summary: Header files for %{kaname} development
Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname}
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: Qt6Core-devel >= %{qt_ver}
+Requires: Qt6Gui-devel >= %{qt_ver}
Obsoletes: ka5-%{kaname}-devel < %{version}
%description devel
@@ -54,19 +54,15 @@ Pliki nagłówkowe dla programistów używających %{kaname}.
%cmake \
-B build \
-G Ninja \
- %{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_DOCBUNDLEDIR=%{_kdedocdir} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DQT_MAJOR_VERSION=6
-%ninja_build -C build
-
-%if %{with tests}
-ctest --test-dir build
-%endif
+%ninja_build -C build
%install
rm -rf $RPM_BUILD_ROOT
+
%ninja_install -C build
%clean
@@ -77,11 +73,11 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%ghost %{_libdir}/libQMobipocket6.so.2
%attr(755,root,root) %{_libdir}/libQMobipocket6.so.*.*
+%ghost %{_libdir}/libQMobipocket6.so.2
%files devel
%defattr(644,root,root,755)
+%{_libdir}/libQMobipocket6.so
%{_includedir}/QMobipocket6
%{_libdir}/cmake/QMobipocket6
-%{_libdir}/libQMobipocket6.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ka6-kdegraphics-mobipocket.git/commitdiff/636ccf242db69820a65133bf56ce0799d88b7f20
More information about the pld-cvs-commit
mailing list