diff --git a/lensfun.spec b/lensfun.spec index 327da3f..b842b61 100644 --- a/lensfun.spec +++ b/lensfun.spec @@ -11,12 +11,17 @@ Name: lensfun Version: 0.3.1 Summary: Library to rectify defects introduced by photographic lenses -Release: 2%{?dist} +Release: 3%{?dist} License: LGPLv3 and CC-BY-SA URL: http://lensfun.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +## upstream patches +# https://bugzilla.redhat.com/show_bug.cgi?id=1242826 +# http://sourceforge.net/p/lensfun/bugs/30/ +Patch100: lensfun-update-data.patch + ## upstreamable patches # install manpages only when INSTALL_HELPER_SCRIPTS=ON Patch1: lensfun-0.3.1-INSTALL_HELPER_SCRIPTS.patch @@ -57,8 +62,9 @@ adapters in lensfun. %prep -%setup +%setup -q +%patch100 -p1 -b .update_data %patch1 -p1 -b .INSTALL_HELPER_SCRIPTS %patch2 -p1 -b .mandir @@ -81,12 +87,15 @@ make doc -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +# create/own /var/lib/lensfun-updates +mkdir -p %{buildroot}/var/lib/lensfun-updates + ## unpackaged files # omit cmake-installed doxygen docs, we handle that manually rm -rfv %{buildroot}%{_docdir}/%{name}-%{version}* # omit g-lensfun-update-data because it needs gksudo which we don't ship rm -fv %{buildroot}%{_bindir}/g-lensfun-update-data \ - %{buildroot}%{_mandir}/man1/g-lensfun-update-data.* + %{buildroot}%{_mandir}/man1/g-lensfun-update-data.* %post -p /sbin/ldconfig @@ -98,6 +107,7 @@ rm -fv %{buildroot}%{_bindir}/g-lensfun-update-data \ %doc docs/adobe-lens-profile.txt %{_datadir}/lensfun/ %{_libdir}/liblensfun.so.0* +%dir /var/lib/lensfun-updates/ %files devel %doc %{_target_platform}/doc_doxygen/* @@ -111,6 +121,9 @@ rm -fv %{buildroot}%{_bindir}/g-lensfun-update-data \ %changelog +* Tue Jul 14 2015 Rex Dieter 0.3.1-3 +- lensfun-update-data: Root privileges needed (#1242826) + * Wed Jun 17 2015 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild