perl-vcs.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. ##
  2. ## perl-vcs.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_algorithm_diff 1.15
  28. %define V_algorithm_merge 0.05
  29. %define V_vcs 0.13
  30. %define V_vcs_lite 0.05
  31. %define V_vcs_rcs_parser 0.06
  32. %define V_rcs 1.05
  33. %define V_rcs_agent 1.03
  34. %define V_rcs_parser 0.02
  35. # package information
  36. Name: perl-vcs
  37. Summary: Perl Modules for use with Version Control Systems (VCS)
  38. URL: http://www.cpan.org/
  39. Vendor: Perl Community
  40. Packager: The OpenPKG Project
  41. Distribution: OpenPKG
  42. Class: EVAL
  43. Group: Language
  44. License: GPL/Artistic
  45. Version: %{V_perl}
  46. Release: 20040508
  47. # list of sources
  48. Source0: http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Diff-%{V_algorithm_diff}.tar.gz
  49. Source1: http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Merge-%{V_algorithm_merge}.tar.gz
  50. Source2: http://www.cpan.org/modules/by-module/VCS/VCS-%{V_vcs}.tar.gz
  51. Source3: http://www.cpan.org/modules/by-module/VCS/VCS-Lite-%{V_vcs_lite}.tar.gz
  52. Source4: http://www.cpan.org/modules/by-module/VCS/VCS-Rcs-Parser-%{V_vcs_rcs_parser}.tar.gz
  53. Source5: http://www.cpan.org/modules/by-module/Rcs/Rcs-%{V_rcs}.tar.gz
  54. Source6: http://www.cpan.org/modules/by-module/Rcs/Rcs-Agent-%{V_rcs_agent}.tar.gz
  55. Source7: http://www.cpan.org/modules/by-module/Rcs/Rcs-Parser-%{V_rcs_parser}.tar.gz
  56. # build information
  57. Prefix: %{l_prefix}
  58. BuildRoot: %{l_buildroot}
  59. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  60. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  61. BuildPreReq: perl-net
  62. PreReq: perl-net
  63. AutoReq: no
  64. AutoReqProv: no
  65. %description
  66. Various modules for using the DBI API of Perl:
  67. - Algorithm::Diff (%{V_algorithm_diff})
  68. - Algorithm::Merge (%{V_algorithm_merge})
  69. - VCS (%{V_vcs})
  70. - VCS::Lite (%{V_vcs_lite})
  71. - VCS::Rcs::Parser (%{V_vcs_rcs_parser})
  72. - Rcs (%{V_rcs})
  73. - Rcs::Agent (%{V_rcs_agent})
  74. - Rcs::Parser (%{V_rcs_parser})
  75. %track
  76. prog perl-vcs:Algorithm-Diff = {
  77. version = %{V_algorithm_diff}
  78. url = http://www.cpan.org/modules/by-module/Algorithm/
  79. regex = Algorithm-Diff-(__VER__)\.tar\.gz
  80. }
  81. prog perl-vcs:Algorithm-Merge = {
  82. version = %{V_algorithm_merge}
  83. url = http://www.cpan.org/modules/by-module/Algorithm/
  84. regex = Algorithm-Merge-(__VER__)\.tar\.gz
  85. }
  86. prog perl-vcs:VCS = {
  87. version = %{V_vcs}
  88. url = http://www.cpan.org/modules/by-module/VCS/
  89. regex = VCS-(__VER__)\.tar\.gz
  90. }
  91. prog perl-vcs:VCS-Lite = {
  92. version = %{V_vcs_lite}
  93. url = http://www.cpan.org/modules/by-module/VCS/
  94. regex = VCS-Lite-(__VER__)\.tar\.gz
  95. }
  96. prog perl-vcs:VCS-Rcs-Parser = {
  97. version = %{V_vcs_rcs_parser}
  98. url = http://www.cpan.org/modules/by-module/VCS/
  99. regex = VCS-Rcs-Parser-(__VER__)\.tar\.gz
  100. }
  101. prog perl-vcs:Rcs = {
  102. version = %{V_rcs}
  103. url = http://www.cpan.org/modules/by-module/Rcs/
  104. regex = Rcs-(__VER__)\.tar\.gz
  105. }
  106. prog perl-vcs:Rcs-Agent = {
  107. version = %{V_rcs_agent}
  108. url = http://www.cpan.org/modules/by-module/Rcs/
  109. regex = Rcs-Agent-(__VER__)\.tar\.gz
  110. }
  111. prog perl-vcs:Rcs-Parser = {
  112. version = %{V_rcs_parser}
  113. url = http://www.cpan.org/modules/by-module/Rcs/
  114. regex = [^-]Rcs-Parser-(__VER__)\.tar\.gz
  115. }
  116. %prep
  117. %setup -q -c
  118. %setup -q -T -D -a 1
  119. %setup -q -T -D -a 2
  120. %setup -q -T -D -a 3
  121. %setup -q -T -D -a 4
  122. %setup -q -T -D -a 5
  123. %setup -q -T -D -a 6
  124. %setup -q -T -D -a 7
  125. %build
  126. %install
  127. rm -rf $RPM_BUILD_ROOT
  128. %{l_prefix}/bin/perl-openpkg prepare
  129. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  130. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  131. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  132. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  133. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  134. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  135. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  136. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  137. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  138. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  139. %files -f files
  140. %clean
  141. rm -rf $RPM_BUILD_ROOT