head	1.16;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.10
	OPENPKG_E1_MP:1.10
	OPENPKG_E1_MP_2_STABLE:1.7.2.2
	OPENPKG_E1_FP:1.7.2.2
	OPENPKG_2_STABLE_MP:1.7
	OPENPKG_2_STABLE_20061018:1.7.2.2
	OPENPKG_2_STABLE:1.7.0.2;
locks; strict;
comment	@-- @;


1.16
date	2009.04.18.13.19.38;	author rse;	state Exp;
branches;
next	1.15;
commitid	4pHXU27WTIGCZuKt;

1.15
date	2008.01.01.15.08.04;	author rse;	state Exp;
branches;
next	1.14;
commitid	B8esaHJHoduuKILs;

1.14
date	2007.04.10.16.57.29;	author rse;	state Exp;
branches;
next	1.13;
commitid	HQam1azA0OnI3yds;

1.13
date	2007.03.15.16.23.24;	author cs;	state Exp;
branches;
next	1.12;
commitid	AxAapd7a1JMPHcas;

1.12
date	2007.03.08.08.30.08;	author cs;	state Exp;
branches;
next	1.11;
commitid	KKLUkwQ3WcUpjg9s;

1.11
date	2007.01.08.06.15.43;	author rse;	state Exp;
branches;
next	1.10;
commitid	PlWUT70DgnxTsF1s;

1.10
date	2007.01.01.17.53.11;	author rse;	state Exp;
branches;
next	1.9;
commitid	sIHmhzse6Tp7yP0s;

1.9
date	2007.01.01.17.43.12;	author rse;	state Exp;
branches;
next	1.8;
commitid	BicZD6VUl7GuqP0s;

1.8
date	2006.11.14.12.25.34;	author rse;	state Exp;
branches;
next	1.7;
commitid	qDhBUpSjxqCnhDUr;

1.7
date	2006.10.13.17.36.17;	author thl;	state Exp;
branches
	1.7.2.1;
next	1.6;
commitid	q5GSxzsSDX29XxQr;

1.6
date	2006.05.16.10.02.21;	author rse;	state Exp;
branches;
next	1.5;
commitid	LBGrmh7QNxyXkexr;

1.5
date	2006.02.22.17.51.51;	author rse;	state Exp;
branches;
next	1.4;
commitid	Pl5lk3vChbrrBBmr;

1.4
date	2006.01.01.13.24.50;	author rse;	state Exp;
branches;
next	1.3;
commitid	otZG8yKMCw1JFTfr;

1.3
date	2005.08.01.12.33.31;	author thl;	state Exp;
branches;
next	1.2;

1.2
date	2005.05.30.16.08.00;	author ms;	state Exp;
branches;
next	1.1;

1.1
date	2005.05.30.15.54.58;	author ms;	state Exp;
branches;
next	;

1.7.2.1
date	2006.10.13.17.36.17;	author rse;	state dead;
branches;
next	1.7.2.2;
commitid	iZxwRSmmWscPXUQr;

1.7.2.2
date	2006.10.16.14.58.43;	author rse;	state Exp;
branches;
next	;
commitid	iZxwRSmmWscPXUQr;


desc
@@


1.16
log
@bump years in copyright messages
@
text
@##
##  yum.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.
##

#   package version
%define       V_yum_major  3.0
%define       V_yum_minor  6

#   package information
Name:         yum
Summary:      Automatic RPM Updater and Installer
URL:          http://linux.duke.edu/projects/yum/
Vendor:       Seth Vidal
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Bootstrapping
License:      GPL
Version:      %{V_yum_major}.%{V_yum_minor}
Release:      20080101

#   list of sources
Source0:      http://linux.duke.edu/projects/yum/download/%{V_yum_major}/yum-%{version}.tar.gz

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20040130, python, make
PreReq:       OpenPKG, openpkg >= 20040130, python
AutoReq:      no
AutoReqProv:  no

%description
    Yum is a utility that can check for and automatically download
    and install updated RPM packages. Dependencies are obtained and
    downloaded automatically prompting the user as necessary.

