head	1.57;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.38
	OPENPKG_E1_MP:1.38
	OPENPKG_E1_MP_2_STABLE:1.31.2.3
	OPENPKG_E1_FP:1.31.2.3
	OPENPKG_2_STABLE_MP:1.34
	OPENPKG_2_STABLE_20061018:1.31.2.2
	OPENPKG_2_STABLE:1.31.0.2
	OPENPKG_CW_FP:1.22
	OPENPKG_1_STABLE_MP:1.9;
locks; strict;
comment	@-- @;


1.57
date	2009.11.13.22.47.54;	author rse;	state Exp;
branches;
next	1.56;
commitid	CCZor283vLVEwpbu;

1.56
date	2009.08.29.08.05.19;	author rse;	state Exp;
branches;
next	1.55;
commitid	Dt2pNaRzEyWk5z1u;

1.55
date	2009.07.03.17.48.05;	author rse;	state Exp;
branches;
next	1.54;
commitid	k0hwMo1N8HiQ8iUt;

1.54
date	2009.04.18.13.09.32;	author rse;	state Exp;
branches;
next	1.53;
commitid	4pHXU27WTIGCZuKt;

1.53
date	2009.04.17.08.46.12;	author rse;	state Exp;
branches;
next	1.52;
commitid	D6t8SGWEar1qClKt;

1.52
date	2008.10.10.16.36.19;	author rse;	state Exp;
branches;
next	1.51;
commitid	d2nvVlQrFaCli6mt;

1.51
date	2008.07.23.17.48.54;	author rse;	state Exp;
branches;
next	1.50;
commitid	LLOK1U1Xc26HeXbt;

1.50
date	2008.04.02.07.44.48;	author rse;	state Exp;
branches;
next	1.49;
commitid	rG0y2BCtLT2EuvXs;

1.49
date	2008.01.01.14.52.21;	author rse;	state Exp;
branches;
next	1.48;
commitid	B8esaHJHoduuKILs;

1.48
date	2007.12.18.07.45.52;	author cs;	state Exp;
branches;
next	1.47;
commitid	SOpN83OovYtgUSJs;

1.47
date	2007.10.31.23.39.56;	author cs;	state Exp;
branches;
next	1.46;
commitid	0IpJ9rcfcmsdJNDs;

1.46
date	2007.10.05.07.09.23;	author cs;	state Exp;
branches;
next	1.45;
commitid	LDPeUdncKVyd5nAs;

1.45
date	2007.09.29.02.20.27;	author cs;	state Exp;
branches;
next	1.44;
commitid	qXx5xkMKkyj3Gzzs;

1.44
date	2007.09.19.08.52.21;	author cs;	state Exp;
branches;
next	1.43;
commitid	MUTLp9tm5ZMqakys;

1.43
date	2007.07.13.05.08.35;	author cs;	state Exp;
branches;
next	1.42;
commitid	Yx5PimumDqtb7zps;

1.42
date	2007.05.10.05.59.19;	author rse;	state Exp;
branches;
next	1.41;
commitid	E2OSyZjolvf8slhs;

1.41
date	2007.03.21.08.53.09;	author cs;	state Exp;
branches;
next	1.40;
commitid	mSnXabvKF4Go1Was;

1.40
date	2007.03.16.07.10.20;	author rse;	state Exp;
branches;
next	1.39;
commitid	hK5RO1tx8cs6Chas;

1.39
date	2007.02.15.05.41.57;	author cs;	state Exp;
branches;
next	1.38;
commitid	R5fa1cM024Xz3y6s;

1.38
date	2007.01.01.17.37.12;	author rse;	state Exp;
branches;
next	1.37;
commitid	BicZD6VUl7GuqP0s;

1.37
date	2006.12.27.23.32.41;	author cs;	state Exp;
branches;
next	1.36;
commitid	0XarmvVRDH5xAd0s;

1.36
date	2006.11.17.08.27.47;	author rse;	state Exp;
branches;
next	1.35;
commitid	RMwZaEx5MKPPRZUr;

1.35
date	2006.11.10.17.56.19;	author cs;	state Exp;
branches;
next	1.34;
commitid	9wPOPnw1rnQOe9Ur;

1.34
date	2006.10.22.14.33.15;	author rse;	state Exp;
branches;
next	1.33;
commitid	a6llmMGdpI01JGRr;

