perl-kolab.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. ##
  2. ## perl-kolab.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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_perl 5.8.4
  27. %define V_kolab 1.02
  28. %define V_kolab_util 1.01
  29. %define V_kolab_ldap 1.02
  30. %define V_kolab_ldap_backend 1.01
  31. %define V_kolab_ldap_backend_ad 1.01
  32. %define V_kolab_ldap_backend_slurpd 1.01
  33. %define V_kolab_ldap_backend_dirservd 1.01
  34. %define V_kolab_cyrus 1.01
  35. %define V_kolab_conf 1.03
  36. %define V_kolab_dirserv 1.01
  37. %define V_kolab_mailer 1.01
  38. # package information
  39. Name: perl-kolab
  40. Summary: Perl Modules for use with the Kolab server
  41. URL: http://kolab.kde.org
  42. Vendor: Code Fusion
  43. Packager: The OpenPKG Project
  44. Distribution: OpenPKG
  45. Class: PLUS
  46. Group: Language
  47. License: GPL/Artistic
  48. Version: %{V_perl}
  49. Release: 20040623
  50. # list of sources
  51. Source0: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-%{V_kolab}.tar.gz
  52. Source1: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-Util-%{V_kolab_util}.tar.gz
  53. Source2: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-LDAP-%{V_kolab_ldap}.tar.gz
  54. Source3: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-LDAP-Backend-%{V_kolab_ldap_backend}.tar.gz
  55. Source4: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-LDAP-Backend-ad-%{V_kolab_ldap_backend_ad}.tar.gz
  56. Source5: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-LDAP-Backend-slurpd-%{V_kolab_ldap_backend_slurpd}.tar.gz
  57. Source6: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-LDAP-Backend-dirservd-%{V_kolab_ldap_backend_dirservd}.tar.gz
  58. Source7: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-Cyrus-%{V_kolab_cyrus}.tar.gz
  59. Source8: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-Conf-%{V_kolab_conf}.tar.gz
  60. Source9: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-DirServ-%{V_kolab_dirserv}.tar.gz
  61. Source10: http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-Mailer-%{V_kolab_mailer}.tar.gz
  62. # build information
  63. Prefix: %{l_prefix}
  64. BuildRoot: %{l_buildroot}
  65. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  66. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  67. BuildPreReq: perl-db, perl-mail, perl-ldap
  68. PreReq: perl-db, perl-mail, perl-ldap
  69. AutoReq: no
  70. AutoReqProv: no
  71. %description
  72. Perl modules for use with the Kolab server
  73. - Kolab = (%{V_kolab})
  74. - Kolab::Conf = (%{V_kolab_conf})
  75. - Kolab::Cyrus = (%{V_kolab_cyrus})
  76. - Kolab::DirServ = (%{V_kolab_dirserv})
  77. - Kolab::LDAP = (%{V_kolab_ldap})
  78. - Kolab::LDAP-Backend = (%{V_kolab_ldap_backend})
  79. - Kolab::LDAP-Backend-ad = (%{V_kolab_ldap_backend_ad})
  80. - Kolab::LDAP-Backend-dirservd = (%{V_kolab_ldap_backend_dirservd})
  81. - Kolab::LDAP-Backend-slurpd = (%{V_kolab_ldap_backend_slurpd})
  82. - Kolab::Mailer = (%{V_kolab_mailer})
  83. - Kolab::Util = (%{V_kolab_util})
  84. %track
  85. prog perl-kolab:Kolab = {
  86. version = %{V_kolab}
  87. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  88. regex = Kolab-(__VER__)\.tar\.gz
  89. }
  90. prog perl-kolab:Kolab-Conf = {
  91. version = %{V_kolab_conf}
  92. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  93. regex = Kolab-Conf-(__VER__)\.tar\.gz
  94. }
  95. prog perl-kolab:Kolab-Cyrus = {
  96. version = %{V_kolab_cyrus}
  97. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  98. regex = Kolab-Cyrus-(__VER__)\.tar\.gz
  99. }
  100. prog perl-kolab:Kolab-DirServ = {
  101. version = %{V_kolab_dirserv}
  102. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  103. regex = Kolab-DirServ-(__VER__)\.tar\.gz
  104. }
  105. prog perl-kolab:Kolab-LDAP = {
  106. version = %{V_kolab_ldap}
  107. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  108. regex = Kolab-LDAP-(__VER__)\.tar\.gz
  109. }
  110. prog perl-kolab:Kolab-LDAP-Backend = {
  111. version = %{V_kolab_ldap_backend}
  112. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  113. regex = Kolab-LDAP-Backend-(__VER__)\.tar\.gz
  114. }
  115. prog perl-kolab:Kolab-LDAP-Backend-ad = {
  116. version = %{V_kolab_ldap_backend_ad}
  117. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  118. regex = Kolab-LDAP-Backend-ad-(__VER__)\.tar\.gz
  119. }
  120. prog perl-kolab:Kolab-LDAP-Backend-dirservd = {
  121. version = %{V_kolab_ldap_backend_dirservd}
  122. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  123. regex = Kolab-LDAP-Backend-dirservd-(__VER__)\.tar\.gz
  124. }
  125. prog perl-kolab:Kolab-LDAP-Backend-slurpd = {
  126. version = %{V_kolab_ldap_backend_slurpd}
  127. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  128. regex = Kolab-LDAP-Backend-slurpd-(__VER__)\.tar\.gz
  129. }
  130. prog perl-kolab:Kolab-Mailer = {
  131. version = %{V_kolab_mailer}
  132. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  133. regex = Kolab-Mailer-(__VER__)\.tar\.gz
  134. }
  135. prog perl-kolab:Kolab-Util = {
  136. version = %{V_kolab_util}
  137. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  138. regex = Kolab-Util-(__VER__)\.tar\.gz
  139. }
  140. %prep
  141. %setup -q -c
  142. %setup -q -T -D -a 1
  143. %setup -q -T -D -a 2
  144. %setup -q -T -D -a 3
  145. %setup -q -T -D -a 4
  146. %setup -q -T -D -a 5
  147. %setup -q -T -D -a 6
  148. %setup -q -T -D -a 7
  149. %setup -q -T -D -a 8
  150. %setup -q -T -D -a 9
  151. %setup -q -T -D -a 10
  152. %{l_shtool} subst \
  153. -e 's;chown root.root;chown %{l_susr}:%{l_sgrp};' \
  154. Kolab-Conf-%{V_kolab_conf}/Conf.pm
  155. %build
  156. %install
  157. rm -rf $RPM_BUILD_ROOT
  158. %{l_prefix}/bin/perl-openpkg prepare
  159. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  160. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  161. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  162. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  163. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  164. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  165. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  166. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  167. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  168. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  169. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  170. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  171. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  172. %files -f files
  173. %clean
  174. rm -rf $RPM_BUILD_ROOT