Sun, 04 Jan 2009 08:39:40 +0100
Import package spec, adding ACX_PTHREAD macro to default M4 macro set.
autoconf/autoconf.patch | file | annotate | diff | comparison | revisions | |
autoconf/autoconf.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/autoconf/autoconf.patch Sun Jan 04 08:39:40 2009 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +Index: autoconf-2.13/acgeneral.m4 1.5 +diff -Nau autoconf-2.13/acgeneral.m4.orig autoconf-2.13/acgeneral.m4 1.6 +--- autoconf-2.13/acgeneral.m4.orig Tue Jan 5 14:27:37 1999 1.7 ++++ autoconf-2.13/acgeneral.m4 Thu Mar 2 12:04:32 2000 1.8 +@@ -868,6 +868,10 @@ 1.9 + ac_aux_dir=$ac_dir 1.10 + ac_install_sh="$ac_aux_dir/install.sh -c" 1.11 + break 1.12 ++ elif test -f $ac_dir/shtool; then 1.13 ++ ac_aux_dir=$ac_dir 1.14 ++ ac_install_sh="$ac_aux_dir/shtool install -c" 1.15 ++ break 1.16 + fi 1.17 + done 1.18 + if test -z "$ac_aux_dir"; then
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/autoconf/autoconf.spec Sun Jan 04 08:39:40 2009 +0100 2.3 @@ -0,0 +1,212 @@ 2.4 +## 2.5 +## autoconf.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# version numbers 2.28 +%define V_latest 2.63 2.29 +%define V_latest_comp 263 2.30 +%define V_older 2.59 2.31 +%define V_older_comp 259 2.32 +%define V_ancient 2.13 2.33 +%define V_ancient_comp 213 2.34 +%define V_acx_macros 2008-11-07 2.35 + 2.36 +# package information 2.37 +Name: autoconf 2.38 +Summary: GNU Source Autoconfiguration 2.39 +URL: http://www.gnu.org/software/autoconf/ 2.40 +Vendor: Free Software Foundation 2.41 +Packager: OpenPKG Foundation e.V. 2.42 +Distribution: OpenPKG Community 2.43 +Class: CORE 2.44 +Group: Building 2.45 +License: GPL 2.46 +Version: %{V_latest} 2.47 +Release: 20081205 2.48 + 2.49 +# build options 2.50 +%option with_acx_macros yes 2.51 + 2.52 +# list of sources 2.53 +Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_latest}.tar.gz 2.54 +Source1: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_older}.tar.gz 2.55 +Source2: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_ancient}.tar.gz 2.56 +Source3: http://autoconf-archive.cryp.to/autoconf-archive-%{V_acx_macros}.tar.bz2 2.57 +Patch0: autoconf.patch 2.58 + 2.59 +# build information 2.60 +Prefix: %{l_prefix} 2.61 +BuildRoot: %{l_buildroot} 2.62 +BuildPreReq: OpenPKG, openpkg >= 20040130, m4 >= 1.4, perl, make 2.63 +PreReq: OpenPKG, openpkg >= 20040130, m4 >= 1.4, perl 2.64 +AutoReq: no 2.65 +AutoReqProv: no 2.66 + 2.67 +%description 2.68 + Autoconf is an extensible package of m4 macros that produce shell 2.69 + scripts to automatically configure software source code packages. 2.70 + These scripts can adapt the packages to many kinds of UNIX-like 2.71 + systems without manual user intervention. Autoconf creates a 2.72 + configuration script for a package from a template file that lists 2.73 + the operating system features that the package can use, in the form 2.74 + of m4 macro calls. 2.75 + 2.76 + This OpenPKG packages provides the following Autoconf versions: 2.77 + - GNU Autoconf %{V_latest} (latest version, the default) 2.78 + - GNU Autoconf %{V_older} (older version, as an alternative) 2.79 + - GNU Autoconf %{V_ancient} (ancient version, for backward-compatibility) 2.80 + 2.81 +%track 2.82 + prog autoconf = { 2.83 + version = %{version} 2.84 + url = ftp://ftp.gnu.org/gnu/autoconf/ 2.85 + regex = autoconf-(__VER__)\.tar\.gz 2.86 + } 2.87 + 2.88 +%prep 2.89 + %setup -q -c -n autoconf-%{V_latest} 2.90 + %setup -q -T -D -a 1 2.91 + %setup -q -T -D -a 2 2.92 + %patch -p0 2.93 +%if "%{with_acx_macros}" == "yes" 2.94 + %setup -q -T -D -a 3 2.95 + cp \ 2.96 + autoconf-archive-%{V_acx_macros}/m4/acx_pthread.m4 \ 2.97 + autoconf-%{V_latest}/lib/autoconf/ 2.98 + ( cd autoconf-%{V_latest}/lib/autoconf 2.99 + cp autoconf.m4 autoconf.m4.tmp 2.100 + cat autoconf.m4.tmp | %{l_sed} -e '72a\ 2.101 +m4_include([autoconf/acx_pthread.m4])' >autoconf.m4 2.102 + rm autoconf.m4.tmp 2.103 + ) || exit $? 2.104 +%endif 2.105 + 2.106 +%build 2.107 + # configure and build Autoconf (deprecated version) 2.108 + ( cd autoconf-%{V_ancient} 2.109 + CC="%{l_cc}" \ 2.110 + CFLAGS="%{l_cflags -O}" \ 2.111 + ./configure \ 2.112 + --prefix=%{l_prefix} \ 2.113 + --program-suffix="-%{V_ancient_comp}" 2.114 + %{l_shtool} subst \ 2.115 + -e 's;\(acdatadir = $(datadir)/autoconf\);\1/%{V_ancient_comp};' \ 2.116 + Makefile 2.117 + %{l_make} %{l_mflags} 2.118 + ) || exit $? 2.119 + 2.120 + # configure and build Autoconf (older version) 2.121 + ( cd autoconf-%{V_older} 2.122 + %{l_shtool} subst \ 2.123 + -e 's;^\(PACKAGE_STRING=.GNU Autoconf [0-9.]*\)\(.\);\1 (%{l_openpkg_release})\2;g' \ 2.124 + configure 2.125 + %{l_shtool} subst \ 2.126 + -e 's;^\(pkgdatadir.=..(datadir)\)/@PACKAGE@;\1;' \ 2.127 + Makefile.in */Makefile.in */*/Makefile.in 2.128 + CC="%{l_cc}" \ 2.129 + CFLAGS="%{l_cflags -O}" \ 2.130 + ACLOCAL=true \ 2.131 + AUTOMAKE=true \ 2.132 + AUTOCONF=true \ 2.133 + AUTOHEADER=true \ 2.134 + MAKEINFO=true \ 2.135 + GREP=grep \ 2.136 + ./configure \ 2.137 + --prefix=%{l_prefix} \ 2.138 + --datadir=%{l_prefix}/share/autoconf/%{V_older_comp} \ 2.139 + --program-suffix="-%{V_older_comp}" 2.140 + %{l_make} %{l_mflags} 2.141 + ) || exit $? 2.142 + 2.143 + # configure and build Autoconf (current version) 2.144 + ( cd autoconf-%{V_latest} 2.145 + %{l_shtool} subst \ 2.146 + -e 's;^\(PACKAGE_STRING=.GNU Autoconf [0-9.]*\)\(.\);\1 (%{l_openpkg_release})\2;g' \ 2.147 + configure 2.148 + %{l_shtool} subst \ 2.149 + -e 's;^\(pkgdatadir.=..(datadir)\)/@PACKAGE@;\1;' \ 2.150 + Makefile.in */Makefile.in */*/Makefile.in 2.151 + CC="%{l_cc}" \ 2.152 + CFLAGS="%{l_cflags -O}" \ 2.153 + ACLOCAL=true \ 2.154 + AUTOMAKE=true \ 2.155 + AUTOCONF=true \ 2.156 + AUTOHEADER=true \ 2.157 + MAKEINFO=true \ 2.158 + GREP=grep \ 2.159 + ./configure \ 2.160 + --prefix=%{l_prefix} \ 2.161 + --mandir=%{l_prefix}/man \ 2.162 + --datadir=%{l_prefix}/share/autoconf/%{V_latest_comp} \ 2.163 + --infodir=%{l_prefix}/info 2.164 + %{l_make} %{l_mflags} 2.165 + ) || exit $? 2.166 + 2.167 +%install 2.168 + rm -rf $RPM_BUILD_ROOT 2.169 + 2.170 + # configure and build Autoconf (deprecated version) 2.171 + ( cd autoconf-%{V_ancient} 2.172 + %{l_make} %{l_mflags} install \ 2.173 + prefix=$RPM_BUILD_ROOT%{l_prefix} 2.174 + mv $RPM_BUILD_ROOT%{l_prefix}/info/autoconf.info \ 2.175 + $RPM_BUILD_ROOT%{l_prefix}/info/autoconf-%{V_ancient_comp}.info 2.176 + ) || exit $? 2.177 + 2.178 + # configure and build Autoconf (older version) 2.179 + ( cd autoconf-%{V_older} 2.180 + %{l_make} %{l_mflags} install \ 2.181 + prefix=$RPM_BUILD_ROOT%{l_prefix} \ 2.182 + datadir=$RPM_BUILD_ROOT%{l_prefix}/share/autoconf/%{V_older_comp} \ 2.183 + mandir=$RPM_BUILD_ROOT%{l_prefix}/man \ 2.184 + infodir=$RPM_BUILD_ROOT%{l_prefix}/info 2.185 + mv $RPM_BUILD_ROOT%{l_prefix}/info/autoconf.info \ 2.186 + $RPM_BUILD_ROOT%{l_prefix}/info/autoconf-%{V_older_comp}.info 2.187 + ) || exit $? 2.188 + 2.189 + # configure and build Autoconf (current version) 2.190 + ( cd autoconf-%{V_latest} 2.191 + %{l_make} %{l_mflags} install \ 2.192 + prefix=$RPM_BUILD_ROOT%{l_prefix} \ 2.193 + datadir=$RPM_BUILD_ROOT%{l_prefix}/share/autoconf/%{V_latest_comp} \ 2.194 + mandir=$RPM_BUILD_ROOT%{l_prefix}/man \ 2.195 + infodir=$RPM_BUILD_ROOT%{l_prefix}/info 2.196 + ) || exit $? 2.197 + 2.198 +%if "%{with_acx_macros}" == "yes" 2.199 + cp \ 2.200 + autoconf-archive-%{V_acx_macros}/m4/acx_pthread.m4 \ 2.201 + $RPM_BUILD_ROOT%{l_prefix}/share/autoconf/ 2.202 +%endif 2.203 + 2.204 + # strip down installation 2.205 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/xemacs 2.206 + rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir 2.207 + 2.208 + # determine installation files 2.209 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 2.210 + 2.211 +%files -f files 2.212 + 2.213 +%clean 2.214 + rm -rf $RPM_BUILD_ROOT 2.215 +