perl-kolab.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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 0.9
  28. %define V_kolab_util 0.9
  29. %define V_kolab_ldap 0.9
  30. %define V_kolab_ldap_backend 0.9
  31. %define V_kolab_ldap_backend_ad 0.9
  32. %define V_kolab_ldap_backend_slurpd 0.9
  33. %define V_kolab_ldap_backend_dirservd 0.91
  34. %define V_kolab_cyrus 0.9
  35. %define V_kolab_conf 0.97
  36. %define V_kolab_dirserv 0.9
  37. %define V_kolab_mailer 0.9
  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: 20040508
  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. %track
  74. prog perl-kolab:Kolab = {
  75. version = %{V_kolab}
  76. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  77. regex = Kolab-(__VER__)\.tar\.gz
  78. }
  79. prog perl-kolab:Kolab-Conf = {
  80. version = %{V_kolab_conf}
  81. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  82. regex = Kolab-Conf-(__VER__)\.tar\.gz
  83. }
  84. prog perl-kolab:Kolab-Cyrus = {
  85. version = %{V_kolab_cyrus}
  86. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  87. regex = Kolab-Cyrus-(__VER__)\.tar\.gz
  88. }
  89. prog perl-kolab:Kolab-DirServ = {
  90. version = %{V_kolab_dirserv}
  91. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  92. regex = Kolab-DirServ-(__VER__)\.tar\.gz
  93. }
  94. prog perl-kolab:Kolab-LDAP = {
  95. version = %{V_kolab_ldap}
  96. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  97. regex = Kolab-LDAP-(__VER__)\.tar\.gz
  98. }
  99. prog perl-kolab:Kolab-LDAP-Backend = {
  100. version = %{V_kolab_ldap_backend}
  101. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  102. regex = Kolab-LDAP-Backend-(__VER__)\.tar\.gz
  103. }
  104. prog perl-kolab:Kolab-LDAP-Backend-ad = {
  105. version = %{V_kolab_ldap_backend_ad}
  106. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  107. regex = Kolab-LDAP-Backend-ad-(__VER__)\.tar\.gz
  108. }
  109. prog perl-kolab:Kolab-LDAP-Backend-dirservd = {
  110. version = %{V_kolab_ldap_backend_dirservd}
  111. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  112. regex = Kolab-LDAP-Backend-dirservd-(__VER__)\.tar\.gz
  113. }
  114. prog perl-kolab:Kolab-LDAP-Backend-slurpd = {
  115. version = %{V_kolab_ldap_backend_slurpd}
  116. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  117. regex = Kolab-LDAP-Backend-slurpd-(__VER__)\.tar\.gz
  118. }
  119. prog perl-kolab:Kolab-Mailer = {
  120. version = %{V_kolab_mailer}
  121. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  122. regex = Kolab-Mailer-(__VER__)\.tar\.gz
  123. }
  124. prog perl-kolab:Kolab-Util = {
  125. version = %{V_kolab_util}
  126. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  127. regex = Kolab-Util-(__VER__)\.tar\.gz
  128. }
  129. %prep
  130. %setup -q -c
  131. %setup -q -T -D -a 1
  132. %setup -q -T -D -a 2
  133. %setup -q -T -D -a 3
  134. %setup -q -T -D -a 4
  135. %setup -q -T -D -a 5
  136. %setup -q -T -D -a 6
  137. %setup -q -T -D -a 7
  138. %setup -q -T -D -a 8
  139. %setup -q -T -D -a 9
  140. %setup -q -T -D -a 10
  141. %{l_shtool} subst \
  142. -e 's;chown root.root;chown %{l_susr}:%{l_sgrp};' \
  143. Kolab-Conf-%{V_kolab_conf}/Conf.pm
  144. %build
  145. %install
  146. rm -rf $RPM_BUILD_ROOT
  147. %{l_prefix}/bin/perl-openpkg prepare
  148. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  149. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  150. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  151. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  152. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  153. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  154. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  155. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  156. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  157. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  158. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  159. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  160. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  161. %files -f files
  162. %clean
  163. rm -rf $RPM_BUILD_ROOT