perl-vcs.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. ##
  2. ## perl-vcs.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # versions of individual parts
  24. %define V_perl 5.14
  25. %define V_algorithm_diff 1.1902
  26. %define V_algorithm_merge 0.08
  27. %define V_vcs 0.16
  28. %define V_vcs_lite 0.09
  29. %define V_vcs_rcs_parser 0.07
  30. %define V_vcs_libcvs 1.0002
  31. %define V_rcs 1.05
  32. %define V_rcs_agent 1.05
  33. %define V_rcs_parser 0.03
  34. %define V_text_diff 1.37
  35. %define V_text_patch 1.8
  36. %define V_svn_look 0.30
  37. %define V_mtn_automate 1.02
  38. # package information
  39. Name: perl-vcs
  40. Summary: Perl Modules for use with Version Control Systems (VCS)
  41. URL: http://www.cpan.org/
  42. Vendor: Perl Community
  43. Packager: OpenPKG Foundation e.V.
  44. Distribution: OpenPKG Community
  45. Class: BASE
  46. Group: Perl
  47. License: GPL/Artistic
  48. Version: %{V_perl}
  49. Release: 20120130
  50. # list of sources
  51. Source0: http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-%{V_algorithm_diff}.tar.gz
  52. Source1: http://www.cpan.org/authors/id/J/JS/JSMITH/Algorithm-Merge-%{V_algorithm_merge}.tar.gz
  53. Source2: http://www.cpan.org/authors/id/M/MK/MKANAT/VCS-%{V_vcs}.tar.gz
  54. Source3: http://www.cpan.org/authors/id/B/BA/BARBIE/VCS-Lite-%{V_vcs_lite}.tar.gz
  55. Source4: http://www.cpan.org/authors/id/Z/ZI/ZIYA/VCS-Rcs-Parser-%{V_vcs_rcs_parser}.tar.gz
  56. Source5: http://www.cpan.org/authors/id/D/DI/DISSENT/VCS-LibCVS-%{V_vcs_libcvs}.tar.gz
  57. Source6: http://www.cpan.org/authors/id/C/CF/CFRETER/Rcs-%{V_rcs}.tar.gz
  58. Source7: http://www.cpan.org/authors/id/N/NI/NICKH/Rcs-Agent-%{V_rcs_agent}.tar.gz
  59. Source8: http://www.cpan.org/authors/id/B/BE/BENNIE/Rcs-Parser-%{V_rcs_parser}.tar.gz
  60. Source9: http://www.cpan.org/authors/id/A/AD/ADAMK/Text-Diff-%{V_text_diff}.tar.gz
  61. Source10: http://www.cpan.org/authors/id/C/CA/CADE/Text-Patch-%{V_text_patch}.tar.gz
  62. Source11: http://www.cpan.org/modules/by-module/SVN/SVN-Look-%{V_svn_look}.tar.gz
  63. Source12: http://www.cpan.org/authors/id/A/AE/AECOOPER/monotone/Monotone-AutomateStdio-%{V_mtn_automate}.tar.gz
  64. Patch0: perl-vcs.patch
  65. # build information
  66. BuildPreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  67. PreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}
  68. BuildPreReq: perl-net
  69. PreReq: perl-net
  70. %description
  71. Various modules for using the DBI API of Perl:
  72. - Algorithm::Diff (%{V_algorithm_diff})
  73. - Algorithm::Merge (%{V_algorithm_merge})
  74. - VCS (%{V_vcs})
  75. - VCS::Lite (%{V_vcs_lite})
  76. - VCS::Rcs::Parser (%{V_vcs_rcs_parser})
  77. - VCS::LibCVS (%{V_vcs_libcvs})
  78. - Rcs (%{V_rcs})
  79. - Rcs::Agent (%{V_rcs_agent})
  80. - Rcs::Parser (%{V_rcs_parser})
  81. - Text::Diff (%{V_text_diff})
  82. - Text::Patch (%{V_text_patch})
  83. - SVN::Look (%{V_svn_look})
  84. - Monotone::AutomateStdio (%{V_mtn_automate})
  85. %track
  86. prog perl-vcs:Algorithm-Diff = {
  87. version = %{V_algorithm_diff}
  88. url = http://www.cpan.org/authors/id/T/TY/TYEMQ/
  89. regex = Algorithm-Diff-(__VER__)\.tar\.gz
  90. }
  91. prog perl-vcs:Algorithm-Merge = {
  92. version = %{V_algorithm_merge}
  93. url = http://www.cpan.org/authors/id/J/JS/JSMITH/
  94. regex = Algorithm-Merge-(__VER__)\.tar\.gz
  95. }
  96. prog perl-vcs:VCS = {
  97. version = %{V_vcs}
  98. url = http://www.cpan.org/authors/id/M/MK/MKANAT/
  99. regex = VCS-(__VER__)\.tar\.gz
  100. }
  101. prog perl-vcs:VCS-Lite = {
  102. version = %{V_vcs_lite}
  103. url = http://www.cpan.org/authors/id/B/BA/BARBIE/
  104. regex = VCS-Lite-(__VER__)\.tar\.gz
  105. }
  106. prog perl-vcs:VCS-Rcs-Parser = {
  107. version = %{V_vcs_rcs_parser}
  108. url = http://www.cpan.org/authors/id/Z/ZI/ZIYA/
  109. regex = VCS-Rcs-Parser-(__VER__)\.tar\.gz
  110. }
  111. prog perl-vcs:VCS-LibCVS = {
  112. version = %{V_vcs_libcvs}
  113. url = http://www.cpan.org/authors/id/D/DI/DISSENT/
  114. regex = VCS-LibCVS-(__VER__)\.tar\.gz
  115. }
  116. prog perl-vcs:Rcs = {
  117. version = %{V_rcs}
  118. url = http://www.cpan.org/authors/id/C/CF/CFRETER/
  119. regex = Rcs-(__VER__)\.tar\.gz
  120. }
  121. prog perl-vcs:Rcs-Agent = {
  122. version = %{V_rcs_agent}
  123. url = http://www.cpan.org/authors/id/N/NI/NICKH/
  124. regex = Rcs-Agent-(__VER__)\.tar\.gz
  125. }
  126. prog perl-vcs:Rcs-Parser = {
  127. version = %{V_rcs_parser}
  128. url = http://www.cpan.org/modules/by-module/Rcs/
  129. regex = [^-]Rcs-Parser-(__VER__)\.tar\.gz
  130. }
  131. prog perl-vcs:Text-Diff = {
  132. version = %{V_text_diff}
  133. url = http://www.cpan.org/authors/id/A/AD/ADAMK/
  134. regex = Text-Diff-(__VER__)\.tar\.gz
  135. }
  136. prog perl-vcs:Text-Patch = {
  137. version = %{V_text_patch}
  138. url = http://www.cpan.org/authors/id/C/CA/CADE/
  139. regex = Text-Patch-(__VER__)\.tar\.gz
  140. }
  141. prog perl-vcs:SVN-Look = {
  142. version = %{V_svn_look}
  143. url = http://www.cpan.org/modules/by-module/SVN/
  144. regex = SVN-Look-(__VER__)\.tar\.gz
  145. }
  146. prog perl-vcs:Monotone-AutomateStdio = {
  147. version = %{V_mtn_automate}
  148. url = http://www.cpan.org/authors/id/A/AE/AECOOPER/monotone/
  149. regex = Monotone-AutomateStdio-(__VER__)\.tar\.gz
  150. }
  151. %prep
  152. %setup -q -c
  153. %setup -q -T -D -a 1
  154. %setup -q -T -D -a 2
  155. %setup -q -T -D -a 3
  156. %setup -q -T -D -a 4
  157. %setup -q -T -D -a 5
  158. %setup -q -T -D -a 6
  159. %setup -q -T -D -a 7
  160. %setup -q -T -D -a 8
  161. %setup -q -T -D -a 9
  162. %setup -q -T -D -a 10
  163. %setup -q -T -D -a 11
  164. %setup -q -T -D -a 12
  165. %patch -p0
  166. %build
  167. %install
  168. %{l_shtool} subst %{l_value -s -a} \
  169. SVN-Look-%{V_svn_look}/lib/SVN/Look.pm
  170. %{l_prefix}/bin/perl-openpkg prepare
  171. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  172. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  173. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  174. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  175. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  176. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  177. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  178. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  179. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  180. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  181. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  182. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  183. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  184. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  185. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  186. %files -f files
  187. %clean