m4.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ##
  2. ## m4.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: m4
  25. Summary: Macro Processing Language
  26. URL: http://www.gnu.org/software/m4/
  27. Vendor: Rene Seindal et al.
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: CORE
  31. Group: MacroProcessor
  32. License: GPL
  33. Version: 1.4.11
  34. Release: 20080403
  35. # list of sources
  36. Source0: ftp://ftp.gnu.org/gnu/m4/m4-%{version}.tar.gz
  37. # build information
  38. Prefix: %{l_prefix}
  39. BuildRoot: %{l_buildroot}
  40. BuildPreReq: OpenPKG, openpkg >= 20040130, make
  41. PreReq: OpenPKG, openpkg >= 20040130
  42. AutoReq: no
  43. AutoReqProv: no
  44. %description
  45. GNU m4 is an implementation of the traditional UNIX macro processor.
  46. It is mostly SVR4 compatible, although it has some extensions (for
  47. example, handling more than 9 positional parameters to macros).
  48. m4 also has builtin functions for including files, running shell
  49. commands, doing arithmetic, etc.
  50. %track
  51. prog m4 = {
  52. comment = "see commit log of revision 1.50, problems with m4 1.4.10 and autoconf"
  53. version = %{version}
  54. url = ftp://ftp.gnu.org/gnu/m4/
  55. regex = m4-(__VER__)\.tar\.gz
  56. }
  57. %prep
  58. %setup -q
  59. %build
  60. # configure package
  61. CC="%{l_cc}" \
  62. CFLAGS="%{l_cflags -O}" \
  63. GREP="grep" \
  64. ./configure \
  65. --prefix=%{l_prefix} \
  66. --libdir=%{l_prefix}/lib/m4 \
  67. --datarootdir=%{l_prefix} \
  68. --disable-nls
  69. # build package
  70. %{l_make} %{l_mflags}
  71. %install
  72. rm -rf $RPM_BUILD_ROOT
  73. # install package
  74. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  75. # provide alternative GNU names
  76. ln $RPM_BUILD_ROOT%{l_prefix}/bin/m4 \
  77. $RPM_BUILD_ROOT%{l_prefix}/bin/gm4
  78. ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/m4.1 \
  79. $RPM_BUILD_ROOT%{l_prefix}/man/man1/gm4.1
  80. # strip down installation
  81. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  82. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  83. # determine installation files
  84. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT