source: spec/trunk/SPECS/m4.spec@ 201

Last change on this file since 201 was 168, checked in by Yuri Dario, 14 years ago

spec: massive rebuild due to new rpm lx parser updates (see changeset:167).

File size: 1.8 KB
Line 
1Summary: The GNU macro processor
2Name: m4
3Version: 1.4.15
4Release: 3%{?dist}
5License: GPLv3+
6Group: Applications/Text
7Source: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz
8URL: http://www.gnu.org/software/m4/
9
10Patch0: m4-os2.diff
11
12Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13#Requires(post): /sbin/install-info
14#Requires(preun): /sbin/install-info
15
16%description
17A GNU implementation of the traditional UNIX macro processor. M4 is
18useful for writing text files which can be logically parsed, and is used
19by many programs as part of their build process. M4 has built-in
20functions for including files, running shell commands, doing arithmetic,
21etc. The autoconf program needs m4 for generating configure scripts, but
22not for running configure scripts.
23
24Install m4 if you need a macro processor.
25
26%prep
27%setup -q
28%patch0 -p1 -b .os2~
29#chmod 644 COPYING
30
31%build
32# YD do not use -Zbin-files
33export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
34export LIBS="-lintl -lurpo"
35export CONFIG_SHELL="/bin/sh"
36%configure \
37 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
38
39make %{?_smp_mflags}
40
41%install
42rm -rf $RPM_BUILD_ROOT
43make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
44rm -f $RPM_BUILD_ROOT%{_infodir}/dir
45rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
46
47
48#%check
49#make %{?_smp_mflags} check
50
51%files
52%defattr(-,root,root,-)
53%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
54%{_bindir}/m4.exe
55%{_infodir}/*
56%{_mandir}/man1/m4.1*
57
58#%post
59#if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
60# /sbin/install-info %{_infodir}/m4.info %{_infodir}/dir || :
61#fi
62
63#%preun
64#if [ "$1" = 0 ]; then
65# if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
66# /sbin/install-info --delete %{_infodir}/m4.info %{_infodir}/dir || :
67# fi
68#fi
69
70%clean
71rm -rf $RPM_BUILD_ROOT
72
73%changelog
Note: See TracBrowser for help on using the repository browser.