]> git.pld-linux.org Git - packages/ka5-libkexiv2.git/blobdiff - ka5-libkexiv2.spec
- updated to 23.08.5
[packages/ka5-libkexiv2.git] / ka5-libkexiv2.spec
index 0cc97b324836c815665814a96e23b8c0b15ff4e5..7ea77cfd7cd5eb59767f84fdc0d3a794f3e5b67a 100644 (file)
@@ -1,20 +1,26 @@
-%define                kdeappsver      18.12.1
-%define                qtver           5.9.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+
+%define                kdeappsver      23.08.5
+%define                kframever       5.94.0
+%define                qtver           5.15.2
 %define                kaname          libkexiv2
-Summary:       libkexiv2
+Summary:       libkexiv2 - KDE Exiv2 wrapper
+Summary(pl.UTF-8):     libexiv2 - obudowanie Exiv2 dla KDE
 Name:          ka5-%{kaname}
-Version:       18.12.1
+Version:       23.08.5
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Applications
-Source0:       http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 67187ac104c3656d86efe7709b688b00
-URL:           http://www.kde.org/
+Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: fbb745604cccbec99980cd702eb50684
+URL:           https://kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
-BuildRequires: Qt5Gui-devel
-BuildRequires: cmake >= 2.8.12
+BuildRequires: Qt5Gui-devel >= %{qtver}
+BuildRequires: cmake >= 3.20
 BuildRequires: exiv2-devel >= 0.24
-BuildRequires: kf5-extra-cmake-modules >= 5.53.0
+BuildRequires: kf5-extra-cmake-modules >= %{kframever}
 BuildRequires: ninja
 BuildRequires: qt5-build >= %{qtver}
 BuildRequires: rpmbuild(macros) >= 1.164
@@ -26,6 +32,9 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Libkexiv2 is a wrapper around Exiv2.
 
+%description -l pl.UTF-8
+Libkexiv2 jest wraperem wokół Exiv2.
+
 %package devel
 Summary:       Header files for %{kaname} development
 Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających %{kaname}
@@ -42,16 +51,22 @@ Pliki nagłówkowe dla programistów używających %{kaname}.
 %setup -q -n %{kaname}-%{version}
 
 %build
-install -d build
-cd build
 %cmake \
+       -B build \
        -G Ninja \
-       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-       ..
-%ninja_build
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
+       -DHTML_INSTALL_DIR=%{_kdedocdir} \
+       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+%ninja_build -C build
+
+%if %{with tests}
+ctest --test-dir build
+%endif
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %ninja_install -C build
 
 %clean
@@ -63,11 +78,11 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libKF5KExiv2.so.5.*.*
-%attr(755,root,root) %{_libdir}/libKF5KExiv2.so.15.*.*
+%{_libdir}/libKF5KExiv2.so.15.*.*
+%{_datadir}/qlogging-categories5/libkexiv2.categories
 
 %files devel
 %defattr(644,root,root,755)
 %{_libdir}/libKF5KExiv2.so
 %{_includedir}/KF5/KExiv2
-%{_includedir}/KF5/libkexiv2_version.h
 %{_libdir}/cmake/KF5KExiv2
This page took 0.112341 seconds and 4 git commands to generate.