Accepting request 561975 from home:bmwiedemann:branches:M17N

Use gzip -n to not include build timestamps in .gz headers
also reduce .spec code duplication by passing more params to one gzip

OBS-URL: https://build.opensuse.org/request/show/561975
OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-typing-booster?expand=0&rev=20
This commit is contained in:
OBS User mrdocs 2018-01-06 04:32:53 +00:00 committed by Git OBS Bridge
parent 30625ab572
commit a69c2efd5b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 5 13:29:28 UTC 2018 - bwiedemann@suse.com
- Use gzip -n to not include build timestamps in .gz headers
-------------------------------------------------------------------
Wed Nov 29 09:37:20 UTC 2017 - badshah400@gmail.com

View File

@ -84,9 +84,9 @@ make %{?_smp_mflags}
%install
export PYTHON=%{_bindir}/python3
make install DESTDIR=%{buildroot} NO_INDEX=true
gzip --force --best %{buildroot}/%{_datadir}/%{name}/data/*.{txt,json}
gzip --force --best %{buildroot}/%{_datadir}/%{name}/data/annotations/*.xml
gzip --force --best %{buildroot}/%{_datadir}/%{name}/data/annotationsDerived/*.xml
gzip -n --force --best %{buildroot}/%{_datadir}/%{name}/data/*.{txt,json} \
%{buildroot}/%{_datadir}/%{name}/data/annotations/*.xml \
%{buildroot}/%{_datadir}/%{name}/data/annotationsDerived/*.xml
#install inscript2 keymaps
test -d %{buildroot}%{_datadir}/m17n/icons || mkdir -p %{buildroot}%{_datadir}/m17n/icons