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

Last change on this file since 150 was 150, checked in by Yuri Dario, 15 years ago

spec: add target cpu field in cache file.

File size: 1.8 KB
Line 
1Summary: The GNU macro processor
2Name: m4
3Version: 1.4.15
4Release: 2%{?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"
35%configure \
36 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
37
38make %{?_smp_mflags}
39
40%install
41rm -rf $RPM_BUILD_ROOT
42make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
43rm -f $RPM_BUILD_ROOT%{_infodir}/dir
44rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
45
46
47#%check
48#make %{?_smp_mflags} check
49
50%files
51%defattr(-,root,root,-)
52%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
53%{_bindir}/m4.exe
54%{_infodir}/*
55%{_mandir}/man1/m4.1*
56
57#%post
58#if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
59# /sbin/install-info %{_infodir}/m4.info %{_infodir}/dir || :
60#fi
61
62#%preun
63#if [ "$1" = 0 ]; then
64# if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
65# /sbin/install-info --delete %{_infodir}/m4.info %{_infodir}/dir || :
66# fi
67#fi
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%changelog
Note: See TracBrowser for help on using the repository browser.