autoconf.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. ##
  2. ## autoconf.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # version numbers
  26. %define V_latest 2.59
  27. %define V_old 2.13
  28. # package information
  29. Name: autoconf
  30. Summary: GNU Source Autoconfiguration
  31. URL: http://www.gnu.org/software/autoconf/
  32. Vendor: Free Software Foundation
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG
  35. Class: CORE
  36. Group: Development
  37. License: GPL
  38. Version: %{V_latest}
  39. Release: 20040205
  40. # list of sources
  41. Source1: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_latest}.tar.gz
  42. Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_old}.tar.gz
  43. Patch0: autoconf.patch
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20040130, m4, perl, make
  48. PreReq: OpenPKG, openpkg >= 20040130, m4, perl
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Autoconf is an extensible package of m4 macros that produce shell
  53. scripts to automatically configure software source code packages.
  54. These scripts can adapt the packages to many kinds of UNIX-like
  55. systems without manual user intervention. Autoconf creates a
  56. configuration script for a package from a template file that lists
  57. the operating system features that the package can use, in the form
  58. of m4 macro calls.
  59. %track
  60. prog autoconf = {
  61. version = 2.59
  62. url = ftp://ftp.gnu.org/gnu/autoconf/
  63. regex = autoconf-(__VER__)\.tar\.gz
  64. }
  65. %prep
  66. %setup -q -c -n autoconf-%{V_latest}
  67. %setup -q -T -D -a 1
  68. %patch -p0
  69. %build
  70. # configure and build Autoconf (deprecated version)
  71. ( cd autoconf-%{V_old}
  72. CC="%{l_cc}" \
  73. CFLAGS="%{l_cflags -O}" \
  74. ./configure \
  75. --prefix=%{l_prefix} \
  76. --program-suffix=-old
  77. %{l_shtool} subst \
  78. -e 's;\(acdatadir = $(datadir)/autoconf\);\1/old;' \
  79. Makefile
  80. %{l_make} %{l_mflags}
  81. ) || exit $?
  82. # configure and build Autoconf (current version)
  83. ( cd autoconf-%{V_latest}
  84. %{l_shtool} subst \
  85. -e 's;^\(PACKAGE_STRING=.GNU Autoconf [0-9.]*\)\(.\);\1 (%{l_openpkg_release})\2;g' \
  86. configure
  87. CC="%{l_cc}" \
  88. CFLAGS="%{l_cflags -O}" \
  89. ACLOCAL=true \
  90. AUTOMAKE=true \
  91. AUTOCONF=true \
  92. AUTOHEADER=true \
  93. MAKEINFO=true \
  94. ./configure \
  95. --prefix=%{l_prefix}
  96. %{l_make} %{l_mflags}
  97. ) || exit $?
  98. %install
  99. rm -rf $RPM_BUILD_ROOT
  100. # configure and build Autoconf (deprecated version)
  101. ( cd autoconf-%{V_old}
  102. %{l_make} %{l_mflags} install \
  103. prefix=$RPM_BUILD_ROOT%{l_prefix}
  104. mv $RPM_BUILD_ROOT%{l_prefix}/info/autoconf.info \
  105. $RPM_BUILD_ROOT%{l_prefix}/info/autoconf-old.info
  106. ) || exit $?
  107. # configure and build Autoconf (current version)
  108. ( cd autoconf-%{V_latest}
  109. %{l_make} %{l_mflags} install \
  110. prefix=$RPM_BUILD_ROOT%{l_prefix}
  111. ) || exit $?
  112. # strip down installation
  113. rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/xemacs
  114. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  115. # determine installation files
  116. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  117. %files -f files
  118. %clean
  119. rm -rf $RPM_BUILD_ROOT