diff --git a/kf5-libkexiv2.spec b/kf5-libkexiv2.spec new file mode 100644 index 0000000..bdedde7 --- /dev/null +++ b/kf5-libkexiv2.spec @@ -0,0 +1,73 @@ +%global framework libkexiv2 + +Name: kf5-libkexiv2 +Summary: A wrapper around Exiv2 library +Version: 22.12.0 +Release: 1 + +License: GPLv2+ +URL: https://invent.kde.org/graphics/%{framework} + +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif + +Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{framework}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: qt5-qtbase-devel +BuildRequires: pkgconfig(exiv2) + +Requires: kf5-filesystem + +%description +Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures metadata +as EXIF IPTC and XMP. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: qt5-qtbase-devel + +%description devel +%{summary}. + + +%prep +%autosetup -n %{framework}-%{version} -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd +%make_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +%ldconfig_scriptlets + +%files +%doc AUTHORS README +%license LICENSES/* +%{_kf5_datadir}/qlogging-categories5/*%{framework}.* +%{_kf5_libdir}/libKF5KExiv2.so.* + +%files devel +%{_kf5_libdir}/libKF5KExiv2.so +%{_kf5_includedir}/libkexiv2_version.h +%{_kf5_includedir}/KExiv2/ +%{_kf5_libdir}/cmake/KF5KExiv2/ + + +%changelog +* Fri May 12 2023 misaka00251 - 22.12.0-1 +- Init package diff --git a/kf5-libkexiv2.yaml b/kf5-libkexiv2.yaml new file mode 100644 index 0000000..ef4f5df --- /dev/null +++ b/kf5-libkexiv2.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/libkexiv2 +tag_prefix: "^v" +separator: "." diff --git a/libkexiv2-22.12.0.tar.xz b/libkexiv2-22.12.0.tar.xz new file mode 100644 index 0000000..e66dae2 Binary files /dev/null and b/libkexiv2-22.12.0.tar.xz differ