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

Last change on this file since 1330 was 453, checked in by Yuri Dario, 11 years ago

spec: m4, added debug package with symbolic info for exceptq.

File size: 3.3 KB
Line 
1Summary: The GNU macro processor
2Name: m4
3Version: 1.4.17
4Release: 3%{?dist}
5License: GPLv3+
6Group: Applications/Text
7#Source: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz
8URL: http://www.gnu.org/software/m4/
9
10%define svn_url http://svn.netlabs.org/repos/ports/m4/trunk
11%define svn_rev 841
12
13Source: %{name}-%{version}-r%{svn_rev}.zip
14
15BuildRequires: gcc make subversion zip
16
17BuildRequires: automake
18#BuildRequires: makeinfo html2man
19
20Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
21#Requires(post): /sbin/install-info
22#Requires(preun): /sbin/install-info
23
24%description
25A GNU implementation of the traditional UNIX macro processor. M4 is
26useful for writing text files which can be logically parsed, and is used
27by many programs as part of their build process. M4 has built-in
28functions for including files, running shell commands, doing arithmetic,
29etc. The autoconf program needs m4 for generating configure scripts, but
30not for running configure scripts.
31
32Install m4 if you need a macro processor.
33
34%package debug
35Summary: HLL debug data for exception handling support.
36
37%description debug
38HLL debug data for exception handling support.
39
40%prep
41%if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
42%setup -q
43%else
44%setup -n "%{name}-%{version}" -Tc
45svn export -r %{svn_rev} %{svn_url} . --force
46rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
47(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
48%endif
49
50#chmod 644 COPYING
51
52%build
53
54export CFLAGS="$RPM_OPT_FLAGS"
55# YD do not use -Zbin-files
56export LDFLAGS="-Zomf -Zhigh-mem -Zargs-wild -Zargs-resp"
57export LIBS="-lurpo -lintl"
58
59#export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
60#export MAKESHELL="/@unixroot/usr/bin/sh.exe"
61
62# We can't bootstrap at the moment as it requires gnulib-tool located in a separate repo;
63# call autoreconf directly instead
64#./bootstrap -f
65
66# make sure configure is updated to properly support OS/2
67autoreconf --verbose --install
68
69# we don't have makeinfo/help2man yet; fake them (this will wipe docs out)
70export MAKEINFO=:
71export HELP2MAN=:
72
73%configure
74
75make %{?_smp_mflags}
76
77%install
78rm -rf $RPM_BUILD_ROOT
79make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
80rm -f $RPM_BUILD_ROOT%{_infodir}/dir
81rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
82
83#%check
84#make %{?_smp_mflags} check
85
86%files
87%defattr(-,root,root,-)
88%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
89%{_bindir}/m4.exe
90#%{_infodir}/*
91%{_mandir}/man1/m4.1*
92
93%files debug
94%defattr(-,root,root)
95%{_bindir}/*.dbg
96
97#%post
98#if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
99# /sbin/install-info %{_infodir}/m4.info %{_infodir}/dir || :
100#fi
101
102#%preun
103#if [ "$1" = 0 ]; then
104# if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
105# /sbin/install-info --delete %{_infodir}/m4.info %{_infodir}/dir || :
106# fi
107#fi
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%changelog
113* Wed Sep 03 2014 yd
114- added debug package with symbolic info for exceptq.
115
116* Wed Sep 3 2014 Dmitriy Kuminov <coding@dmik.org> 1.4.17-2
117- Rebuild with autoconf 2.69-2.
118
119* Fri Aug 29 2014 Dmitriy Kuminov <coding@dmik.org> 1.4.17-1
120- Updated to version 1.4.17.
121- Rebuilt with LIBC 0.6.5 and GCC 4.7.3 in attempt to fix some problems (see #28).
122
123* Fri Jan 06 2012 yd
124- update trunk to 1.4.16
Note: See TracBrowser for help on using the repository browser.