1.33
date	2006.10.21.07.29.34;	author rse;	state Exp;
branches;
next	1.32;
commitid	IQFFh2ufCWdFpwRr;

1.32
date	2006.10.18.10.21.44;	author cs;	state Exp;
branches;
next	1.31;
commitid	tBvPZe78SfpIs9Rr;

1.31
date	2006.10.13.17.27.26;	author thl;	state Exp;
branches
	1.31.2.1;
next	1.30;
commitid	q5GSxzsSDX29XxQr;

1.30
date	2006.08.31.16.33.16;	author rse;	state Exp;
branches;
next	1.29;
commitid	fZJQMdGfodEO31Lr;

1.29
date	2006.08.25.19.16.06;	author rse;	state Exp;
branches;
next	1.28;
commitid	Tvsj1UyQ8rQ89gKr;

1.28
date	2006.07.20.06.15.30;	author rse;	state Exp;
branches;
next	1.27;
commitid	xOVjDvFD18wBZyFr;

1.27
date	2006.05.23.13.02.34;	author rse;	state Exp;
branches;
next	1.26;
commitid	pxxj0mxGGyrO69yr;

1.26
date	2006.05.14.19.03.16;	author rse;	state Exp;
branches;
next	1.25;
commitid	vFlz2KmfQrVuo1xr;

1.25
date	2006.01.01.13.12.49;	author rse;	state Exp;
branches;
next	1.24;
commitid	otZG8yKMCw1JFTfr;

1.24
date	2005.09.17.17.49.19;	author rse;	state Exp;
branches;
next	1.23;

1.23
date	2005.03.24.11.18.36;	author rse;	state Exp;
branches;
next	1.22;

1.22
date	2005.01.06.10.06.22;	author rse;	state Exp;
branches;
next	1.21;

1.21
date	2005.01.01.10.48.27;	author rse;	state Exp;
branches;
next	1.20;

1.20
date	2004.11.02.18.53.57;	author ms;	state Exp;
branches;
next	1.19;

1.19
date	2004.09.20.19.01.35;	author ms;	state Exp;
branches;
next	1.18;

1.18
date	2004.09.20.14.33.20;	author rse;	state Exp;
branches;
next	1.17;

1.17
date	2004.07.30.14.03.02;	author ms;	state Exp;
branches;
next	1.16;

1.16
date	2004.02.07.17.54.11;	author rse;	state Exp;
branches;
next	1.15;

1.15
date	2004.02.03.20.00.18;	author rse;	state Exp;
branches;
next	1.14;

1.14
date	2004.01.23.13.08.06;	author rse;	state Exp;
branches;
next	1.13;

1.13
date	2004.01.20.23.59.34;	author thl;	state Exp;
branches;
next	1.12;

1.12
date	2003.12.08.15.43.25;	author ms;	state Exp;
branches;
next	1.11;

1.11
date	2003.11.24.19.31.09;	author rse;	state Exp;
branches;
next	1.10;

1.10
date	2003.08.11.13.19.21;	author mlelstv;	state Exp;
branches;
next	1.9;

1.9
date	2003.07.22.08.10.42;	author rse;	state Exp;
branches;
next	1.8;

1.8
date	2003.07.21.14.28.37;	author mlelstv;	state Exp;
branches;
next	1.7;

1.7
date	2003.07.19.17.05.48;	author rse;	state Exp;
branches;
next	1.6;

1.6
date	2003.07.17.15.32.33;	author thl;	state Exp;
branches;
next	1.5;

1.5
date	2003.07.10.07.50.19;	author rse;	state Exp;
branches;
next	1.4;

1.4
date	2003.07.08.14.39.04;	author rse;	state Exp;
branches;
next	1.3;

1.3
date	2003.07.07.10.52.08;	author mlelstv;	state Exp;
branches;
next	1.2;

1.2
date	2003.06.09.16.11.35;	author rse;	state Exp;
branches;
next	1.1;

1.1
date	2003.06.06.09.22.24;	author cs;	state Exp;
branches;
next	;

1.31.2.1
date	2006.10.13.17.27.26;	author rse;	state dead;
branches;
next	1.31.2.2;
commitid	iZxwRSmmWscPXUQr;

