%bcond_with qt5 Name: libkexiv2 Summary: A wrapper around Exiv2 library Version: 24.05.2 Release: 1%{?dist}.1 License: BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later URL: https://invent.kde.org/graphics/%{name} Source0: http://download.kde.org/%{stable_kf6}/release-service/%{version}/src/%{name}-%{version}.tar.xz ## upstream patches (master branch) BuildRequires: extra-cmake-modules BuildRequires: kf6-rpm-macros BuildRequires: cmake(Qt6Gui) BuildRequires: cmake(Qt6Core5Compat) BuildRequires: pkgconfig(exiv2) %if %{with qt5} BuildRequires: kf5-rpm-macros BuildRequires: cmake(Qt5Gui) %endif %global _description %{expand: Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures metadata as EXIF IPTC and XMP.} %description %{_description} %if %{with qt5} %package qt5 Summary: Qt5 version of %{name} Requires: kf5-filesystem # Renamed from kf5-libkexiv2 Obsoletes: kf5-libkexiv2 < %{version}-%{release} Provides: kf5-libkexiv2 = %{version}-%{release} %description qt5 %{_description} %package qt5-devel Summary: Development files for %{name}-qt5 Requires: %{name}-qt5%{?_isa} = %{version}-%{release} Requires: cmake(Qt5Gui) Obsoletes: kf5-libkexiv2-devel < %{version}-%{release} Provides: kf5-libkexiv2-devel = %{version}-%{release} %description qt5-devel %{summary}. %endif %package qt6 Summary: Qt6 version of %{name} %description qt6 %{_description} %package qt6-devel Summary: Development files for %{name}-qt6 Requires: %{name}-qt6%{?_isa} = %{version}-%{release} Requires: cmake(Qt6Gui) %description qt6-devel %{summary}. %prep %autosetup -p1 %build %if %{with qt5} %global _vpath_builddir %{_target_platform}-qt5 %cmake_kf5 -DBUILD_WITH_QT6=OFF %cmake_build %endif %global _vpath_builddir %{_target_platform}-qt6 %cmake_kf6 -DBUILD_WITH_QT6=ON %cmake_build %install %if %{with qt5} %global _vpath_builddir %{_target_platform}-qt5 %cmake_install %endif %global _vpath_builddir %{_target_platform}-qt6 %cmake_install %files qt6 %doc AUTHORS README %license LICENSES/* %{_datadir}/qlogging-categories6/*%{name}.* %{_libdir}/libKExiv2Qt6.so.0 %{_libdir}/libKExiv2Qt6.so.5.1.0 %files qt6-devel %{_libdir}/libKExiv2Qt6.so %{_includedir}/KExiv2Qt6/ %{_libdir}/cmake/KExiv2Qt6/ %if %{with qt5} %files qt5 %{_kf5_datadir}/qlogging-categories5/*%{name}.* %{_kf5_libdir}/libKF5KExiv2.so.15.0.0 %{_kf5_libdir}/libKF5KExiv2.so.5.1.0 %files qt5-devel %{_kf5_libdir}/libKF5KExiv2.so %{_kf5_includedir}/KExiv2/ %{_kf5_libdir}/cmake/KF5KExiv2/ %endif %changelog * Fri Jul 12 2024 Troy Dawson - 24.05.2-1.1 - qt5/kf5 is optional * Sun Jul 07 2024 Marc Deop i Argemí - 24.05.2-1 - 24.05.2 * Sun Jun 16 2024 Robert-André Mauchin - 24.05.1-2 - Rebuild for exiv2 0.28.2 * Fri Jun 14 2024 Marc Deop i Argemí - 24.05.1-1 - 24.05.1 * Fri May 17 2024 Marc Deop i Argemí - 24.05.0-1 - 24.05.0 * Fri Apr 12 2024 Marc Deop i Argemí - 24.02.2-1 - 24.02.2 * Fri Mar 29 2024 Marc Deop i Argemí - 24.02.1-1 - 24.02.1 * Wed Feb 21 2024 Marc Deop i Argemí - 24.02.0-1 - 24.02.0 * Wed Jan 31 2024 Marc Deop i Argemí - 24.01.95-1 - 24.01.95 * Thu Jan 25 2024 Fedora Release Engineering - 24.01.90-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 24.01.90-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 11 2024 Marc Deop i Argemí - 24.01.90-1 - 24.01.90 * Sat Dec 23 2023 ales.astone@gmail.com - 24.01.85-1 - 24.01.85 * Tue Nov 14 2023 Alessandro Astone - 24.01.75-2 - Initial Release