Changeset 1228 for spec/trunk/SPECS


Ignore:
Timestamp:
Aug 24, 2017, 2:35:32 PM (8 years ago)
Author:
Silvan Scherrer
Message:

spec: gzip: Release version 1.8-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/gzip.spec

    r290 r1228  
    11Summary: The GNU data compression program
    22Name: gzip
    3 Version: 1.4
    4 Release: 6%{?dist}
     3Version: 1.8
     4Release: 1%{?dist}
    55# info pages are under GFDL license
    66License: GPLv3+ and GFDL
    77Group: Applications/File
    8 Source: http://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.gz
    98
    10 Patch0: gzip-1.3.12-openbsd-owl-tmp.patch
    11 Patch1: gzip-1.3.5-zforce.patch
    12 Patch2: gzip-1.3.9-stderr.patch
    13 Patch3: gzip-1.3.10-zgreppipe.patch
    14 Patch4: gzip-1.3.13-rsync.patch
    15 Patch5: gzip-1.3.9-addsuffix.patch
    16 Patch6: gzip-1.3.5-cve-2006-4338.patch
    17 Patch7: gzip-1.3.13-cve-2006-4337.patch
    18 Patch8: gzip-1.3.5-cve-2006-4337_len.patch
    19 # Fixed in upstream code.
    20 # http://thread.gmane.org/gmane.comp.gnu.gzip.bugs/378
    21 Patch11: gzip-1.3.13-noemptysuffix.patch
    22 
    23 Patch100: gzip-os2.diff
     9Vendor: bww bitwise works GmbH
     10%scm_source github https://github.com/bitwiseworks/gzip-os2 %{version}-os2
    2411
    2512URL: http://www.gzip.org/
    26 #Requires: /sbin/install-info
    27 #Requires: mktemp less
    28 #BuildRequires: texinfo
    29 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     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
    3023
    3124%description
     
    3629very commonly used data compression program.
    3730
     31%debug_package
     32
    3833%prep
    39 %setup -q
    40 %patch0 -p1 -b .owl-tmp~
    41 %patch1 -p1 -b .zforce~
    42 %patch2 -p1 -b .stderr~
    43 %patch3 -p1 -b .nixi~
    44 %patch4 -p1 -b .rsync~
    45 %patch5 -p1 -b .addsuffix~
    46 %patch6 -p1 -b .4338~
    47 %patch7 -p1 -b .4337~
    48 %patch8 -p1 -b .4337l~
    49 %patch11 -p1 -b .noemptysuffix~
     34%scm_setup
    5035
    51 %patch100 -p1 -b .os2~
     36autoreconf -fvi
    5237
    5338%build
    54 export MAKESHELL=/@unixroot/usr/bin/sh.exe
    55 export CONFIG_SHELL=/@unixroot/usr/bin/sh.exe
    5639export DEFS="NO_ASM"
    5740export CPPFLAGS="-DHAVE_LSTAT"
    58 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp"
    59 %configure \
    60         "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     41export LDFLAGS="-Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp"
     42%configure
    6143
    62 make %{?smp_mflags}
     44make
    6345#make gzip.info
    6446
    6547%install
    6648rm -rf ${RPM_BUILD_ROOT}
    67 %makeinstall
    68 mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
    69 #make DESTDIR=${RPM_BUILD_ROOT} install
     49%make_install
    7050
    71 rm ${RPM_BUILD_ROOT}%{_libdir}/charset.alias
     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
    7263
    73 rm ${RPM_BUILD_ROOT}%{_bindir}/gunzip
    74 rm ${RPM_BUILD_ROOT}%{_bindir}/uncompress
    75 cp -p ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/gunzip.exe
    76 cp -p ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/uncompress.exe
    77 
    78 #for i in  zcmp zegrep zforce zless znew gzexe zdiff zfgrep zgrep zmore ; do
    79 #    mv ${RPM_BUILD_ROOT}/@unixroot/bin/$i ${RPM_BUILD_ROOT}%{_bindir}/$i
    80 #done
    8164
    8265gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/gzip.info*
     
    8568rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
    8669# uncompress is a part of ncompress package
    87 rm -f ${RPM_BUILD_ROOT}/bin/uncompress
     70rm -f ${RPM_BUILD_ROOT}%{_bindir}/uncompress
    8871
    8972%clean
    9073rm -rf ${RPM_BUILD_ROOT}
    9174
     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
    9287%files
    9388%defattr(-,root,root)
    9489%doc NEWS README AUTHORS ChangeLog THANKS TODO
     90%{!?_licensedir:%global license %%doc}
     91%license COPYING
    9592%{_bindir}/*
     93%exclude %{_bindir}/*.dbg
    9694%{_mandir}/*/*
    9795%{_infodir}/gzip.info*
    9896
    9997%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
    100102* Thu Feb 02 2012 yd
    101103- Remove symlinks from /bin.
Note: See TracChangeset for help on using the changeset viewer.