1.31.2.2
date	2006.10.16.14.49.10;	author rse;	state Exp;
branches;
next	1.31.2.3;
commitid	iZxwRSmmWscPXUQr;

1.31.2.3
date	2006.10.22.14.36.40;	author rse;	state Exp;
branches;
next	;
commitid	SmbHJ50JCVmcKGRr;


desc
@@


1.57
log
@upgrading package: cups 1.4.0 -> 1.4.2
@
text
@##
##  cups.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 information
Name:         cups
Summary:      Common Unix Printing System (CUPS)
URL:          http://www.cups.org/
Vendor:       Apple Inc.
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Print
License:      GPL/LGPL (with exceptions)
Version:      1.4.2
Release:      20091113

#   package options
%option       with_ssl   no

#   list of sources
Source0:      http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
Source1:      rc.cups
Source2:      cupsd.conf
Patch0:       cups.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20060823, make, gcc, gcc::with_cxx = yes
PreReq:       OpenPKG, openpkg >= 20060823
BuildPreReq:  zlib, jpeg, png, tiff
PreReq:       zlib, jpeg, png, tiff
%if "%{with_ssl}" == "yes"
BuildPreReq:  openssl
PreReq:       openssl
%endif
AutoReq:      no
AutoReqProv:  no

%description
    CUPS provides a portable printing layer for Unix-based operating
    systems. It has been developed to promote a standard printing
    solution for all Unix vendors and users. CUPS provides the System V
    and Berkeley command-line interfaces and uses the Internet Printing
    Protocol (IPP) as the basis for managing print jobs and queues.

%track
    prog cups = {
        version   = %{version}
        url       = http://www.cups.org/software.php
        regex     = cups-(\d+(\.\d+)+)-source\.tar\.bz2
    }

%prep
    %setup -q
    %patch -p0

%build
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O} %{l_cppflags} -DPID_FILE='\"%{l_prefix}/var/cups/cupsd.pid\"'" \
    CPPFLAGS="%{l_cppflags} -DPID_FILE='\"%{l_prefix}/var/cups/cupsd.pid\"'" \
    LDFLAGS="%{l_ldflags}" \
    LIBS="-lz" \
    ./configure \
        --prefix=%{l_prefix} \
        --bindir=%{l_prefix}/libexec/cups \
        --sbindir=%{l_prefix}/libexec/cups \
        --mandir=%{l_prefix}/man \
        --with-docdir=%{l_prefix}/share/doc/cups \
        --localstatedir=%{l_prefix}/var/cups \
        --with-logdir=%{l_prefix}/var/cups/log \
        --with-rcdir='' \
        --sysconfdir=%{l_prefix}/etc \
        --with-cups-user=%{l_musr} \
        --with-cups-group=%{l_mgrp} \
        --disable-gssapi \
        --disable-slp \
%if "%{with_ssl}" == "yes"
        --enable-ssl \
        --with-openssl-includes=%{l_prefix}/include/openssl \
        --with-openssl-libs=%{l_prefix}/lib \
%else
        --disable-ssl \