%track
    prog yum = {
        version   = %{version}
        url       = http://linux.duke.edu/projects/yum/download/
        regex     = (%{V_yum_major})
        url       = http://linux.duke.edu/projects/yum/download/__NEWVER__/
        regex     = yum-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %{l_shtool} subst \
        -e 's;\(DESTDIR[})/\]]*\)/usr;\1%{l_prefix};g' \
        -e 's;\(DESTDIR[})/\]]*\)/etc;\1%{l_prefix}/etc/yum;g' \
        -e 's;/share/yum-cli;/lib/python/site-packages/yum-cli;g' \
        -e 's;/share/man;/man;g' \
        docs/Makefile etc/Makefile Makefile
    %{l_shtool} subst \
        -e 's;$(PYVER);;g' \
        yum/Makefile rpmUtils/Makefile
    find . -name "*.py" -print |\
    xargs %{l_shtool} subst \
        -e 's;^#!/usr/bin/python;#!%{l_prefix}/bin/python;'

%build
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/lib \
        $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
        $RPM_BUILD_ROOT%{l_prefix}/man/man8
    %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/yum/rc.d
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/yum/logrotate.d
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/yum/dbus-1
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%config %{l_prefix}/etc/yum/*/*.conf'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.15
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.14
log
@upgrading package: yum 3.0.5 -> 3.0.6
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d39 1
a39 1
Release:      20070410
@


1.13
log
@upgrading package: yum 3.0.4 -> 3.0.5
@
text
@d27 1
a27 1
%define       V_yum_minor  5
d40 1
a40 1
Release:      20070315
@


1.12
log
@upgrading package: yum 3.0.3 -> 3.0.4
@
text
@d27 1
a27 1
%define       V_yum_minor  4
d40 1
a40 1
Release:      20070308
@


1.11
log
@upgrading package: yum 3.0.2 -> 3.0.3
@
text
@d27 1
a27 1
%define       V_yum_minor  3
d40 1
a40 1
Release:      20070108
@


1.10
log
@upgrading package: yum 3.0.1 -> 3.0.2
@
text
@d27 1
a27 1
%define       V_yum_minor  2
d40 1
a40 1
Release:      20070101
@


1.9
log
@Welcome Year 2007!
@
text
@d27 1
a27 1
%define       V_yum_minor  1
d40 1
a40 1
Release:      20061114
d77 1
a77 1
        yum/Makefile rpmUtils/Makefile repomd/Makefile
@


1.8
log
@upgrading package: yum 2.4.3 -> 3.0.1
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
@


1.7
log
@new world order for "Packager" and "Distribution" headers
@
text
@d26 2
a27 2
%define       V_yum_major  2.4
%define       V_yum_minor  3
d40 1
a40 1
Release:      20061013
d78 3
a80 4
    %{l_shtool} subst \
        -e 's;^#!/usr/bin/python;#!%{l_prefix}/bin/python;' \
        `find . -name "*.py" -print` \
        bin/yum-arch
d92 6
a97 1
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
@


1.7.2.1
log
@file yum.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:58:43 +0000
@
text
@d1 99
@


1.7.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 99
##
##  yum.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.
##

#   package version
%define       V_yum_major  2.4
%define       V_yum_minor  3

#   package information
Name:         yum
Summary:      Automatic RPM Updater and Installer
URL:          http://linux.duke.edu/projects/yum/
Vendor:       Seth Vidal
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Bootstrapping
License:      GPL
Version:      %{V_yum_major}.%{V_yum_minor}
Release:      2.20061018

#   list of sources
Source0:      http://linux.duke.edu/projects/yum/download/%{V_yum_major}/yum-%{version}.tar.gz

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, python, make
PreReq:       OpenPKG, openpkg >= 2.20061018, python
AutoReq:      no
AutoReqProv:  no

%description
    Yum is a utility that can check for and automatically download
    and install updated RPM packages. Dependencies are obtained and
    downloaded automatically prompting the user as necessary.

%track
    prog yum = {
        version   = %{version}
        url       = http://linux.duke.edu/projects/yum/download/
        regex     = (%{V_yum_major})
        url       = http://linux.duke.edu/projects/yum/download/__NEWVER__/
        regex     = yum-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %{l_shtool} subst \
        -e 's;\(DESTDIR[})/\]]*\)/usr;\1%{l_prefix};g' \
        -e 's;\(DESTDIR[})/\]]*\)/etc;\1%{l_prefix}/etc/yum;g' \
        -e 's;/share/yum-cli;/lib/python/site-packages/yum-cli;g' \
        -e 's;/share/man;/man;g' \
        docs/Makefile etc/Makefile Makefile
    %{l_shtool} subst \
        -e 's;$(PYVER);;g' \
        yum/Makefile rpmUtils/Makefile repomd/Makefile
    %{l_shtool} subst \
        -e 's;^#!/usr/bin/python;#!%{l_prefix}/bin/python;' \
        `find . -name "*.py" -print` \
        bin/yum-arch

%build
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/lib \
        $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
        $RPM_BUILD_ROOT%{l_prefix}/man/man8
    %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.6
log
@upgrading package: yum 2.4.2 -> 2.4.3
@
text
@d34 2
a35 2
Packager:     OpenPKG
Distribution: OpenPKG
d40 1
a40 1
Release:      20060516
@


1.5
log
@upgrade to latest Yum version. Submitted by: skaar <skaar@@waste.org>
@
text
@d27 1
a27 1
%define       V_yum_minor  2
d40 1
a40 1
Release:      20060222
@


1.4
log
@adjust copyrights for new year 2006
@
text
@a24 4
#   FIXME MSvB: builds well but breaks at runtime due to
#   FIXME MSvB: missing python dependencies as indicated in
#   FIXME MSvB: %{l_prefix}/lib/python/site-packages/yum/__init__.py

d26 1
a26 1
%define       V_yum_major  2.2
d40 1
a40 1
Release:      20050801
d54 3
a56 3
    Yum is a utility that can check for and automatically download and
    install updated RPM packages. Dependencies are obtained and downloaded
    automatically prompting the user as necessary.
d62 1
a62 1
        regex     = (2\.2)
d70 5
a74 8
        -e 's;\(mkdir -p \)\(\$(DESTDIR)/usr/share/man/man\){5,8};\1\2-5 \2-8;g' \
        -e 's;man-\([0-9]\);man\1;g' \
        docs/Makefile
    %{l_shtool} subst \
        -e 's;\(DESTDIR[})/\]]*\);\1%{l_prefix};g' \
        docs/Makefile \
        etc/Makefile \
        Makefile
d76 2
a77 2
        -e 's;\(DESTDIR=`cd \$(DESTDIR)\)/cw\(\; pwd`\);\1\2;g' \
        Makefile
a81 6
    %{l_shtool} subst \
        -e 's;/usr/share;%{l_prefix}/share;g' \
        -e 's;share/yum-cli;share/yum;g' \
        bin/* \
        *.pyc \
        *.py
d88 4
a91 1
    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib
a92 3
    ( cd $RPM_BUILD_ROOT%{l_prefix}/usr && mv bin share .. ) || exit $?
    rmdir $RPM_BUILD_ROOT%{l_prefix}/usr
    ( cd $RPM_BUILD_ROOT%{l_prefix}/share && mv yum-cli yum ) || exit $?
@


1.3
log
@upgrading package: yum 2.2.1 -> 2.2.2
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
@


1.2
log
@change from french name standard to new german for consistency with other packages
@
text
@d31 1
a31 1
%define       V_yum_minor  1
d44 1
a44 1
Release:      20050530
d101 1
a105 1
    ( cd $RPM_BUILD_ROOT%{l_prefix}/lib && mv python* python ) || exit $?
@


1.1
log
@new package: yum 2.2.1 (Automatic RPM Updater and Installer)
@
text
@d37 1
a37 1
Vendor:       Seth VIDAL
@

