perl-apache.spec 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. ##
  2. ## perl-apache.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 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
  25. %define V_apache_authcookie 3.12
  26. %define V_apache_authcookiedbi 2.05
  27. %define V_apache_admin_config 0.94
  28. %define V_apache_dbi 1.07
  29. %define V_apache_filter 1.024
  30. %define V_apache_htpasswd 1.8
  31. %define V_apache_proxyrewrite 0.17
  32. %define V_apache_ssi 2.19
  33. %define V_apache_session 1.87
  34. %define V_apache_session_lazy 0.05
  35. %define V_apache_session_sqlite 0.21
  36. %define V_apache_session_sharedmem 0.6
  37. %define V_apache_tempfile 0.05
  38. %define V_apache_db 0.14
  39. # package information
  40. Name: perl-apache
  41. Summary: Perl Modules for use with Apache/mod_perl
  42. URL: http://www.cpan.org/
  43. Vendor: Perl Community
  44. Packager: OpenPKG Foundation e.V.
  45. Distribution: OpenPKG Community
  46. Class: EVAL
  47. Group: Perl
  48. License: GPL/Artistic
  49. Version: %{V_perl}
  50. Release: 20090904
  51. # list of sources
  52. Source0: http://www.cpan.org/modules/by-module/Apache2/Apache-AuthCookie-%{V_apache_authcookie}.tar.gz
  53. Source1: http://www.cpan.org/modules/by-module/Apache2/Apache2-AuthCookieDBI-%{V_apache_authcookiedbi}.tar.gz
  54. Source2: http://www.cpan.org/modules/by-module/Apache/Apache-Admin-Config-%{V_apache_admin_config}.tar.gz
  55. Source3: http://www.cpan.org/modules/by-module/Apache/Apache-DBI-%{V_apache_dbi}.tar.gz
  56. Source4: http://www.cpan.org/modules/by-module/Apache/Apache-Filter-%{V_apache_filter}.tar.gz
  57. Source5: http://www.cpan.org/modules/by-module/Apache/Apache-Htpasswd-%{V_apache_htpasswd}.tar.gz
  58. Source6: http://www.cpan.org/modules/by-module/Apache/Apache-ProxyRewrite-%{V_apache_proxyrewrite}.tar.gz
  59. Source7: http://www.cpan.org/modules/by-module/Apache/Apache-SSI-%{V_apache_ssi}.tar.gz
  60. Source8: http://www.cpan.org/modules/by-module/Apache/Apache-Session-%{V_apache_session}.tar.gz
  61. Source9: http://www.cpan.org/modules/by-module/Apache/Apache-Session-Lazy-%{V_apache_session_lazy}.tar.gz
  62. Source10: http://www.cpan.org/modules/by-module/Apache/Apache-Session-SQLite-%{V_apache_session_sqlite}.tar.gz
  63. Source11: http://www.cpan.org/modules/by-module/Apache/Apache-Session-SharedMem-%{V_apache_session_sharedmem}.tar.gz
  64. Source12: http://www.cpan.org/modules/by-module/Apache/Apache-TempFile-%{V_apache_tempfile}.tar.gz
  65. Source13: http://www.cpan.org/modules/by-module/Apache/Apache-DB-%{V_apache_db}.tar.gz
  66. Patch0: perl-apache.patch
  67. # build information
  68. Prefix: %{l_prefix}
  69. BuildRoot: %{l_buildroot}
  70. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  71. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  72. BuildPreReq: apache-perl, perl-dbi
  73. PreReq: apache-perl, perl-dbi
  74. AutoReq: no
  75. AutoReqProv: no
  76. %description
  77. Perl modules for general utility usage:
  78. - Apache::AuthCookie (%{V_apache_authcookie})
  79. - Apache::AuthCookieDBI (%{V_apache_authcookiedbi})
  80. - Apache::Admin::Config (%{V_apache_admin_config})
  81. - Apache::DBI (%{V_apache_dbi})
  82. - Apache::Filter (%{V_apache_filter})
  83. - Apache::Htpasswd (%{V_apache_htpasswd})
  84. - Apache::ProxyRewrite (%{V_apache_proxyrewrite})
  85. - Apache::SSI (%{V_apache_ssi})
  86. - Apache::Session (%{V_apache_session})
  87. - Apache::Session::Lazy (%{V_apache_session_lazy})
  88. - Apache::Session::SQLite (%{V_apache_session_sqlite})
  89. - Apache::Session::SharedMem (%{V_apache_session_sharedmem})
  90. - Apache::TempFile (%{V_apache_tempfile})
  91. - Apache::DB (%{V_apache_db})
  92. %track
  93. prog perl-apache:Apache-Admin-Config = {
  94. version = %{V_apache_admin_config}
  95. url = http://www.cpan.org/modules/by-module/Apache/
  96. regex = Apache-Admin-Config-(__VER__)\.tar\.gz
  97. }
  98. prog perl-apache:Apache-AuthCookie = {
  99. version = %{V_apache_authcookie}
  100. url = http://www.cpan.org/modules/by-module/Apache2/
  101. regex = Apache-AuthCookie-(__VER__)\.tar\.gz
  102. }
  103. prog perl-apache:Apache-AuthCookieDBI = {
  104. version = %{V_apache_authcookiedbi}
  105. url = http://www.cpan.org/modules/by-module/Apache2/
  106. regex = Apache2-AuthCookieDBI-(__VER__)\.tar\.gz
  107. }
  108. prog perl-apache:Apache-DB = {
  109. version = %{V_apache_db}
  110. url = http://www.cpan.org/modules/by-module/Apache/
  111. regex = Apache-DB-(__VER__)\.tar\.gz
  112. }
  113. prog perl-apache:Apache-DBI = {
  114. version = %{V_apache_dbi}
  115. url = http://www.cpan.org/modules/by-module/Apache/
  116. regex = Apache-DBI-(__VER__)\.tar\.gz
  117. }
  118. prog perl-apache:Apache-Filter = {
  119. version = %{V_apache_filter}
  120. url = http://www.cpan.org/modules/by-module/Apache/
  121. regex = Apache-Filter-(__VER__)\.tar\.gz
  122. }
  123. prog perl-apache:Apache-Htpasswd = {
  124. version = %{V_apache_htpasswd}
  125. url = http://www.cpan.org/modules/by-module/Apache/
  126. regex = Apache-Htpasswd-(__VER__)\.tar\.gz
  127. }
  128. prog perl-apache:Apache-ProxyRewrite = {
  129. version = %{V_apache_proxyrewrite}
  130. url = http://www.cpan.org/modules/by-module/Apache/
  131. regex = Apache-ProxyRewrite-(__VER__)\.tar\.gz
  132. }
  133. prog perl-apache:Apache-Session = {
  134. version = %{V_apache_session}
  135. url = http://www.cpan.org/modules/by-module/Apache/
  136. regex = Apache-Session-(__VER__)\.tar\.gz
  137. }
  138. prog perl-apache:Apache-Session-Lazy = {
  139. version = %{V_apache_session_lazy}
  140. url = http://www.cpan.org/modules/by-module/Apache/
  141. regex = Apache-Session-Lazy-(__VER__)\.tar\.gz
  142. }
  143. prog perl-apache:Apache-Session-SharedMem = {
  144. version = %{V_apache_session_sharedmem}
  145. url = http://www.cpan.org/modules/by-module/Apache/
  146. regex = Apache-Session-SharedMem-(__VER__)\.tar\.gz
  147. }
  148. prog perl-apache:Apache-Session-SQLite = {
  149. version = %{V_apache_session_sqlite}
  150. url = http://www.cpan.org/modules/by-module/Apache/
  151. regex = Apache-Session-SQLite-(__VER__)\.tar\.gz
  152. }
  153. prog perl-apache:Apache-SSI = {
  154. version = %{V_apache_ssi}
  155. url = http://www.cpan.org/modules/by-module/Apache/
  156. regex = Apache-SSI-(__VER__)\.tar\.gz
  157. }
  158. prog perl-apache:Apache-TempFile = {
  159. version = %{V_apache_tempfile}
  160. url = http://www.cpan.org/modules/by-module/Apache/
  161. regex = Apache-TempFile-(__VER__)\.tar\.gz
  162. }
  163. %prep
  164. %setup -q -c
  165. %setup -q -T -D -a 1
  166. %setup -q -T -D -a 2
  167. %setup -q -T -D -a 3
  168. %setup -q -T -D -a 4
  169. %setup -q -T -D -a 5
  170. %setup -q -T -D -a 6
  171. %setup -q -T -D -a 7
  172. %setup -q -T -D -a 8
  173. %setup -q -T -D -a 9
  174. %setup -q -T -D -a 10
  175. %setup -q -T -D -a 11
  176. %setup -q -T -D -a 12
  177. %setup -q -T -D -a 13
  178. %patch -p0
  179. %build
  180. %install
  181. rm -rf $RPM_BUILD_ROOT
  182. %{l_prefix}/bin/perl-openpkg prepare
  183. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  184. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  185. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  186. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  187. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  188. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  189. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  190. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  191. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  195. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  196. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} 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