%endif
        --disable-pam \
        --disable-shared \
        --without-java \
        --without-perl \
        --without-php \
        --without-python

    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT

    #   install CUPS
    DSTROOT="$RPM_BUILD_ROOT" %{l_make} %{l_mflags} install

    #   make binaries accessable (they have been relocated since most of
    #   them are likely to cause name space conflicts)
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/bin
    for i in cups-config lp lpadmin lpc lpinfo lpmove lpoptions lpq lpr lprm \
        lpstat; do
        ln -s ../libexec/cups/$i $RPM_BUILD_ROOT%{l_prefix}/bin/$i
    done

    #   create run-command script
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.cups} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/

    #   provide default configuration
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE cupsd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/cups/

    #   strip installation
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/cat*
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
    for lang in de fr; do
        rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/$lang                  || true
        rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc/cups/$lang       || true
        rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/cups/templates/$lang || true
    done

    #   generate file list
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
        '%config %{l_prefix}/etc/cups/*'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} cups status 2>/dev/null`
    [ ".$cups_active" = .yes ] && %{l_rc} cups restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} cups stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/cups/log/* >/dev/null 2>&1 || true
    exit 0

@


1.56
log
@upgrading package: cups 1.3.11 -> 1.4.0
@
text
@d34 2
a35 2
Version:      1.4.0
Release:      20090829
@


1.55
log
@upgrading package: cups 1.3.10 -> 1.3.11
@
text
@d34 2
a35 2
Version:      1.3.11
Release:      20090703
@


1.54
log
@bump years in copyright messages
@
text
@d34 2
a35 2
Version:      1.3.10
Release:      20090417
@


1.53
log
@upgrading package: cups 1.3.9 -> 1.3.10
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.52
log
@upgrading package: cups 1.3.8 -> 1.3.9
@
text
@d34 2
a35 2
Version:      1.3.9
Release:      20081010
@


1.51
log
@upgrading package: cups 1.3.7 -> 1.3.8
@
text
@d34 2
a35 2
Version:      1.3.8
Release:      20080723
@


1.50
log
@upgrading package: cups 1.3.5 -> 1.3.7
@
text
@d34 2
a35 2
Version:      1.3.7
Release:      20080402
@


1.49
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version:      1.3.5
Release:      20080101
@


1.48
log
@upgrading package: cups 1.3.4 -> 1.3.5
@
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/>
d35 1
a35 1
Release:      20071218
@


1.47
log
@upgrading package: cups 1.3.3 -> 1.3.4
@
text
@d35 2
a36 2
Version:      1.3.4
Release:      20071101
@


1.46
log
@fix paths
@
text
@d35 2
a36 2
Version:      1.3.3
Release:      20071005
@


1.45
log
@upgrading package: cups 1.3.2 -> 1.3.3
@
text
@d36 1
a36 1
Release:      20070929
d89 1
@


1.44
log
@upgrading package: cups 1.2.12 -> 1.3.2
@
text
@d35 2
a36 2
Version:      1.3.2
Release:      20070919
@


1.43
log
@upgrading package: cups 1.2.11 -> 1.2.12
@
text
@d35 2
a36 2
Version:      1.2.12
Release:      20070713
d96 1
@


1.42
log
@upgrading package: cups 1.2.10 -> 1.2.11
@
text
@d29 1
a29 1
Vendor:       Easy Software Products
d35 2
a36 2
Version:      1.2.11
Release:      20070510
@


1.41
log
@upgrading package: cups 1.2.9 -> 1.2.10
@
text
@d35 2
a36 2
Version:      1.2.10
Release:      20070321
@


1.40
log
@upgrading package: cups 1.2.8 -> 1.2.9
@
text
@d35 2
a36 2
Version:      1.2.9
Release:      20070316
@


1.39
log
@upgrading package: cups 1.2.7 -> 1.2.8
@
text
@d35 2
a36 2
Version:      1.2.8
Release:      20070215
@


1.38
log
@Welcome Year 2007!
@
text
@d35 2
a36 2
Version:      1.2.7
Release:      20061228
@


1.37
log
@cannot kill a temp dir if none has been initialized before
@
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.36
log
@upgrading package: cups 1.2.6 -> 1.2.7
@
text
@d36 1
a36 1
Release:      20061117
@


1.35
log
@upgrading package: cups 1.2.5 -> 1.2.6
@
text
@d35 2
a36 2
Version:      1.2.6
Release:      20061110
@


1.34
log
@merge a contributed patch and the substitutions into a new patch; cleanup the headers and %description
@
text
@d35 2
a36 2
Version:      1.2.5
Release:      20061022
d50 1
a50 1
BuildPreReq:  OpenPKG, openpkg >= 20060823, make, gcc
@


1.33
log
@upgrading package: cups 1.2.4 -> 1.2.5
@
text
@d27 1
a27 1
Summary:      Common Unix Printing System
d34 1
a34 1
License:      GPL/LGPL with exceptions
d36 1
a36 1
Release:      20061021
d63 4
a66 6
    systems. It has been developed by Easy Software Products to promote
    a standard printing solution for all Unix vendors and users.

    CUPS provides the System V and Berkeley command-line interfaces and
    uses the Internet Printing Protocol (IPP) as the basis for managing
    print jobs and queues.
a77 8
    %{l_shtool} subst \
        -e 's;^.SILENT:.*$;;' \
        Makedefs.in
    %{l_shtool} subst \
        -e 's;$libdir/cups;$exec_prefix/libexec/cups;g' \
        -e 's;/spool/cups;/spool;g' \
        config-scripts/cups-directories.m4 \
        configure
@


1.32
log
@upgrading package: cups 1.2.3 -> 1.2.4
@
text
@d35 2
a36 2
Version:      1.2.4
Release:      20061018
@


1.31
log
@new world order for "Packager" and "Distribution" headers
@
text
@d35 2
a36 2
Version:      1.2.3
Release:      20061013
d42 1
a42 1
Source0:      ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
a71 1
        comment   = "rse: FTP service supports active mode only"
d73 2
a74 4
        url       = ftp://ftp.easysw.com/pub/cups/
        regex     = ((\d+\.)+\d+)
        url       = ftp://ftp.easysw.com/pub/cups/__NEWVER__/
        regex     = cups-(__VER__)-source\.tar\.bz2
@


1.31.2.1
log
@file cups.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:49:10 +0000
@
text
@d1 182
@


1.31.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 182
##
##  cups.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 information
Name:         cups
Summary:      Common Unix Printing System
URL:          http://www.cups.org/
Vendor:       Easy Software Products
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Print
License:      GPL/LGPL with exceptions
Version:      1.2.3
Release:      2.20061018

#   package options
%option       with_ssl   no

#   list of sources
Source0:      ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
Source1:      rc.cups
Source2:      cupsd.conf
Patch0:       cups.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, make, gcc
PreReq:       OpenPKG, openpkg >= 2.20061018
BuildPreReq:  zlib, jpeg, png, tiff
PreReq:       zlib, jpeg, png, tiff
%if "%{with_ssl}" == "yes"
BuildPreReq:  openssl
PreReq:       openssl
%endif
AutoReq:      no
AutoReqProv:  no

%description
    CUPS provides a portable printing layer for Unix-based operating
    systems. It has been developed by Easy Software Products to promote
    a standard printing solution for all Unix vendors and users.

    CUPS provides the System V and Berkeley command-line interfaces and
    uses the Internet Printing Protocol (IPP) as the basis for managing
    print jobs and queues.

%track
    prog cups = {
        comment   = "rse: FTP service supports active mode only"
        version   = %{version}
        url       = ftp://ftp.easysw.com/pub/cups/
        regex     = ((\d+\.)+\d+)
        url       = ftp://ftp.easysw.com/pub/cups/__NEWVER__/
        regex     = cups-(__VER__)-source\.tar\.bz2
    }

%prep
    %setup -q
    %patch -p0
    %{l_shtool} subst \
        -e 's;^.SILENT:.*$;;' \
        Makedefs.in
    %{l_shtool} subst \
        -e 's;$libdir/cups;$exec_prefix/libexec/cups;g' \
        -e 's;/spool/cups;/spool;g' \
        config-scripts/cups-directories.m4 \
        configure

%build
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O} %{l_cppflags} -DPID_FILE='\"%{l_prefix}/var/cups/cupsd.pid\"'" \
    CPPFLAGS="%{l_cppflags} -DPID_FILE='\"%{l_prefix}/var/cups/cupsd.pid\"'" \
    LDFLAGS="%{l_ldflags}" \
    LIBS="-lz" \
    ./configure \
        --prefix=%{l_prefix} \
        --bindir=%{l_prefix}/libexec/cups \
        --sbindir=%{l_prefix}/libexec/cups \
        --with-docdir=%{l_prefix}/share/doc/cups \
        --localstatedir=%{l_prefix}/var/cups \
        --with-logdir=%{l_prefix}/var/cups/log \
        --with-rcdir='' \
        --sysconfdir=%{l_prefix}/etc \
        --with-cups-user=%{l_musr} \
        --with-cups-group=%{l_mgrp} \
        --disable-slp \
%if "%{with_ssl}" == "yes"
        --enable-ssl \
        --with-openssl-includes=%{l_prefix}/include/openssl \
        --with-openssl-libs=%{l_prefix}/lib \
%else
        --disable-ssl \
%endif
        --disable-pam \
        --disable-shared \
        --without-java \
        --without-perl \
        --without-php \
        --without-python

    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT

    #   install CUPS
    DSTROOT="$RPM_BUILD_ROOT" %{l_make} %{l_mflags} install

    #   make binaries accessable (they have been relocated since most of
    #   them are likely to cause name space conflicts)
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/bin
    for i in cups-config lp lpadmin lpc lpinfo lpmove lpoptions lpq lpr lprm \
        lpstat; do
        ln -s ../libexec/cups/$i $RPM_BUILD_ROOT%{l_prefix}/bin/$i
    done

    #   create run-command script
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.cups} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/

    #   provide default configuration
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE cupsd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/cups/

    #   strip installation
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/cat*
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
    for lang in de fr; do
        rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/$lang                  || true
        rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc/cups/$lang       || true
        rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/cups/templates/$lang || true
    done

    #   generate file list
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
        '%config %{l_prefix}/etc/cups/*'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} cups status 2>/dev/null`
    [ ".$cups_active" = .yes ] && %{l_rc} cups restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} cups stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/cups/log/* >/dev/null 2>&1 || true
    exit 0

@


1.31.2.3
log
@MFC: latest version; merge a contributed patch and the substitutions into a new patch; cleanup the headers and %description
@
text
@d27 1
a27 1
Summary:      Common Unix Printing System (CUPS)
d34 3
a36 3
License:      GPL/LGPL (with exceptions)
Version:      1.2.5
Release:      2.20061022
d42 1
a42 1
Source0:      http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
d63 6
a68 4
    systems. It has been developed to promote a standard printing
    solution for all Unix vendors and users. CUPS provides the System V
    and Berkeley command-line interfaces and uses the Internet Printing
    Protocol (IPP) as the basis for managing print jobs and queues.
d72 1
d74 4
a77 2
        url       = http://www.cups.org/software.php
        regex     = cups-(\d+(\.\d+)+)-source\.tar\.bz2
d83 8
@


1.30
log
@upgrading package: cups 1.2.2 -> 1.2.3
@
text
@d30 2
a31 2
Packager:     OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release:      20060831
@


1.29
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d35 2
a36 2
Version:      1.2.2
Release:      20060825
@


1.28
log
@upgrading package: cups 1.2.1 -> 1.2.2
@
text
@d36 1
a36 1
Release:      20060720
d50 2
a51 2
BuildPreReq:  OpenPKG, openpkg >= 20040130, make, gcc
PreReq:       OpenPKG, openpkg >= 20040130
@


1.27
log
@upgrading package: cups 1.2.0 -> 1.2.1
@
text
@d35 2
a36 2
Version:      1.2.1
Release:      20060523
@


1.26
log
@upgrading package: cups 1.1.23 -> 1.2.0
@
text
@d35 2
a36 2
Version:      1.2.0
Release:      20060514
@


1.25
log
@adjust copyrights for new year 2006
@
text
@d35 2
a36 2
Version:      1.1.23
Release:      20050917
a90 3
    %{l_shtool} subst \
        -e 's;^\(	$(LN)\) ../sbin/\(accept $(BINDIR)/.*\)$;\1 \2;' \
        systemv/Makefile
d96 2
d118 6
a123 1
        --disable-shared
@


1.24
log
@remember that FTP service supports active mode only
@
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.23
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@d36 1
a36 1
Release:      20050106
d72 1
@


1.22
log
@upgrading package: cups 1.1.22 -> 1.1.23
@
text
@d2 3
a4 4
##  cups.spec -- OpenPKG RPM Specification
##  Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
d30 1
a30 1
Packager:     The OpenPKG Project
@


1.21
log
@Happy New Year 2005
@
text
@d36 2
a37 2
Version:      1.1.22
Release:      20041102
@


1.20
log
@upgrading package: cups 1.1.21 -> 1.1.22
@
text
@d3 3
a5 3
##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2004 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
@


1.19
log
@upgrading package: cups 1.1.20 -> 1.1.21
@
text
@d36 2
a37 2
Version:      1.1.21
Release:      20040920
@


1.18
log
@remove lonely logfile rotation comment in rc files
@
text
@d36 1
a36 1
Version:      1.1.20
@


1.17
log
@apply fixsimilar to http://cvs.openpkg.org/chngview?cn=17929, restarting daemons unconditionally when any logfile rotation happens
@
text
@d37 1
a37 1
Release:      20040730
@


1.16
log
@Mass Commit:
reduce redundancy within .spec files by referencing
macros defining vendor source versions whenever possible.
This was half-way automated and half-way manually edited.
As a result the PMOD activity in 95% of all cases
just means editing the version in one single place, only.
@
text
@d37 1
a37 1
Release:      20040207
@


1.15
log
@Mass-Commit:
- split "Distribution" header into "Distribution" (old) and "Class"
  (new) headers by moving the attached class information.
- embed the vendor version tracking configuration through the
  new "%track" section.
- bump up the OpenPKG bootstrap dependency, because the "Class" header
  and "%track" section are only supported by our latest bootstrap version.
@
text
@d37 1
a37 1
Release:      20040203
d73 1
a73 1
        version   = 1.1.20
@


1.14
log
@bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally
@
text
@d32 2
a33 1
Distribution: OpenPKG [EVAL]
d37 1
a37 1
Release:      20040121
d51 2
a52 2
BuildPreReq:  OpenPKG, openpkg >= 20030718, make, gcc
PreReq:       OpenPKG, openpkg >= 20030718
d70 9
@


1.13
log
@cleanup consistency of options by renaming some of them
@
text
@d3 3
a5 3
##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2003 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
@


1.12
log
@implement PR#202
@
text
@d36 1
a36 1
Release:      20031208
d39 1
a39 1
%option       with_openssl   no
d54 1
a54 1
%if "%{with_openssl}" == "yes"
d101 1
a101 1
%if "%{with_openssl}" == "yes"
@


1.11
log
@upgrading package: cups 1.1.19 -> 1.1.20
@
text
@d36 1
a36 1
Release:      20031124
d154 14
@


1.10
log
@drop broken platform test for Sun != Sparc
@
text
@d35 2
a36 2
Version:      1.1.19
Release:      20030811
@


1.9
log
@cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies
@
text
@d36 1
a36 1
Release:      20030722
@


1.8
log
@%status and pidfile handling
@
text
@d36 1
a36 1
Release:      20030721
@


1.7
log
@replace opXXXX with rcXXXX (PR#207)
@
text
@d36 1
a36 1
Release:      20030719
@


1.6
log
@fix PR#204, use new %{l_value -s ...}
@
text
@d36 1
a36 1
Release:      20030717
d50 2
a51 2
BuildPreReq:  OpenPKG, openpkg >= 20030717, make, gcc
PreReq:       OpenPKG, openpkg >= 20030717
@


1.5
log
@use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable
@
text
@d36 1
a36 1
Release:      20030710
d50 2
a51 2
BuildPreReq:  OpenPKG, openpkg >= 20030710, make, gcc
PreReq:       OpenPKG, openpkg >= 20030710
d130 1
a130 4
    %{l_shtool} install -c -m 755 \
        -e 's;@@l_prefix@@;%{l_prefix};g' \
        -e 's;@@l_susr@@;%{l_susr};g' \
        -e 's;@@l_sgrp@@;%{l_sgrp};g' \
d134 1
a134 5
    %{l_shtool} install -c -m 644 \
        -e 's;@@l_prefix@@;%{l_prefix};g' \
        -e 's;@@l_sgrp@@;%{l_sgrp};g' \
        -e 's;@@l_musr@@;%{l_musr};g' \
        -e 's;@@l_mgrp@@;%{l_mgrp};g' \
@


1.4
log
@cleanup copyright part by using just the main company name of Cable & Wireless and adding the URL to the global website
@
text
@d36 1
a36 1
Release:      20030707
d50 2
a51 2
BuildPreReq:  OpenPKG, openpkg >= 20030103, make, gcc
PreReq:       OpenPKG, openpkg >= 20030103
@


1.3
log
@add libraries to PreReq
@
text
@a2 1
##  Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
d5 1
@


1.2
log
@add missing files and move up to EVAL because required by EVAL package
@
text
@d36 1
a36 1
Release:      20030609
d50 1
a50 1
BuildPreReq:  OpenPKG, openpkg >= 20030103, make, gcc, zlib, jpeg, png, tiff
d52 2
d56 1
@


1.1
log
@new package: cups 1.1.19 (Common Unix Printing System)
Package _not_ usable yet, needs lot of improvements!
@
text
@d32 1
a32 1
Distribution: OpenPKG [JUNK]
d36 1
a36 1
Release:      20030606
@

