SHA256
1
0
forked from pool/xemacs
Dominique Leuenberger 2017-07-02 11:38:26 +00:00 committed by Git OBS Bridge
commit d19450207a
2 changed files with 8 additions and 25 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 29 07:51:21 UTC 2017 - bwiedemann@suse.com
- use gzip -n to not add timestamps to .gz headers
- use %fdupes macro to create symlinks in a reproducible way
-------------------------------------------------------------------
Sat May 6 10:34:52 UTC 2017 - meissner@suse.com

View File

@ -431,7 +431,7 @@ for f in %{buildroot}%{_prefix}/man/man1/*.1 \
do
test "${f##*.}" = "gz" && continue
test -e $f || continue
gzip -9f $f
gzip -9nf $f
done
find %{buildroot}%{_datadir}/xemacs/%{version}/ -name '*.orig' | xargs -r rm -f
find %{buildroot}%{_datadir}/xemacs/%{version}/ -name '*.el.ediff' | xargs -r rm -f
@ -489,30 +489,7 @@ install -m 0644 suse/README.SUSE %{buildroot}/%{_docdir}/xemacs/README.SUSE
ln -sf /usr/share/xemacs/%{version}/etc %{buildroot}/%{_docdir}/xemacs/etc
mkdir -p %{buildroot}%{_sysconfdir}/skel/.xemacs
install -m 0644 %{_sourcedir}/skel.init.el %{buildroot}%{_sysconfdir}/skel/.xemacs/init.el
fdupes -q -r -1 %{buildroot}%{_datadir}/xemacs/%{version}/etc/ %{buildroot}%{_mandir}/man1/ |\
xargs -n 2 | while read first second; do
case "${first}" in
*xemacs/%{version}/etc/*)
target=$second
file=$first
;;
*) target=$first
file=$second
esac
ln -sf ${file#%{buildroot}} ${target}
done
fdupes -q -r -1 %{buildroot}%{_datadir}/xemacs/%{version}/etc/toolbar/ |\
xargs -n 2 | while read first second; do
case "${first}" in
*xemacs/%{version}/etc/*)
target=$second
file=$first
;;
*) target=$first
file=$second
esac
ln -sf ${file#%{buildroot}} ${target}
done
%fdupes -s %{buildroot}%{_datadir}
#
# replace buildroot in comments in .elc files by spaces with the same total length:
REPLACEMENT=$(echo %{buildroot} | tr '[:print:]' ' ')