autogen.spec 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 [REL]
  31. Group: Development
  32. License: GPL
  33. Version: 5.3.1
  34. Release: 20020206
  35. # list of sources
  36. Source0: http://prdownloads.sourceforge.net/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, 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. %build
  60. PATH="%{l_prefix}/bin:$PATH"; export PATH
  61. CC="%{l_cc}" \
  62. CFLAGS="%{l_cflags -O}" \
  63. ./configure \
  64. --prefix=%{l_prefix} \
  65. --disable-shared
  66. %{l_make} %{l_mflags}
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. PATH="%{l_prefix}/bin:$PATH"; export PATH
  70. %{l_make} %{l_mflags} install \
  71. prefix=$RPM_BUILD_ROOT%{l_prefix}
  72. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  73. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/snprintfv.info
  74. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/autoopts-config
  75. rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
  76. rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
  77. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  79. %files -f files
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT