##
## perl-vcs.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2004 The OpenPKG Project
## Copyright (c) 2000-2004 Ralf S. Engelschall
## Copyright (c) 2000-2004 Cable & Wireless
##
## 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.8.4
%define V_algorithm_diff 1.15
%define V_algorithm_merge 0.05
%define V_vcs 0.13
%define V_vcs_lite 0.05
%define V_vcs_rcs_parser 0.06
%define V_rcs 1.05
%define V_rcs_agent 1.03
%define V_rcs_parser 0.02
# package information
Name: perl-vcs
Summary: Perl Modules for use with Version Control Systems (VCS)
URL: http://www.cpan.org/
Vendor: Perl Community
Packager: The OpenPKG Project
Distribution: OpenPKG
Class: EVAL
Group: Language
License: GPL/Artistic
Version: %{V_perl}
Release: 20040508
# 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/Rcs/Rcs-%{V_rcs}.tar.gz
Source6: http://www.cpan.org/modules/by-module/Rcs/Rcs-Agent-%{V_rcs_agent}.tar.gz
Source7: http://www.cpan.org/modules/by-module/Rcs/Rcs-Parser-%{V_rcs_parser}.tar.gz
# 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})
- Rcs (%{V_rcs})
- Rcs::Agent (%{V_rcs_agent})
- Rcs::Parser (%{V_rcs_parser})
%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: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
}
%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
%build
%install
rm -rf $RPM_BUILD_ROOT
%{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 -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