perl-kolab.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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.3
  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.9
  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: 20040218
  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}, perl-openpkg >= %{V_perl}-20040126, perl-db, perl-mail, perl-ldap
  67. AutoReq: no
  68. AutoReqProv: no
  69. %description
  70. Perl modules for use with the Kolab server
  71. %track
  72. prog perl-util:Kolab = {
  73. version = %{V_kolab}
  74. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  75. regex = Kolab-(__VER__)\.tar\.gz
  76. }
  77. prog perl-util:Kolab-Conf = {
  78. version = %{V_kolab_conf}
  79. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  80. regex = Kolab-Conf-(__VER__)\.tar\.gz
  81. }
  82. prog perl-util:Kolab-Cyrus = {
  83. version = %{V_kolab_cyrus}
  84. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  85. regex = Kolab-Cyrus-(__VER__)\.tar\.gz
  86. }
  87. prog perl-util:Kolab-DirServ = {
  88. version = %{V_kolab_dirserv}
  89. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  90. regex = Kolab-DirServ-(__VER__)\.tar\.gz
  91. }
  92. prog perl-util:Kolab-LDAP = {
  93. version = %{V_kolab_ldap}
  94. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  95. regex = Kolab-LDAP-(__VER__)\.tar\.gz
  96. }
  97. prog perl-util:Kolab-LDAP-Backend = {
  98. version = %{V_kolab_ldap_backend}
  99. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  100. regex = Kolab-LDAP-Backend-(__VER__)\.tar\.gz
  101. }
  102. prog perl-util:Kolab-LDAP-Backend-ad = {
  103. version = %{V_kolab_ldap_backend_ad}
  104. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  105. regex = Kolab-LDAP-Backend-ad-(__VER__)\.tar\.gz
  106. }
  107. prog perl-util:Kolab-LDAP-Backend-dirservd = {
  108. version = %{V_kolab_ldap_backend_dirservd}
  109. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  110. regex = Kolab-LDAP-Backend-dirservd-(__VER__)\.tar\.gz
  111. }
  112. prog perl-util:Kolab-LDAP-Backend-slurpd = {
  113. version = %{V_kolab_ldap_backend_slurpd}
  114. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  115. regex = Kolab-LDAP-Backend-slurpd-(__VER__)\.tar\.gz
  116. }
  117. prog perl-util:Kolab-Mailer = {
  118. version = %{V_kolab_mailer}
  119. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  120. regex = Kolab-Mailer-(__VER__)\.tar\.gz
  121. }
  122. prog perl-util:Kolab-Util = {
  123. version = %{V_kolab_util}
  124. url = http://www.cpan.org/authors/id/S/ST/STEPHANB/
  125. regex = Kolab-Util-(__VER__)\.tar\.gz
  126. }
  127. %prep
  128. %setup -q -c
  129. %setup -q -T -D -a 1
  130. %setup -q -T -D -a 2
  131. %setup -q -T -D -a 3
  132. %setup -q -T -D -a 4
  133. %setup -q -T -D -a 5
  134. %setup -q -T -D -a 6
  135. %setup -q -T -D -a 7
  136. %setup -q -T -D -a 8
  137. %setup -q -T -D -a 9
  138. %setup -q -T -D -a 10
  139. %build
  140. %install
  141. %{l_prefix}/bin/perl-openpkg prepare
  142. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  143. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  144. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  145. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  146. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  147. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  148. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  149. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  150. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  151. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  152. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  153. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  154. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  155. %files -f files
  156. %clean
  157. rm -rf $RPM_BUILD_ROOT