1 | Summary: The GNU data compression program
|
---|
2 | Name: gzip
|
---|
3 | Version: 1.8
|
---|
4 | Release: 1%{?dist}
|
---|
5 | # info pages are under GFDL license
|
---|
6 | License: GPLv3+ and GFDL
|
---|
7 | Group: Applications/File
|
---|
8 |
|
---|
9 | Vendor: bww bitwise works GmbH
|
---|
10 | %scm_source github https://github.com/bitwiseworks/gzip-os2 %{version}-os2
|
---|
11 |
|
---|
12 | URL: 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.
|
---|
16 | Requires: info
|
---|
17 | Requires: coreutils
|
---|
18 | BuildRequires: texinfo
|
---|
19 | BuildRequires: rexx_exe
|
---|
20 | Provides: /@unixroot/usr/bin/gunzip
|
---|
21 | Provides: /@unixroot/usr/bin/gzip
|
---|
22 | Provides: /@unixroot/usr/bin/zcat
|
---|
23 |
|
---|
24 | %description
|
---|
25 | The gzip package contains the popular GNU gzip data compression
|
---|
26 | program. Gzipped files have a .gz extension.
|
---|
27 |
|
---|
28 | Gzip should be installed on your system, because it is a
|
---|
29 | very commonly used data compression program.
|
---|
30 |
|
---|
31 | %debug_package
|
---|
32 |
|
---|
33 | %prep
|
---|
34 | %scm_setup
|
---|
35 |
|
---|
36 | autoreconf -fvi
|
---|
37 |
|
---|
38 | %build
|
---|
39 | export DEFS="NO_ASM"
|
---|
40 | export CPPFLAGS="-DHAVE_LSTAT"
|
---|
41 | export LDFLAGS="-Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp"
|
---|
42 | %configure
|
---|
43 |
|
---|
44 | make
|
---|
45 | #make gzip.info
|
---|
46 |
|
---|
47 | %install
|
---|
48 | rm -rf ${RPM_BUILD_ROOT}
|
---|
49 | %make_install
|
---|
50 |
|
---|
51 | # Tailor converter scripts to use the right path
|
---|
52 | for 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"
|
---|
62 | done
|
---|
63 |
|
---|
64 |
|
---|
65 | gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/gzip.info*
|
---|
66 |
|
---|
67 | # we don't ship it, so let's remove it from ${RPM_BUILD_ROOT}
|
---|
68 | rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
---|
69 | # uncompress is a part of ncompress package
|
---|
70 | rm -f ${RPM_BUILD_ROOT}%{_bindir}/uncompress
|
---|
71 |
|
---|
72 | %clean
|
---|
73 | rm -rf ${RPM_BUILD_ROOT}
|
---|
74 |
|
---|
75 | %post
|
---|
76 | if [ -f %{_infodir}/gzip.info* ]; then
|
---|
77 | %{_sbindir}/install-info %{_infodir}/gzip.info.gz %{_infodir}/dir || :
|
---|
78 | fi
|
---|
79 |
|
---|
80 | %preun
|
---|
81 | if [ $1 = 0 ]; then
|
---|
82 | if [ -f %{_infodir}/gzip.info* ]; then
|
---|
83 | %{_sbindir}/install-info --delete %{_infodir}/gzip.info.gz %{_infodir}/dir || :
|
---|
84 | fi
|
---|
85 | fi
|
---|
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
|
---|