michael@610: ## michael@610: ## awk.spec -- OpenPKG RPM Package Specification michael@610: ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. michael@610: ## michael@610: ## Permission to use, copy, modify, and distribute this software for michael@610: ## any purpose with or without fee is hereby granted, provided that michael@610: ## the above copyright notice and this permission notice appear in all michael@610: ## copies. michael@610: ## michael@610: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@610: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@610: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@610: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@610: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@610: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@610: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@610: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@610: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@610: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@610: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@610: ## SUCH DAMAGE. michael@610: ## michael@610: michael@610: # package information michael@610: Name: awk michael@610: Summary: The One True Awk michael@610: URL: http://cm.bell-labs.com/who/bwk/ michael@610: Vendor: Brian W. Kernighan michael@610: Packager: OpenPKG Foundation e.V. michael@610: Distribution: OpenPKG Community michael@610: Class: BASE michael@610: Group: Language michael@610: License: BSD michael@610: Version: 20071023 michael@611: Release: 20120800 michael@610: michael@610: # list of sources michael@610: Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/awk/awk-%{version}.tar.gz michael@610: Patch0: awk.patch michael@610: michael@610: # build information michael@611: BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison michael@611: PreReq: OpenPKG, openpkg >= 20100101 michael@610: AutoReq: no michael@610: michael@610: %description michael@610: Awk is the one true implementation of the AWK programming language michael@610: from Brian W. Kernighan. michael@610: michael@610: %track michael@610: prog awk = { michael@610: version = %{version} michael@610: url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/awk/ michael@610: regex = awk-(__VER__)\.tar\.gz michael@610: } michael@610: michael@610: %prep michael@610: %setup -q -c michael@610: %patch -p0 michael@611: %{l_shtool} subst \ michael@611: -e 's;Cell[\ \t][\ \t]*\*getline;Cell \*awk_getline;' \ michael@611: proto.h \ michael@611: run.c michael@611: %{l_shtool} subst \ michael@611: -e 's;getline;awk_getline;g' \ michael@611: maketab.c michael@610: michael@610: %build michael@611: %{l_make} %{l_mflags -O} \ michael@610: YACC="bison -y" CC="%{l_cc}" CFLAGS="%{l_cflags -O}" michael@610: michael@610: %install michael@610: %{l_shtool} mkdir -f -p -m 755 \ michael@610: $RPM_BUILD_ROOT%{l_prefix}/bin \ michael@610: $RPM_BUILD_ROOT%{l_prefix}/man/man1 michael@610: %{l_shtool} install -c -s -m 755 \ michael@610: a.out $RPM_BUILD_ROOT%{l_prefix}/bin/awk michael@610: %{l_shtool} install -c -m 644 \ michael@610: awk.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ michael@610: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@610: michael@610: %files -f files michael@610: michael@610: %clean michael@610: