perl-regex.spec 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. ##
  2. ## perl-regex.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://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. # versions of individual parts
  25. %define V_perl 5.10.0
  26. %define V_re_engine_plugin 0.04_01
  27. %define V_re_engine_posix 0.04
  28. %define V_re_engine_pcre 0.15
  29. %define V_re_engine_tre 0.01
  30. %define V_regexp_bind 0.05
  31. %define V_regexp_common 2.120
  32. %define V_regexp_copy 0.06
  33. %define V_regexp_extended 0.01
  34. %define V_regexp_keep 0.02
  35. %define V_regexp_parser 0.20
  36. %define V_regexp_shellish 0.93
  37. %define V_regexp_assemble 0.32
  38. %define V_regexp_wildcards 0.07
  39. # package information
  40. Name: perl-regex
  41. Summary: Perl Modules for Regular Expression Management
  42. URL: http://www.cpan.org/
  43. Vendor: Perl Community
  44. Packager: OpenPKG Foundation e.V.
  45. Distribution: OpenPKG Community
  46. Class: BASE
  47. Group: Perl
  48. License: GPL/Artistic
  49. Version: %{V_perl}
  50. Release: 20071219
  51. # package options
  52. %option with_posix no
  53. %option with_pcre no
  54. %option with_tre no
  55. # list of sources
  56. Source0: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-POSIX-%{V_re_engine_posix}.tar.gz
  57. Source1: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-PCRE-%{V_re_engine_pcre}.tar.gz
  58. Source2: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-TRE-%{V_re_engine_tre}.tar.gz
  59. Source3: http://www.cpan.org/modules/by-module/Regexp/Regexp-Bind-%{V_regexp_bind}.tar.gz
  60. Source4: http://www.cpan.org/modules/by-module/Regexp/Regexp-Common-%{V_regexp_common}.tar.gz
  61. Source5: http://www.cpan.org/modules/by-module/Regexp/Regexp-Copy-%{V_regexp_copy}.tar.gz
  62. Source6: http://www.cpan.org/modules/by-module/Regexp/Regexp-Extended-%{V_regexp_extended}.tar.gz
  63. Source7: http://www.cpan.org/modules/by-module/Regexp/Regexp-Keep-%{V_regexp_keep}.tar.gz
  64. Source8: http://www.cpan.org/modules/by-module/Regexp/Regexp-Parser-%{V_regexp_parser}.tar.gz
  65. Source9: http://www.cpan.org/modules/by-module/Regexp/Regexp-Shellish-%{V_regexp_shellish}.tar.gz
  66. Source10: http://www.cpan.org/modules/by-module/Regexp/Regexp-Assemble-%{V_regexp_assemble}.tar.gz
  67. Source11: http://www.cpan.org/modules/by-module/Regexp/Regexp-Wildcards-%{V_regexp_wildcards}.tar.gz
  68. Patch0: perl-regex.patch
  69. # build information
  70. Prefix: %{l_prefix}
  71. BuildRoot: %{l_buildroot}
  72. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  73. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  74. BuildPreReq: perl-module
  75. PreReq: perl-module
  76. %if "%{with_pcre}" == "yes"
  77. BuildPreReq: pcre
  78. PreReq: pcre
  79. %endif
  80. %if "%{with_tre}" == "yes"
  81. BuildPreReq: tre, pkgconfig
  82. PreReq: tre, pkgconfig
  83. %endif
  84. AutoReq: no
  85. AutoReqProv: no
  86. %description
  87. Perl modules for regular expression management:
  88. - re::engine::POSIX (%{V_re_engine_posix}) [with_posix=yes]
  89. - re::engine::PCRE (%{V_re_engine_pcre}) [with_pcre=yes]
  90. - re::engine::TRE (%{V_re_engine_tre}) [with_tre=yes]
  91. - Regexp::Bind (%{V_regexp_bind})
  92. - Regexp::Common (%{V_regexp_common})
  93. - Regexp::Copy (%{V_regexp_copy})
  94. - Regexp::Extended (%{V_regexp_extended})
  95. - Regexp::Keep (%{V_regexp_keep})
  96. - Regexp::Parser (%{V_regexp_parser})
  97. - Regexp::Shellish (%{V_regexp_shellish})
  98. - Regexp::Assemble (%{V_regexp_assemble})
  99. - Regexp::Wildcards (%{V_regexp_wildcards})
  100. %track
  101. prog perl-util:re-engine-POSIX = {
  102. version = %{V_re_engine_posix}
  103. url = http://www.cpan.org/authors/id/A/AV/AVAR/
  104. regex = re-engine-POSIX-(__VER__)\.tar\.gz
  105. }
  106. prog perl-util:re-engine-PCRE = {
  107. version = %{V_re_engine_pcre}
  108. url = http://www.cpan.org/authors/id/A/AV/AVAR/
  109. regex = re-engine-PCRE-(__VER__)\.tar\.gz
  110. }
  111. prog perl-util:re-engine-TRE = {
  112. version = %{V_re_engine_tre}
  113. url = http://www.cpan.org/authors/id/A/AV/AVAR/
  114. regex = re-engine-TRE-(__VER__)\.tar\.gz
  115. }
  116. prog perl-util:Regexp-Bind = {
  117. version = %{V_regexp_bind}
  118. url = http://www.cpan.org/modules/by-module/Regexp/
  119. regex = Regexp-Bind-(__VER__)\.tar\.gz
  120. }
  121. prog perl-util:Regexp-Common = {
  122. version = %{V_regexp_common}
  123. url = http://www.cpan.org/modules/by-module/Regexp/
  124. regex = Regexp-Common-(__VER__)\.tar\.gz
  125. }
  126. prog perl-util:Regexp-Copy = {
  127. version = %{V_regexp_copy}
  128. url = http://www.cpan.org/modules/by-module/Regexp/
  129. regex = Regexp-Copy-(__VER__)\.tar\.gz
  130. }
  131. prog perl-util:Regexp-Extended = {
  132. version = %{V_regexp_extended}
  133. url = http://www.cpan.org/modules/by-module/Regexp/
  134. regex = Regexp-Extended-(__VER__)\.tar\.gz
  135. }
  136. prog perl-util:Regexp-Keep = {
  137. version = %{V_regexp_keep}
  138. url = http://www.cpan.org/modules/by-module/Regexp/
  139. regex = Regexp-Keep-(__VER__)\.tar\.gz
  140. }
  141. prog perl-util:Regexp-Parser = {
  142. version = %{V_regexp_parser}
  143. url = http://www.cpan.org/modules/by-module/Regexp/
  144. regex = Regexp-Parser-(__VER__)\.tar\.gz
  145. }
  146. prog perl-util:Regexp-Shellish = {
  147. version = %{V_regexp_shellish}
  148. url = http://www.cpan.org/modules/by-module/Regexp/
  149. regex = Regexp-Shellish-(__VER__)\.tar\.gz
  150. }
  151. prog perl-util:Regexp-Assemble = {
  152. version = %{V_regexp_assemble}
  153. url = http://www.cpan.org/modules/by-module/Regexp/
  154. regex = Regexp-Assemble-(__VER__)\.tar\.gz
  155. }
  156. prog perl-util:Regexp-Wildcards = {
  157. version = %{V_regexp_wildcards}
  158. url = http://www.cpan.org/modules/by-module/Regexp/
  159. regex = Regexp-Wildcards-(__VER__)\.tar\.gz
  160. }
  161. %prep
  162. %setup -q -c
  163. %setup -q -T -D -a 1
  164. %setup -q -T -D -a 2
  165. %setup -q -T -D -a 3
  166. %setup -q -T -D -a 4
  167. %setup -q -T -D -a 5
  168. %setup -q -T -D -a 6
  169. %setup -q -T -D -a 7
  170. %setup -q -T -D -a 8
  171. %setup -q -T -D -a 9
  172. %setup -q -T -D -a 10
  173. %setup -q -T -D -a 11
  174. %patch -p0
  175. %build
  176. %install
  177. rm -rf $RPM_BUILD_ROOT
  178. %{l_prefix}/bin/perl-openpkg prepare
  179. %if "%{with_posix}" == "yes"
  180. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  181. %endif
  182. %if "%{with_pcre}" == "yes"
  183. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  184. %endif
  185. %if "%{with_tre}" == "yes"
  186. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  187. %endif
  188. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  189. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  190. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  191. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  195. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  196. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  197. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  198. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  199. %files -f files
  200. %clean
  201. rm -rf $RPM_BUILD_ROOT