commit 4bfc8ea75cc5abc4a8d6dc7e9349cb56a22c3a07
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Tue Jul 24 14:12:36 2018 +0100
Fix directory ownership (rfbz#4975)
nautilus-dropbox.spec | 35 ++++++++++++-----------------------
1 file changed, 12 insertions(+), 23 deletions(-)
---
diff --git a/nautilus-dropbox.spec b/nautilus-dropbox.spec
index 94e4d12..defe63c 100644
--- a/nautilus-dropbox.spec
+++ b/nautilus-dropbox.spec
@@ -1,7 +1,7 @@
Name: nautilus-dropbox
Epoch: 1
Version: 2015.10.28
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Dropbox extension for Nautilus
License: GPLv3+
URL:
https://www.dropbox.com
@@ -12,11 +12,11 @@ Patch0: add_startup_delay.patch
ExclusiveArch: i686 x86_64
+BuildRequires: automake
BuildRequires: desktop-file-utils
+BuildRequires: libtool
BuildRequires: nautilus-devel
BuildRequires: python2-docutils
-BuildRequires: automake
-BuildRequires: libtool
BuildRequires: pygobject2-devel
BuildRequires: pygtk2-devel
Requires: dropbox >= %{?epoch}:%{version}-%{release}
@@ -37,8 +37,7 @@ your computers automatically.
%prep
-%setup -q
-%patch0 -p1
+%autosetup -p1
%build
%configure --disable-static
@@ -46,33 +45,19 @@ your computers automatically.
%install
%{make_install}
-find $RPM_BUILD_ROOT%{_libdir} -type f -name '*.la' -delete -print
+find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%check
-desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/dropbox.desktop
-
-%post -p /sbin/ldconfig
+desktop-file-validate %{buildroot}%{_datadir}/applications/dropbox.desktop
-%postun -p /sbin/ldconfig
-
-%post -n dropbox
-/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-
-%postun -n dropbox
-if [ $1 -eq 0 ] ; then
- /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
- /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-fi
-
-%posttrans -n dropbox
-/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+%ldconfig_scriptlets
%files -n dropbox
%doc ChangeLog README
%license COPYING
%{_bindir}/dropbox
%{_datadir}/nautilus-dropbox/
-%{_datadir}/icons/hicolor/*
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man1/dropbox.1.*
%{_datadir}/applications/dropbox.desktop
@@ -80,6 +65,10 @@ fi
%{_libdir}/nautilus/extensions-3.0/libnautilus-dropbox.so
%changelog
+* Tue Jul 24 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 1:2015.10.28-7
+- Fix directory ownership (rfbz#4975)
+- Fix scriptlets
+
* Fri Mar 02 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> -
1:2015.10.28-6
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild