autoconf.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##
  2. ## autoconf.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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.57
  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 [CORE]
  35. Group: Development
  36. License: GPL
  37. Version: %{V_latest}
  38. Release: 20021204
  39. # list of sources
  40. Source1: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_latest}.tar.gz
  41. Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{V_old}.tar.gz
  42. Patch0: autoconf-%{V_old}.patch
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20020206, m4, perl, make
  47. PreReq: OpenPKG, openpkg >= 20020206, m4, perl
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. Autoconf is an extensible package of m4 macros that produce
  52. shell scripts to automatically configure software source code
  53. packages. These scripts can adapt the packages to many kinds of
  54. UNIX-like systems without manual user intervention. Autoconf
  55. creates a configuration script for a package from a template
  56. file that lists the operating system features that the package
  57. can use, in the form of m4 macro calls.
  58. %prep
  59. %setup0 -q -c -n autoconf-%{V_latest}
  60. %setup1 -q -T -D -a 1
  61. cd autoconf-%{V_old}
  62. %{l_patch} -p0 <%{SOURCE autoconf-%{V_old}.patch}
  63. %build
  64. ( cd autoconf-%{V_old}
  65. CC="%{l_cc}" \
  66. CFLAGS="%{l_cflags -O}" \
  67. ./configure \
  68. --prefix=%{l_prefix} \
  69. --program-suffix=-old
  70. %{l_shtool} subst \
  71. -e 's;\(acdatadir = $(datadir)/autoconf\);\1/old;' \
  72. Makefile
  73. %{l_make} %{l_mflags}
  74. )
  75. ( cd autoconf-%{V_latest}
  76. CC="%{l_cc}" \
  77. CFLAGS="%{l_cflags -O}" \
  78. ./configure \
  79. --prefix=%{l_prefix}
  80. %{l_make} %{l_mflags}
  81. )
  82. %install
  83. rm -rf $RPM_BUILD_ROOT
  84. ( cd autoconf-%{V_old}
  85. %{l_make} %{l_mflags} install \
  86. prefix=$RPM_BUILD_ROOT%{l_prefix}
  87. mv $RPM_BUILD_ROOT%{l_prefix}/info/autoconf.info \
  88. $RPM_BUILD_ROOT%{l_prefix}/info/autoconf-old.info
  89. )
  90. ( cd autoconf-%{V_latest}
  91. %{l_make} %{l_mflags} install \
  92. prefix=$RPM_BUILD_ROOT%{l_prefix}
  93. )
  94. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  95. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  96. %files -f files
  97. %clean
  98. rm -rf $RPM_BUILD_ROOT