lensfun-update-data: Root privileges needed (#1242826)

This commit is contained in:
Rex Dieter 2015-07-14 09:04:36 -05:00
parent d115da5814
commit 7bdfaca255

View File

@ -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,6 +87,9 @@ 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}*
@ -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 <rdieter@fedoraproject.org> 0.3.1-3
- lensfun-update-data: Root privileges needed (#1242826)
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild