165 lines
3.9 KiB
RPMSpec
Raw Normal View History

2024-08-24 19:06:33 +06:00
%bcond_with gcc
2024-06-29 11:52:32 +06:00
Name: libkexiv2
Summary: A wrapper around Exiv2 library
2024-11-08 18:42:23 +06:00
Version: 24.08.3
2024-07-18 14:38:44 +06:00
Release: 1%{?dist}
2024-06-29 11:52:32 +06:00
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/release-service/%{version}/src/%{name}-%{version}.tar.xz
## upstream patches (master branch)
2024-08-24 19:06:33 +06:00
%if %{with gcc}
BuildRequires: gcc-toolset-14-gcc-c++
%else
BuildRequires: clang
%endif
2024-06-29 11:52:32 +06:00
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: kf6-rpm-macros
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Core5Compat)
BuildRequires: pkgconfig(exiv2)
%global _description %{expand:
Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures metadata
as EXIF IPTC and XMP.}
%description %{_description}
%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}.
%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
2024-08-24 19:06:33 +06:00
%if %{with gcc}
%enable_devtoolset14
export CC=gcc
export CXX=c++
2024-11-08 18:42:23 +06:00
%else
%global optflags %(echo %{optflags}) -Qunused-arguments
2024-08-24 19:06:33 +06:00
%endif
2024-06-29 11:52:32 +06:00
%global _vpath_builddir %{_target_platform}-qt5
%cmake_kf5 -DBUILD_WITH_QT6=OFF
%cmake_build
%global _vpath_builddir %{_target_platform}-qt6
%cmake_kf6 -DBUILD_WITH_QT6=ON
%cmake_build
%install
%global _vpath_builddir %{_target_platform}-qt5
%cmake_install
%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 qt5
%{_kf5_datadir}/qlogging-categories5/*%{name}.*
%{_kf5_libdir}/libKF5KExiv2.so.15.0.0
%{_kf5_libdir}/libKF5KExiv2.so.5.1.0
%files qt6-devel
%{_libdir}/libKExiv2Qt6.so
%{_includedir}/KExiv2Qt6/
%{_libdir}/cmake/KExiv2Qt6/
%files qt5-devel
%{_kf5_libdir}/libKF5KExiv2.so
%{_kf5_includedir}/KExiv2/
%{_kf5_libdir}/cmake/KF5KExiv2/
%changelog
2024-11-08 18:42:23 +06:00
* Thu Nov 7 2024 Raven <raven@sysadmins.ws> - 24.08.3-1
- 24.08.3
2024-10-24 17:53:53 +06:00
* Fri Oct 11 2024 Raven <raven@sysadmins.ws> - 24.08.2-1
- 24.08.2
2024-09-16 19:54:16 +06:00
* Fri Sep 13 2024 Raven <raven@sysadmins.ws> - 24.08.1-1
- 24.08.1
2024-08-24 19:06:33 +06:00
* Fri Aug 23 2024 Raven <raven@sysadmins.ws> - 24.08.0-1
- 24.08.0
2024-07-18 14:38:44 +06:00
* Wed Jul 10 2024 Raven <raven@sysadmins.ws> - 24.05.2-1
- 24.05.2
2024-06-29 11:52:32 +06:00
* Fri Jun 28 2024 Raven <raven@sysadmins.ws> - 24.05.1-4
- rebuild (libxkbcommon)
* Wed Jun 26 2024 Raven <raven@sysadmins.ws> - 24.05.1-3
- Rebuild (qt6)
* Mon Jun 3 2024 Raven <raven@sysadmins.ws> - 24.05.0-1
- 24.05.0
* Thu May 2 2024 Raven <raven@sysadmins.ws> - 24.02.2-1
- 24.02.2
* Wed Feb 21 2024 Marc Deop i Argemí <marcdeop@fedoraproject.org> - 24.02.0-1
- 24.02.0
* Wed Jan 31 2024 Marc Deop i Argemí <marcdeop@fedoraproject.org> - 24.01.95-1
- 24.01.95
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 24.01.90-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 24.01.90-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 11 2024 Marc Deop i Argemí <marcdeop@fedoraproject.org> - 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 <ales.astone@gmail.com> - 24.01.75-2
- Initial Release