perl-kolab.spec 7.9 KB

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