forked from pool/xemacs
Accepting request 507545 from M17N
1 OBS-URL: https://build.opensuse.org/request/show/507545 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xemacs?expand=0&rev=88
This commit is contained in:
commit
d19450207a
@ -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
|
||||
|
||||
|
27
xemacs.spec
27
xemacs.spec
@ -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:]' ' ')
|
||||
|
Loading…
Reference in New Issue
Block a user