perl-regex.spec 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. ##
  2. ## perl-regex.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # versions of individual parts
  24. %define V_perl 5.10.0
  25. %define V_re_engine_plugin 0.04_01
  26. %define V_re_engine_posix 0.05
  27. %define V_re_engine_pcre 0.15
  28. %define V_re_engine_tre 0.04
  29. %define V_regexp_bind 0.05
  30. %define V_regexp_common 2.120
  31. %define V_regexp_copy 0.06
  32. %define V_regexp_extended 0.01
  33. %define V_regexp_keep 0.02
  34. %define V_regexp_parser 0.20
  35. %define V_regexp_shellish 0.93
  36. %define V_regexp_assemble 0.32
  37. %define V_regexp_wildcards 0.08
  38. %define V_regexp_compare 0.08
  39. %define V_regexp_english 1.00
  40. # package information
  41. Name: perl-regex
  42. Summary: Perl Modules for Regular Expression Management
  43. URL: http://www.cpan.org/
  44. Vendor: Perl Community
  45. Packager: OpenPKG Foundation e.V.
  46. Distribution: OpenPKG Community
  47. Class: BASE
  48. Group: Perl
  49. License: GPL/Artistic
  50. Version: %{V_perl}
  51. Release: 20080418
  52. # package options
  53. %option with_posix no
  54. %option with_pcre no
  55. %option with_tre no
  56. # list of sources
  57. Source0: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-POSIX-%{V_re_engine_posix}.tar.gz
  58. Source1: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-PCRE-%{V_re_engine_pcre}.tar.gz
  59. Source2: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-TRE-%{V_re_engine_tre}.tar.gz
  60. Source3: http://www.cpan.org/modules/by-module/Regexp/Regexp-Bind-%{V_regexp_bind}.tar.gz
  61. Source4: http://www.cpan.org/modules/by-module/Regexp/Regexp-Common-%{V_regexp_common}.tar.gz
  62. Source5: http://www.cpan.org/modules/by-module/Regexp/Regexp-Copy-%{V_regexp_copy}.tar.gz
  63. Source6: http://www.cpan.org/modules/by-module/Regexp/Regexp-Extended-%{V_regexp_extended}.tar.gz
  64. Source7: http://www.cpan.org/modules/by-module/Regexp/Regexp-Keep-%{V_regexp_keep}.tar.gz
  65. Source8: http://www.cpan.org/modules/by-module/Regexp/Regexp-Parser-%{V_regexp_parser}.tar.gz
  66. Source9: http://www.cpan.org/modules/by-module/Regexp/Regexp-Shellish-%{V_regexp_shellish}.tar.gz
  67. Source10: http://www.cpan.org/modules/by-module/Regexp/Regexp-Assemble-%{V_regexp_assemble}.tar.gz
  68. Source11: http://www.cpan.org/modules/by-module/Regexp/Regexp-Wildcards-%{V_regexp_wildcards}.tar.gz
  69. Source12: http://www.cpan.org/modules/by-module/Regexp/Regexp-Compare-%{V_regexp_compare}.tar.gz
  70. Source13: http://www.cpan.org/modules/by-module/Regexp/Regexp-English-%{V_regexp_english}.tar.gz
  71. Patch0: perl-regex.patch
  72. # build information
  73. Prefix: %{l_prefix}
  74. BuildRoot: %{l_buildroot}
  75. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  76. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  77. BuildPreReq: perl-module
  78. PreReq: perl-module
  79. %if "%{with_pcre}" == "yes"
  80. BuildPreReq: pcre
  81. PreReq: pcre
  82. %endif
  83. %if "%{with_tre}" == "yes"
  84. BuildPreReq: tre, pkgconfig
  85. PreReq: tre, pkgconfig
  86. %endif
  87. AutoReq: no
  88. AutoReqProv: no
  89. %description
  90. Perl modules for regular expression management:
  91. - re::engine::POSIX (%{V_re_engine_posix}) [with_posix=yes]
  92. - re::engine::PCRE (%{V_re_engine_pcre}) [with_pcre=yes]
  93. - re::engine::TRE (%{V_re_engine_tre}) [with_tre=yes]
  94. - Regexp::Bind (%{V_regexp_bind})
  95. - Regexp::Common (%{V_regexp_common})
  96. - Regexp::Copy (%{V_regexp_copy})
  97. - Regexp::Extended (%{V_regexp_extended})
  98. - Regexp::Keep (%{V_regexp_keep})
  99. - Regexp::Parser (%{V_regexp_parser})
  100. - Regexp::Shellish (%{V_regexp_shellish})
  101. - Regexp::Assemble (%{V_regexp_assemble})
  102. - Regexp::Wildcards (%{V_regexp_wildcards})
  103. - Regexp::Compare (%{V_regexp_compare})
  104. - Regexp::English (%{V_regexp_english})
  105. %track
  106. prog perl-regex:re-engine-POSIX = {
  107. version = %{V_re_engine_posix}
  108. url = http://www.cpan.org/authors/id/A/AV/AVAR/
  109. regex = re-engine-POSIX-(__VER__)\.tar\.gz
  110. }
  111. prog perl-regex:re-engine-PCRE = {
  112. version = %{V_re_engine_pcre}
  113. url = http://www.cpan.org/authors/id/A/AV/AVAR/
  114. regex = re-engine-PCRE-(__VER__)\.tar\.gz
  115. }
  116. prog perl-regex:re-engine-TRE = {
  117. version = %{V_re_engine_tre}
  118. url = http://www.cpan.org/authors/id/A/AV/AVAR/
  119. regex = re-engine-TRE-(__VER__)\.tar\.gz
  120. }
  121. prog perl-regex:Regexp-Bind = {
  122. version = %{V_regexp_bind}
  123. url = http://www.cpan.org/modules/by-module/Regexp/
  124. regex = Regexp-Bind-(__VER__)\.tar\.gz
  125. }
  126. prog perl-regex:Regexp-Common = {
  127. version = %{V_regexp_common}
  128. url = http://www.cpan.org/modules/by-module/Regexp/
  129. regex = Regexp-Common-(__VER__)\.tar\.gz
  130. }
  131. prog perl-regex:Regexp-Copy = {
  132. version = %{V_regexp_copy}
  133. url = http://www.cpan.org/modules/by-module/Regexp/
  134. regex = Regexp-Copy-(__VER__)\.tar\.gz
  135. }
  136. prog perl-regex:Regexp-Extended = {
  137. version = %{V_regexp_extended}
  138. url = http://www.cpan.org/modules/by-module/Regexp/
  139. regex = Regexp-Extended-(__VER__)\.tar\.gz
  140. }
  141. prog perl-regex:Regexp-Keep = {
  142. version = %{V_regexp_keep}
  143. url = http://www.cpan.org/modules/by-module/Regexp/
  144. regex = Regexp-Keep-(__VER__)\.tar\.gz
  145. }
  146. prog perl-regex:Regexp-Parser = {
  147. version = %{V_regexp_parser}
  148. url = http://www.cpan.org/modules/by-module/Regexp/
  149. regex = Regexp-Parser-(__VER__)\.tar\.gz
  150. }
  151. prog perl-regex:Regexp-Shellish = {
  152. version = %{V_regexp_shellish}
  153. url = http://www.cpan.org/modules/by-module/Regexp/
  154. regex = Regexp-Shellish-(__VER__)\.tar\.gz
  155. }
  156. prog perl-regex:Regexp-Assemble = {
  157. version = %{V_regexp_assemble}
  158. url = http://www.cpan.org/modules/by-module/Regexp/
  159. regex = Regexp-Assemble-(__VER__)\.tar\.gz
  160. }
  161. prog perl-regex:Regexp-Wildcards = {
  162. version = %{V_regexp_wildcards}
  163. url = http://www.cpan.org/modules/by-module/Regexp/
  164. regex = Regexp-Wildcards-(__VER__)\.tar\.gz
  165. }
  166. prog perl-regex:Regexp-Compare = {
  167. version = %{V_regexp_compare}
  168. url = http://www.cpan.org/modules/by-module/Regexp/
  169. regex = Regexp-Compare-(__VER__)\.tar\.gz
  170. }
  171. prog perl-regex:Regexp-English = {
  172. version = %{V_regexp_english}
  173. url = http://www.cpan.org/modules/by-module/Regexp/
  174. regex = Regexp-English-(__VER__)\.tar\.gz
  175. }
  176. %prep
  177. %setup -q -c
  178. %setup -q -T -D -a 1
  179. %setup -q -T -D -a 2
  180. %setup -q -T -D -a 3
  181. %setup -q -T -D -a 4
  182. %setup -q -T -D -a 5
  183. %setup -q -T -D -a 6
  184. %setup -q -T -D -a 7
  185. %setup -q -T -D -a 8
  186. %setup -q -T -D -a 9
  187. %setup -q -T -D -a 10
  188. %setup -q -T -D -a 11
  189. %setup -q -T -D -a 12
  190. %setup -q -T -D -a 13
  191. %patch -p0
  192. %build
  193. %install
  194. rm -rf $RPM_BUILD_ROOT
  195. %{l_prefix}/bin/perl-openpkg prepare
  196. %if "%{with_posix}" == "yes"
  197. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  198. %endif
  199. %if "%{with_pcre}" == "yes"
  200. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  201. %endif
  202. %if "%{with_tre}" == "yes"
  203. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  204. %endif
  205. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  206. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  207. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  208. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  209. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  210. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  211. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  212. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  213. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  214. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  215. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  216. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  217. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  218. %files -f files
  219. %clean
  220. rm -rf $RPM_BUILD_ROOT