| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- ##
- ## perl-vcs.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # versions of individual parts
- %define V_perl 5.10
- %define V_algorithm_diff 1.1902
- %define V_algorithm_merge 0.08
- %define V_vcs 0.14
- %define V_vcs_lite 0.09
- %define V_vcs_rcs_parser 0.07
- %define V_vcs_libcvs 1.0002
- %define V_rcs 1.05
- %define V_rcs_agent 1.05
- %define V_rcs_parser 0.03
- %define V_text_diff 1.37
- %define V_text_patch 1.4
- %define V_svn_look 0.14.12
- %define V_mtn_automate 0.04
- # package information
- Name: perl-vcs
- Summary: Perl Modules for use with Version Control Systems (VCS)
- URL: http://www.cpan.org/
- Vendor: Perl Community
- Packager: OpenPKG Foundation e.V.
- Distribution: OpenPKG Community
- Class: BASE
- Group: Perl
- License: GPL/Artistic
- Version: %{V_perl}
- Release: 20090904
- # list of sources
- Source0: http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Diff-%{V_algorithm_diff}.tar.gz
- Source1: http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Merge-%{V_algorithm_merge}.tar.gz
- Source2: http://www.cpan.org/modules/by-module/VCS/VCS-%{V_vcs}.tar.gz
- Source3: http://www.cpan.org/modules/by-module/VCS/VCS-Lite-%{V_vcs_lite}.tar.gz
- Source4: http://www.cpan.org/modules/by-module/VCS/VCS-Rcs-Parser-%{V_vcs_rcs_parser}.tar.gz
- Source5: http://www.cpan.org/modules/by-module/VCS/VCS-LibCVS-%{V_vcs_libcvs}.tar.gz
- Source6: http://www.cpan.org/modules/by-module/Rcs/Rcs-%{V_rcs}.tar.gz
- Source7: http://www.cpan.org/modules/by-module/Rcs/Rcs-Agent-%{V_rcs_agent}.tar.gz
- Source8: http://www.cpan.org/modules/by-module/Rcs/Rcs-Parser-%{V_rcs_parser}.tar.gz
- Source9: http://www.cpan.org/modules/by-module/Text/Text-Diff-%{V_text_diff}.tar.gz
- Source10: http://www.cpan.org/modules/by-module/Text/Text-Patch-%{V_text_patch}.tar.gz
- Source11: http://www.cpan.org/modules/by-module/SVN/SVN-Look-%{V_svn_look}.tar.gz
- Source12: http://www.cpan.org/authors/id/A/AE/AECOOPER/monotone/Monotone-AutomateStdio-%{V_mtn_automate}.tar.gz
- Patch0: perl-vcs.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
- PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
- BuildPreReq: perl-net
- PreReq: perl-net
- AutoReq: no
- AutoReqProv: no
- %description
- Various modules for using the DBI API of Perl:
- - Algorithm::Diff (%{V_algorithm_diff})
- - Algorithm::Merge (%{V_algorithm_merge})
- - VCS (%{V_vcs})
- - VCS::Lite (%{V_vcs_lite})
- - VCS::Rcs::Parser (%{V_vcs_rcs_parser})
- - VCS::LibCVS (%{V_vcs_libcvs})
- - Rcs (%{V_rcs})
- - Rcs::Agent (%{V_rcs_agent})
- - Rcs::Parser (%{V_rcs_parser})
- - Text::Diff (%{V_text_diff})
- - Text::Patch (%{V_text_patch})
- - SVN::Look (%{V_svn_look})
- - Monotone::AutomateStdio (%{V_mtn_automate})
- %track
- prog perl-vcs:Algorithm-Diff = {
- version = %{V_algorithm_diff}
- url = http://www.cpan.org/modules/by-module/Algorithm/
- regex = Algorithm-Diff-(__VER__)\.tar\.gz
- }
- prog perl-vcs:Algorithm-Merge = {
- version = %{V_algorithm_merge}
- url = http://www.cpan.org/modules/by-module/Algorithm/
- regex = Algorithm-Merge-(__VER__)\.tar\.gz
- }
- prog perl-vcs:VCS = {
- version = %{V_vcs}
- url = http://www.cpan.org/modules/by-module/VCS/
- regex = VCS-(__VER__)\.tar\.gz
- }
- prog perl-vcs:VCS-Lite = {
- version = %{V_vcs_lite}
- url = http://www.cpan.org/modules/by-module/VCS/
- regex = VCS-Lite-(__VER__)\.tar\.gz
- }
- prog perl-vcs:VCS-Rcs-Parser = {
- version = %{V_vcs_rcs_parser}
- url = http://www.cpan.org/modules/by-module/VCS/
- regex = VCS-Rcs-Parser-(__VER__)\.tar\.gz
- }
- prog perl-vcs:VCS-LibCVS = {
- version = %{V_vcs_libcvs}
- url = http://www.cpan.org/modules/by-module/VCS/
- regex = VCS-LibCVS-(__VER__)\.tar\.gz
- }
- prog perl-vcs:Rcs = {
- version = %{V_rcs}
- url = http://www.cpan.org/modules/by-module/Rcs/
- regex = Rcs-(__VER__)\.tar\.gz
- }
- prog perl-vcs:Rcs-Agent = {
- version = %{V_rcs_agent}
- url = http://www.cpan.org/modules/by-module/Rcs/
- regex = Rcs-Agent-(__VER__)\.tar\.gz
- }
- prog perl-vcs:Rcs-Parser = {
- version = %{V_rcs_parser}
- url = http://www.cpan.org/modules/by-module/Rcs/
- regex = [^-]Rcs-Parser-(__VER__)\.tar\.gz
- }
- prog perl-vcs:Text-Diff = {
- version = %{V_text_diff}
- url = http://www.cpan.org/modules/by-module/Text/
- regex = Text-Diff-(__VER__)\.tar\.gz
- }
- prog perl-vcs:Text-Patch = {
- version = %{V_text_patch}
- url = http://www.cpan.org/modules/by-module/Text/
- regex = Text-Patch-(__VER__)\.tar\.gz
- }
- prog perl-vcs:SVN-Look = {
- version = %{V_svn_look}
- url = http://www.cpan.org/modules/by-module/SVN/
- regex = SVN-Look-(__VER__)\.tar\.gz
- }
- prog perl-vcs:Monotone-AutomateStdio = {
- version = %{V_mtn_automate}
- url = http://www.cpan.org/authors/id/A/AE/AECOOPER/monotone/
- regex = Monotone-AutomateStdio-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -c
- %setup -q -T -D -a 1
- %setup -q -T -D -a 2
- %setup -q -T -D -a 3
- %setup -q -T -D -a 4
- %setup -q -T -D -a 5
- %setup -q -T -D -a 6
- %setup -q -T -D -a 7
- %setup -q -T -D -a 8
- %setup -q -T -D -a 9
- %setup -q -T -D -a 10
- %setup -q -T -D -a 11
- %setup -q -T -D -a 12
- %patch -p0
- %build
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_shtool} subst %{l_value -s -a} \
- SVN-Look-%{V_svn_look}/lib/SVN/Look.pm
- %{l_prefix}/bin/perl-openpkg prepare
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
- %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|