perl-regex.spec 8.5 KB

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