From 9b98909f0f9e1ec82dc9b0749285e472352e9472 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Feb 20 2018 14:27:25 +0000 Subject: keep timestamps more aggressively --- diff --git a/fbpanel.spec b/fbpanel.spec index 971ab35..c57f4c4 100644 --- a/fbpanel.spec +++ b/fbpanel.spec @@ -1,6 +1,6 @@ Name: fbpanel Version: 7.0 -Release: 0.100%{?dist} +Release: 0.101%{?dist} Summary: A lightweight X11 desktop panel Group: User Interface/Desktops @@ -29,8 +29,6 @@ It features tasklist, pager, launchbar, clock, menu and systray. %setup -q %patch10 -p1 -b .default-config %patch11 -p1 -b .default-applications -# preserve timestamps during install -sed -i.timstamps -e 's|install -m|install -p -m|' scripts/install.sh # honor optflags sed -i.optflags -e \ '\@CFLAGS =@s|-Wall -Werror|%{optflags}|' \ @@ -42,6 +40,12 @@ sed -i.path panel/panel.c \ LANG=C grep -rl %{_bindir}/python | \ xargs sed -i -e 's@%{_bindir}/python$@%{_bindir}/python2@' +# preserve timestamps during install +sed -i.timstamps -e 's|install -m|install -p -m|' scripts/install.sh +# Keep timestamps more forcely!! +grep -rl -- "-m 644" | xargs sed -e 's|-m 644 |-p -m 644|' +sed -i data/images/Makefile -e '\@IMAGES@s|install |install -cp -m 0644 |' + %build # %%configure macro doesn't work ./configure \ @@ -80,9 +84,18 @@ rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libvolume.so %doc README.md %{_bindir}/%{name} -%{_libdir}/%{name}/ -%{_libexecdir}/%{name}/ -%{_datadir}/%{name}/ +%dir %{_libdir}/%{name}/ +%{_libdir}/%{name}/lib*.so + +%dir %{_libexecdir}/%{name}/ +%{_libexecdir}/%{name}/make_profile +%{_libexecdir}/%{name}/xlogout + +%dir %{_datadir}/%{name}/ +%{_datadir}/%{name}/default +%{_datadir}/%{name}/images/ +%{_datadir}/%{name}/pager + %{_mandir}/man1/%{name}.1.*