michael@267: ## michael@267: ## m4.spec -- OpenPKG RPM Package Specification michael@267: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@267: ## michael@267: ## Permission to use, copy, modify, and distribute this software for michael@267: ## any purpose with or without fee is hereby granted, provided that michael@267: ## the above copyright notice and this permission notice appear in all michael@267: ## copies. michael@267: ## michael@267: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@267: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@267: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@267: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@267: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@267: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@267: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@267: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@267: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@267: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@267: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@267: ## SUCH DAMAGE. michael@267: ## michael@267: michael@267: # package information michael@267: Name: m4 michael@267: Summary: Macro Processing Language michael@267: URL: http://www.gnu.org/software/m4/ michael@267: Vendor: Rene Seindal et al. michael@267: Packager: OpenPKG Foundation e.V. michael@267: Distribution: OpenPKG Community michael@267: Class: CORE michael@267: Group: MacroProcessor michael@267: License: GPL michael@267: Version: 1.4.15 michael@268: Release: 20101018 michael@267: michael@267: # list of sources michael@267: Source0: ftp://ftp.gnu.org/gnu/m4/m4-%{version}.tar.gz michael@267: michael@267: # build information michael@268: Prefix: %{l_prefix} michael@268: BuildRoot: %{l_buildroot} michael@267: BuildPreReq: OpenPKG, openpkg >= 20100101, make michael@267: PreReq: OpenPKG, openpkg >= 20100101 michael@267: michael@267: %description michael@267: GNU m4 is an implementation of the traditional UNIX macro processor. michael@267: It is mostly SVR4 compatible, although it has some extensions (for michael@267: example, handling more than 9 positional parameters to macros). michael@267: m4 also has builtin functions for including files, running shell michael@267: commands, doing arithmetic, etc. michael@267: michael@267: %track michael@267: prog m4 = { michael@267: version = %{version} michael@267: url = ftp://ftp.gnu.org/gnu/m4/ michael@267: regex = m4-(__VER__)\.tar\.gz michael@267: } michael@267: michael@267: %prep michael@267: %setup -q michael@267: michael@267: %build michael@267: # configure package michael@267: CC="%{l_cc}" \ michael@267: CFLAGS="%{l_cflags -O}" \ michael@267: GREP="grep" \ michael@267: ./configure \ michael@267: --prefix=%{l_prefix} \ michael@267: --libdir=%{l_prefix}/lib/m4 \ michael@267: --datarootdir=%{l_prefix} michael@267: michael@267: # build package michael@267: %{l_make} %{l_mflags} michael@267: michael@267: %install michael@267: michael@267: # install package michael@267: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@267: michael@267: # provide alternative GNU names michael@267: ln $RPM_BUILD_ROOT%{l_prefix}/bin/m4 \ michael@267: $RPM_BUILD_ROOT%{l_prefix}/bin/gm4 michael@267: ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/m4.1 \ michael@267: $RPM_BUILD_ROOT%{l_prefix}/man/man1/gm4.1 michael@267: michael@267: # strip down installation michael@267: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@267: rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir michael@267: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/m4/charset.alias michael@267: rmdir $RPM_BUILD_ROOT%{l_prefix}/lib/m4 >/dev/null 2>&1 || true michael@267: michael@267: # determine installation files michael@267: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@267: michael@267: %files -f files michael@267: michael@267: %clean michael@268: rm -rf $RPM_BUILD_ROOT michael@267: