| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- ##
- ## urpmi.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
- ##
- ## 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.
- ##
- # FIXME: rse: blindly packaged, still not tested at all under run-time
- # package version
- %define V_urpmi 4.8.17
- %define V_urpm 1.40
- %define V_mdv_packdrakeng 1.01
- %define V_mdv_distribconf 1.01
- # package information
- Name: urpmi
- Summary: RPM Installer
- URL: http://www.urpmi.org/
- Vendor: Mandrakesoft
- Packager: OpenPKG
- Distribution: OpenPKG
- Class: EVAL
- Group: Bootstrapping
- License: GPL
- Version: %{V_urpmi}
- Release: 20060403
- # list of sources
- Source0: http://www.cpan.org/authors/id/R/RG/RGARCIA/urpmi-%{V_urpmi}.tar.gz
- Source1: http://www.cpan.org/authors/id/R/RG/RGARCIA/URPM-%{V_urpm}.tar.gz
- Source2: http://www.cpan.org/authors/id/R/RG/RGARCIA/MDV-Packdrakeng-%{V_mdv_packdrakeng}.tar.gz
- Source3: http://www.cpan.org/authors/id/R/RG/RGARCIA/MDV-Distribconf-%{V_mdv_distribconf}.tar.gz
- Patch0: urpmi.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg
- PreReq: OpenPKG, openpkg >= 20040130, perl, perl-locale
- AutoReq: no
- AutoReqProv: no
- %description
- URPMI is a frontend for the RedHat Package Manager (RPM).
- %track
- prog urpmi:urpmi = {
- version = %{V_urpmi}
- url = http://www.cpan.org/authors/id/R/RG/RGARCIA/
- regex = urpmi-(__VER__)\.tar\.gz
- }
- prog urpmi:URPM = {
- version = %{V_urpm}
- url = http://www.cpan.org/authors/id/R/RG/RGARCIA/
- regex = URPM-(__VER__)\.tar\.gz
- }
- prog urpmi:MDV-Packdrakeng = {
- version = %{V_mdv_packdrakeng}
- url = http://www.cpan.org/authors/id/R/RG/RGARCIA/
- regex = MDV-Packdrakeng-(__VER__)\.tar\.gz
- }
- prog urpmi:MDV-Distribconf = {
- version = %{V_mdv_distribconf}
- url = http://www.cpan.org/authors/id/R/RG/RGARCIA/
- regex = MDV-Distribconf-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -c
- %setup -q -D -T -a 1
- %setup -q -D -T -a 2
- %setup -q -D -T -a 3
- %patch -p0
- %build
- %install
- rm -rf $RPM_BUILD_ROOT
- ( cd urpmi-%{V_urpmi}
- %{l_shtool} subst \
- -e "s;/etc/urpmi;%{l_prefix}/etc/urpmi;" \
- urpmq urpm/cfg.pm urpm.pm
- ) || exit $?
- %{l_prefix}/bin/perl-openpkg prepare
- %{l_prefix}/bin/perl-openpkg -d MDV-Distribconf-%{V_mdv_distribconf} configure build install
- %{l_prefix}/bin/perl-openpkg -d MDV-Packdrakeng-%{V_mdv_packdrakeng} configure build install
- %{l_prefix}/bin/perl-openpkg -d URPM-%{V_urpm} configure build install
- %{l_prefix}/bin/perl-openpkg -d urpmi-%{V_urpmi} 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
|