autogen.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## autogen.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless ECRC GmbH
  4. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: autogen
  26. Summary: Automated Text and Program Generation Tool
  27. URL: http://www.gnu.org/software/autogen/
  28. Vendor: Free Software Foundation
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EVAL]
  31. Group: Development
  32. License: GPL
  33. Version: 5.4.3
  34. Release: 20020922
  35. # list of sources
  36. Source0: http://belnet.dl.sourceforge.net/sourceforge/autogen/autogen-%{version}.tar.gz
  37. Patch0: autogen.patch
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206, guile, libtool, texinfo, make
  42. PreReq: OpenPKG, openpkg >= 20020206, guile
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. GNU AutoGen is a tool designed to simplify the creation and
  47. maintenance of programs that contain large amounts of repetitious
  48. text. It is especially valuable in programs that have several blocks
  49. of text that must be kept synchronized. A common example where this
  50. would be useful is in creating and maintaining the code required for
  51. processing program options. Processing options requires multiple
  52. constructs to be maintained in parallel in different places in your
  53. program. Options maintenance needs to be done countless times. So,
  54. AutoGen comes with an add-on package named AutoOpts that simplifies
  55. the maintenance and documentation of program options.
  56. %prep
  57. %setup -q
  58. %patch -p0
  59. case "%{l_target}" in
  60. *-freebsd* ) %{l_shtool} subst -e 's/regcomp=no/regcomp=yes/g' configure ;;
  61. esac
  62. %build
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --disable-shared
  68. %{l_make} %{l_mflags}
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. %{l_make} %{l_mflags} install \
  72. prefix=$RPM_BUILD_ROOT%{l_prefix} || true
  73. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  74. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/snprintfv.info
  75. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/autoopts-config
  76. rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
  77. rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
  78. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT