perl-vcs.spec 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. ##
  2. ## perl-vcs.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 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.10
  25. %define V_algorithm_diff 1.1902
  26. %define V_algorithm_merge 0.08
  27. %define V_vcs 0.14
  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.4
  36. %define V_svn_look 0.14.12
  37. %define V_mtn_automate 0.04
  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: 20090904
  50. # list of sources
  51. Source0: http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Diff-%{V_algorithm_diff}.tar.gz
  52. Source1: http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Merge-%{V_algorithm_merge}.tar.gz
  53. Source2: http://www.cpan.org/modules/by-module/VCS/VCS-%{V_vcs}.tar.gz
  54. Source3: http://www.cpan.org/modules/by-module/VCS/VCS-Lite-%{V_vcs_lite}.tar.gz
  55. Source4: http://www.cpan.org/modules/by-module/VCS/VCS-Rcs-Parser-%{V_vcs_rcs_parser}.tar.gz
  56. Source5: http://www.cpan.org/modules/by-module/VCS/VCS-LibCVS-%{V_vcs_libcvs}.tar.gz
  57. Source6: http://www.cpan.org/modules/by-module/Rcs/Rcs-%{V_rcs}.tar.gz
  58. Source7: http://www.cpan.org/modules/by-module/Rcs/Rcs-Agent-%{V_rcs_agent}.tar.gz
  59. Source8: http://www.cpan.org/modules/by-module/Rcs/Rcs-Parser-%{V_rcs_parser}.tar.gz
  60. Source9: http://www.cpan.org/modules/by-module/Text/Text-Diff-%{V_text_diff}.tar.gz
  61. Source10: http://www.cpan.org/modules/by-module/Text/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. Prefix: %{l_prefix}
  67. BuildRoot: %{l_buildroot}
  68. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  69. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  70. BuildPreReq: perl-net
  71. PreReq: perl-net
  72. AutoReq: no
  73. AutoReqProv: no
  74. %description
  75. Various modules for using the DBI API of Perl:
  76. - Algorithm::Diff (%{V_algorithm_diff})
  77. - Algorithm::Merge (%{V_algorithm_merge})
  78. - VCS (%{V_vcs})
  79. - VCS::Lite (%{V_vcs_lite})
  80. - VCS::Rcs::Parser (%{V_vcs_rcs_parser})
  81. - VCS::LibCVS (%{V_vcs_libcvs})
  82. - Rcs (%{V_rcs})
  83. - Rcs::Agent (%{V_rcs_agent})
  84. - Rcs::Parser (%{V_rcs_parser})
  85. - Text::Diff (%{V_text_diff})
  86. - Text::Patch (%{V_text_patch})
  87. - SVN::Look (%{V_svn_look})
  88. - Monotone::AutomateStdio (%{V_mtn_automate})
  89. %track
  90. prog perl-vcs:Algorithm-Diff = {
  91. version = %{V_algorithm_diff}
  92. url = http://www.cpan.org/modules/by-module/Algorithm/
  93. regex = Algorithm-Diff-(__VER__)\.tar\.gz
  94. }
  95. prog perl-vcs:Algorithm-Merge = {
  96. version = %{V_algorithm_merge}
  97. url = http://www.cpan.org/modules/by-module/Algorithm/
  98. regex = Algorithm-Merge-(__VER__)\.tar\.gz
  99. }
  100. prog perl-vcs:VCS = {
  101. version = %{V_vcs}
  102. url = http://www.cpan.org/modules/by-module/VCS/
  103. regex = VCS-(__VER__)\.tar\.gz
  104. }
  105. prog perl-vcs:VCS-Lite = {
  106. version = %{V_vcs_lite}
  107. url = http://www.cpan.org/modules/by-module/VCS/
  108. regex = VCS-Lite-(__VER__)\.tar\.gz
  109. }
  110. prog perl-vcs:VCS-Rcs-Parser = {
  111. version = %{V_vcs_rcs_parser}
  112. url = http://www.cpan.org/modules/by-module/VCS/
  113. regex = VCS-Rcs-Parser-(__VER__)\.tar\.gz
  114. }
  115. prog perl-vcs:VCS-LibCVS = {
  116. version = %{V_vcs_libcvs}
  117. url = http://www.cpan.org/modules/by-module/VCS/
  118. regex = VCS-LibCVS-(__VER__)\.tar\.gz
  119. }
  120. prog perl-vcs:Rcs = {
  121. version = %{V_rcs}
  122. url = http://www.cpan.org/modules/by-module/Rcs/
  123. regex = Rcs-(__VER__)\.tar\.gz
  124. }
  125. prog perl-vcs:Rcs-Agent = {
  126. version = %{V_rcs_agent}
  127. url = http://www.cpan.org/modules/by-module/Rcs/
  128. regex = Rcs-Agent-(__VER__)\.tar\.gz
  129. }
  130. prog perl-vcs:Rcs-Parser = {
  131. version = %{V_rcs_parser}
  132. url = http://www.cpan.org/modules/by-module/Rcs/
  133. regex = [^-]Rcs-Parser-(__VER__)\.tar\.gz
  134. }
  135. prog perl-vcs:Text-Diff = {
  136. version = %{V_text_diff}
  137. url = http://www.cpan.org/modules/by-module/Text/
  138. regex = Text-Diff-(__VER__)\.tar\.gz
  139. }
  140. prog perl-vcs:Text-Patch = {
  141. version = %{V_text_patch}
  142. url = http://www.cpan.org/modules/by-module/Text/
  143. regex = Text-Patch-(__VER__)\.tar\.gz
  144. }
  145. prog perl-vcs:SVN-Look = {
  146. version = %{V_svn_look}
  147. url = http://www.cpan.org/modules/by-module/SVN/
  148. regex = SVN-Look-(__VER__)\.tar\.gz
  149. }
  150. prog perl-vcs:Monotone-AutomateStdio = {
  151. version = %{V_mtn_automate}
  152. url = http://www.cpan.org/authors/id/A/AE/AECOOPER/monotone/
  153. regex = Monotone-AutomateStdio-(__VER__)\.tar\.gz
  154. }
  155. %prep
  156. %setup -q -c
  157. %setup -q -T -D -a 1
  158. %setup -q -T -D -a 2
  159. %setup -q -T -D -a 3
  160. %setup -q -T -D -a 4
  161. %setup -q -T -D -a 5
  162. %setup -q -T -D -a 6
  163. %setup -q -T -D -a 7
  164. %setup -q -T -D -a 8
  165. %setup -q -T -D -a 9
  166. %setup -q -T -D -a 10
  167. %setup -q -T -D -a 11
  168. %setup -q -T -D -a 12
  169. %patch -p0
  170. %build
  171. %install
  172. rm -rf $RPM_BUILD_ROOT
  173. %{l_shtool} subst %{l_value -s -a} \
  174. SVN-Look-%{V_svn_look}/lib/SVN/Look.pm
  175. %{l_prefix}/bin/perl-openpkg prepare
  176. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  177. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  178. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  179. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  180. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  181. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  182. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  183. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  184. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  185. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  186. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  187. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  188. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  189. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  190. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  191. %files -f files
  192. %clean
  193. rm -rf $RPM_BUILD_ROOT