perl-parse.spec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## perl-parse.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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. # versions of individual parts
  26. %define V_config_inifiles 2.36
  27. %define V_config_general 2.15
  28. %define V_config_simple 3.9
  29. %define V_parse_recdescent 1.80
  30. %define V_parse_lex 2.15
  31. # package information
  32. Name: perl-parse
  33. Summary: Perl Modules for use with parsing algorythms
  34. URL: http://www.cpan.org/
  35. Vendor: Perl Community
  36. Packager: The OpenPKG Project
  37. Distribution: OpenPKG [BASE]
  38. Group: Language
  39. License: GPL/Artistic
  40. Version: 20021218
  41. Release: 20021218
  42. # list of sources
  43. Source0: http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz
  44. Source1: http://www.cpan.org/modules/by-module/Config/Config-General-%{V_config_general}.tar.gz
  45. Source2: http://www.cpan.org/modules/by-module/Config/Config-Simple-%{V_config_simple}.tar.gz
  46. Source3: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-%{V_parse_recdescent}.tar.gz
  47. Source4: http://www.cpan.org/modules/by-module/Parse/ParseLex-%{V_parse_lex}.tar.gz
  48. # build information
  49. Prefix: %{l_prefix}
  50. BuildRoot: %{l_buildroot}
  51. BuildPreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0
  52. PreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0
  53. AutoReq: no
  54. AutoReqProv: no
  55. %description
  56. Perl modules for use with parsing algorythms:
  57. - Config::IniFiles (%{V_config_inifiles})
  58. - Config::General (%{V_config_general})
  59. - Parse::RecDescent (%{V_parse_recdescent})
  60. - Parse::Nibbler (%{V_parse_nibbler})
  61. %prep
  62. %setup0 -q -c
  63. %setup1 -q -T -D -a 1
  64. %setup2 -q -T -D -a 2
  65. %setup3 -q -T -D -a 3
  66. %setup4 -q -T -D -a 4
  67. %build
  68. %install
  69. # perform common prolog operations
  70. %{l_prefix}/bin/perl-openpkg prolog
  71. # build and install individual modules
  72. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  73. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  74. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  75. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  76. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  77. # perform common epilog operations
  78. %{l_prefix}/bin/perl-openpkg epilog
  79. %files -f files
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT