source: spec/trunk/SPECS/gzip.spec@ 1330

Last change on this file since 1330 was 1228, checked in by Silvan Scherrer, 8 years ago

spec: gzip: Release version 1.8-1.

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1Summary: The GNU data compression program
2Name: gzip
3Version: 1.8
4Release: 1%{?dist}
5# info pages are under GFDL license
6License: GPLv3+ and GFDL
7Group: Applications/File
8
9Vendor: bww bitwise works GmbH
10%scm_source github https://github.com/bitwiseworks/gzip-os2 %{version}-os2
11
12URL: http://www.gzip.org/
13# Requires should not be added for gzip wrappers (eg. zdiff, zgrep,
14# zless) of another tools, because gzip "extends" the tools by its
15# wrappers much more than it "requires" them.
16Requires: info
17Requires: coreutils
18BuildRequires: texinfo
19BuildRequires: rexx_exe
20Provides: /@unixroot/usr/bin/gunzip
21Provides: /@unixroot/usr/bin/gzip
22Provides: /@unixroot/usr/bin/zcat
23
24%description
25The gzip package contains the popular GNU gzip data compression
26program. Gzipped files have a .gz extension.
27
28Gzip should be installed on your system, because it is a
29very commonly used data compression program.
30
31%debug_package
32
33%prep
34%scm_setup
35
36autoreconf -fvi
37
38%build
39export DEFS="NO_ASM"
40export CPPFLAGS="-DHAVE_LSTAT"
41export LDFLAGS="-Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp"
42%configure
43
44make
45#make gzip.info
46
47%install
48rm -rf ${RPM_BUILD_ROOT}
49%make_install
50
51# Tailor converter scripts to use the right path
52for f in *.cmd ; do
53 # Due to bug in sed 4.2.1-2 -i kills CRLF in processed files, so use redirection
54 %{__sed} \
55-e '/^Parse Source .*$/ d' \
56-e 's|^helperpath = .*$|helperpath = value('UNIXROOT',,'OS2ENVIRONMENT')"\\usr\\bin\\"|' \
57-e 's|@call|@|g' "$f" > "$f.new"
58 %{__rm} "$f"
59 %{__mv} "$f.new" "$f"
60# Pack and install OS/2 Rexx scripts
61 rexx2vio "$f" "%{buildroot}%{_bindir}/${f%.cmd}.exe"
62done
63
64
65gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/gzip.info*
66
67# we don't ship it, so let's remove it from ${RPM_BUILD_ROOT}
68rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
69# uncompress is a part of ncompress package
70rm -f ${RPM_BUILD_ROOT}%{_bindir}/uncompress
71
72%clean
73rm -rf ${RPM_BUILD_ROOT}
74
75%post
76if [ -f %{_infodir}/gzip.info* ]; then
77 %{_sbindir}/install-info %{_infodir}/gzip.info.gz %{_infodir}/dir || :
78fi
79
80%preun
81if [ $1 = 0 ]; then
82 if [ -f %{_infodir}/gzip.info* ]; then
83 %{_sbindir}/install-info --delete %{_infodir}/gzip.info.gz %{_infodir}/dir || :
84 fi
85fi
86
87%files
88%defattr(-,root,root)
89%doc NEWS README AUTHORS ChangeLog THANKS TODO
90%{!?_licensedir:%global license %%doc}
91%license COPYING
92%{_bindir}/*
93%exclude %{_bindir}/*.dbg
94%{_mandir}/*/*
95%{_infodir}/gzip.info*
96
97%changelog
98* Thu Aug 24 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8-1
99- update vendor source to version 1.8
100- move source from netlabs svn to github
101
102* Thu Feb 02 2012 yd
103- Remove symlinks from /bin.
104
105* Fri Nov 18 2011 yd
106- keep all executables to /usr/bin and place symlinks in /bin
Note: See TracBrowser for help on using the repository browser.