michael@241: ## michael@241: ## gzip.spec -- OpenPKG RPM Package Specification michael@241: ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. michael@241: ## michael@241: ## Permission to use, copy, modify, and distribute this software for michael@241: ## any purpose with or without fee is hereby granted, provided that michael@241: ## the above copyright notice and this permission notice appear in all michael@241: ## copies. michael@241: ## michael@241: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@241: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@241: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@241: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@241: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@241: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@241: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@241: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@241: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@241: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@241: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@241: ## SUCH DAMAGE. michael@241: ## michael@241: michael@241: # package information michael@241: Name: gzip michael@241: Summary: De-/Compression with GZIP Algorithm michael@241: URL: http://www.gzip.org/ michael@241: Vendor: Jean-loup Gailly, Mark Adler michael@241: Packager: OpenPKG Foundation e.V. michael@241: Distribution: OpenPKG Community michael@241: Class: CORE michael@241: Group: Compression michael@241: License: GPL michael@241: Version: 1.3.13 michael@242: Release: 20091110 michael@241: michael@241: # list of sources michael@241: Source0: ftp://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.gz michael@241: Patch0: gzip.patch michael@241: michael@241: # build information michael@241: Prefix: %{l_prefix} michael@241: BuildRoot: %{l_buildroot} michael@241: BuildPreReq: OpenPKG, openpkg >= 20040130 michael@241: PreReq: OpenPKG, openpkg >= 20040130 michael@241: AutoReq: no michael@241: AutoReqProv: no michael@241: michael@241: %description michael@241: GNU zip (gzip) is a compression utility designed to be a replacement michael@241: for the traditional Unix utility compress(1). Its main advantages michael@241: over compress(1) are much better compression and freedom from michael@241: patented algorithms. gzip produces files with a .gz extension. michael@241: gunzip can decompress files created by gzip, compress and pack. The michael@241: detection of the input format is automatic. The format of the .gz michael@241: files generated by gzip is described in RFCs (Request For Comments) michael@241: 1951 and 1952. michael@241: michael@241: %track michael@241: prog gzip = { michael@241: version = %{version} michael@241: url = ftp://ftp.gnu.org/gnu/gzip/ michael@241: regex = gzip-(__VER__)\.tar(\.gz)? michael@241: } michael@241: michael@241: %prep michael@241: %setup -q michael@241: %patch -p0 michael@241: michael@241: %build michael@241: # configure package michael@241: echo "ac_cv_path_shell=%{l_bash}" >config.cache michael@241: CC="%{l_cc}" \ michael@241: CFLAGS="%{l_cflags -O}" \ michael@241: GREP="grep" \ michael@241: ./configure \ michael@241: --cache-file=./config.cache \ michael@241: --prefix=%{l_prefix} \ michael@241: --datarootdir=%{l_prefix} michael@241: michael@241: # build package michael@241: %{l_make} %{l_mflags -O} michael@241: michael@241: %install michael@241: rm -rf $RPM_BUILD_ROOT michael@241: michael@241: # install package michael@241: %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" michael@241: michael@241: # strip down installation michael@241: rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir michael@241: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true michael@241: michael@241: # determine installation files michael@241: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@241: michael@241: %files -f files michael@241: michael@241: %clean michael@241: rm -rf $RPM_BUILD_ROOT michael@241: