%global commit 1c5a5c1534b5faf098b7441f8840d22835592f17 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapshotdate 20240526 Name: gimp-lensfun Version: 0.2.5~dev^%{snapshotdate}git%{shortcommit} Release: %autorelease Summary: Gimp plugin to correct lens distortion License: GPL-3.0-or-later URL: https://seebk.github.io/GIMP-Lensfun/ VCS: https://github.com/seebk/GIMP-Lensfun/ Source: %{vcs}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Source: %{name}.metainfo.xml Patch: https://github.com/seebk/GIMP-Lensfun/commit/ca4511c1a4dd8edabe86e4a943861fda07b7e86c.patch#/%{name}-fix-exiv2-build-error.patch BuildRequires: gcc-c++ BuildRequires: make BuildRequires: pkgconfig(exiv2) >= 0.28.0 BuildRequires: pkgconfig(gexiv2) BuildRequires: pkgconfig(gimp-2.0) >= 2.10 BuildRequires: pkgconfig(lensfun) >= 0.3.2 %description GimpLensfun is a Gimp plugin to correct lens distortion using the lensfun library and database. %prep %autosetup -p1 -n GIMP-Lensfun-%{commit} %build %set_build_flags %make_build %install mkdir -p %{buildroot}%{_libdir}/gimp/2.0/plug-ins install -Dpm 0755 %{name} %{buildroot}%{_libdir}/gimp/2.0/plug-ins mkdir -p %{buildroot}%{_datadir}/appdata install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata %files %license LICENSE.txt %doc CHANGES.txt README.txt %{_libdir}/gimp/2.0/plug-ins/%{name} %{_datadir}/appdata/%{name}.metainfo.xml %changelog %autochangelog