autogen.spec 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ##
  2. ## autogen.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless ECRC GmbH
  4. ## Copyright (c) 2000-2001 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 [EXP]
  31. Group: Development
  32. License: GPL
  33. Version: 5.2.10
  34. Release: %{l_branch}.0
  35. # list of sources
  36. Source0: http://download.sourceforge.net/AutoGen/autogen-%{version}.tar.gz
  37. # build information
  38. Prefix: %{l_prefix}
  39. BuildRoot: %{l_buildroot}
  40. BuildPreReq: OpenPKG, openpkg >= 0.9-33, guile, texinfo
  41. PreReq: OpenPKG, openpkg >= 0.9-33, guile
  42. AutoReq: no
  43. AutoReqProv: no
  44. %description
  45. GNU AutoGen is a tool designed to simplify the creation and
  46. maintenance of programs that contain large amounts of repetitious
  47. text. It is especially valuable in programs that have several blocks
  48. of text that must be kept synchronized. A common example where this
  49. would be useful is in creating and maintaining the code required for
  50. processing program options. Processing options requires multiple
  51. constructs to be maintained in parallel in different places in your
  52. program. Options maintenance needs to be done countless times. So,
  53. AutoGen comes with an add-on package named AutoOpts that simplifies
  54. the maintenance and documentation of program options.
  55. %prep
  56. %setup -q
  57. %build
  58. PATH="%{l_prefix}/bin:$PATH"; export PATH
  59. CC="%{l_cc}" \
  60. CFLAGS="%{l_cflags -O}" \
  61. ./configure \
  62. --prefix=%{l_prefix}
  63. %{l_make} %{l_mflags}
  64. %install
  65. rm -rf $RPM_BUILD_ROOT
  66. PATH="%{l_prefix}/bin:$PATH"; export PATH
  67. %{l_make} %{l_mflags} install \
  68. prefix=$RPM_BUILD_ROOT%{l_prefix}
  69. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  70. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/snprintfv.info
  71. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/autoopts-config
  72. rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
  73. rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
  74. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT