head	1.25;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.23
	OPENPKG_E1_MP:1.23
	OPENPKG_CW_FP:1.15;
locks; strict;
comment	@-- @;


1.25
date	2009.04.18.13.11.38;	author rse;	state Exp;
branches;
next	1.24;
commitid	4pHXU27WTIGCZuKt;

1.24
date	2008.01.01.14.56.19;	author rse;	state Exp;
branches;
next	1.23;
commitid	B8esaHJHoduuKILs;

1.23
date	2007.01.01.17.38.56;	author rse;	state Exp;
branches;
next	1.22;
commitid	BicZD6VUl7GuqP0s;

1.22
date	2006.10.13.17.29.11;	author thl;	state Exp;
branches;
next	1.21;
commitid	q5GSxzsSDX29XxQr;

1.21
date	2006.09.23.10.27.23;	author rse;	state Exp;
branches;
next	1.20;
commitid	xvD5iZbOK9zsiWNr;

1.20
date	2006.06.30.06.36.26;	author rse;	state Exp;
branches;
next	1.19;
commitid	rARWnyJmZ21DKZCr;

1.19
date	2006.01.01.13.15.11;	author rse;	state Exp;
branches;
next	1.18;
commitid	otZG8yKMCw1JFTfr;

1.18
date	2005.11.21.08.45.26;	author thl;	state Exp;
branches;
next	1.17;
commitid	yzDOX0BH6prizBar;

1.17
date	2005.09.28.19.44.20;	author thl;	state Exp;
branches;
next	1.16;

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

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

1.14
date	2004.10.26.12.38.37;	author tho;	state Exp;
branches;
next	1.13;

1.13
date	2004.09.20.16.17.21;	author rse;	state Exp;
branches;
next	1.12;

1.12
date	2004.08.03.07.58.45;	author tho;	state Exp;
branches;
next	1.11;

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

1.10
date	2004.02.07.17.55.55;	author rse;	state Exp;
branches;
next	1.9;

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

1.8
date	2004.01.23.13.10.08;	author rse;	state Exp;
branches;
next	1.7;

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

1.6
date	2003.09.05.11.21.26;	author ms;	state Exp;
branches;
next	1.5;

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

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

1.3
date	2003.08.31.07.20.03;	author rse;	state Exp;
branches;
next	1.2;

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

1.1
date	2003.08.18.18.21.34;	author rse;	state Exp;
branches;
next	;


desc
@@


1.25
log
@bump years in copyright messages
@
text
@##
##  kde-libs.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_kde      3.5.3
%define       V_libs     3.5.3

#   package information
Name:         kde-libs
Summary:      K Desktop Environment (Common Libraries)
URL:          http://www.kde.org/
Vendor:       KDE Project
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        JUNK
Group:        XWindow
License:      GPL
Version:      %{V_libs}
Release:      20080101

#   list of sources
Source0:      ftp://ftp.kde.org/pub/kde/stable/%{V_kde}/src/kdelibs-%{V_libs}.tar.bz2
Patch0:       kde-libs.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, make, pkgconfig
PreReq:       OpenPKG, openpkg >= 20040130
BuildPreReq:  X11, kde-qt >= 3.2.3-20040406, kde-arts >= 1.2.1, pcre, openssl, libxml, libxslt, gettext, glib2
PreReq:       X11, kde-qt >= 3.2.3-20040406, kde-arts >= 1.2.1, pcre, openssl, libxml, libxslt, gettext, glib2
AutoReq:      no
AutoReqProv:  no

%description
    KDE is a powerful Open Source graphical desktop environment for Unix
    workstations. It combines ease of use, contemporary functionality,
    and outstanding graphical design with the technological superiority
    of the Unix operating system.

    This part is the KDE Common Libraries.

%track
    prog kde-libs = {
        disabled
        comment   = "rse: requires kde-arts which is broken"
        version   = %{version}
        url       = ftp://ftp.kde.org/pub/kde/stable/
        regex     = (\d+\.\d+\.\d+)
        url       = ftp://ftp.kde.org/pub/kde/stable/__NEWVER__/src/
        regex     = kdelibs-(__VER__)\.tar\.bz2
    }

%prep
    %setup -q -n kdelibs-%{V_libs}
    %patch -p0

    #   GCC 3.3 with -pedantic is too restrictive for most vendor system headers.
    %{l_shtool} subst \
        -e 's;-pedantic;;' \
        configure

    #   make sure KDE does search for binaries inside OpenPKG first
    %{l_shtool} subst -s \
        -e 's;\(kde_default_bindirs\)="[^"]*";\1="%{l_prefix}/libexec/kde %{l_prefix}/bin /bin /sbin /usr/bin /usr/sbin";' \
        configure

%build
    #   set standard KDE/Qt build environment
    export CC="%{l_cc} `%{l_prefix}/bin/pkg-config --libs-only-L kde-qt`"
    export CXX="%{l_cxx} `%{l_prefix}/bin/pkg-config --libs-only-L kde-qt`"
    export CFLAGS="`%{l_prefix}/bin/pkg-config --cflags-only-other kde-qt` %{l_cflags -O}"
    export CXXFLAGS="`%{l_prefix}/bin/pkg-config --cflags-only-other kde-qt` %{l_cxxflags -O}"
    export CPPFLAGS="`%{l_prefix}/bin/pkg-config --cflags-only-I kde-qt` %{l_cppflags}"
    export LDFLAGS="`%{l_prefix}/bin/pkg-config --libs-only-L kde-qt` %{l_ldflags}"
    #   export LIBS="`%{l_prefix}/bin/pkg-config --libs-only-l --libs-only-other kde-qt`"
    export PATH="%{l_prefix}/libexec/kde:`%{l_rc} --query x11_bindir`:$PATH"
    export LD_LIBRARY_PATH="%{l_prefix}/lib/kde:${LD_LIBRARY_PATH-/usr/lib}"
    export MOC="%{l_prefix}/libexec/kde/moc"
    export UIC_PATH="%{l_prefix}/libexec/kde/uic"
    export HOME="`pwd`"

    #   set KDE/Qt installation paths
    export KDEDIR="%{l_prefix}"
    export kde_htmldir='%{l_prefix}/share/kde/doc/HTML'
    export kde_appsdir='%{l_prefix}/share/kde/applnk'
    export kde_icondir='%{l_prefix}/share/kde/icons'
    export kde_sounddir='%{l_prefix}/share/kde/sounds'
    export kde_datadir='%{l_prefix}/share/kde/apps'
    export kde_locale='%{l_prefix}/share/kde/locale'
    export kde_confdir='%{l_prefix}/share/kde/config'
    export kde_mimedir='%{l_prefix}/share/kde/mimelnk'
    export kde_toolbardir='%{l_prefix}/share/kde/toolbar'
    export kde_wallpaperdir='%{l_prefix}/share/kde/wallpapers'
    export kde_templatesdir='%{l_prefix}/share/kde/templates'
    export kde_servicesdir='%{l_prefix}/share/kde/services'
    export kde_servicetypesdir='%{l_prefix}/share/kde/servicetypes'
    export kde_bindir='%{l_prefix}/libexec/kde'
    export kde_cgidir='%{l_prefix}/lib/kde/cgi'
    export kde_moduledir='%{l_prefix}/lib/kde/modules'
    export kde_styledir='%{l_prefix}/lib/kde/plugins/styles'
    export kde_widgetdir='%{l_prefix}/lib/kde/plugins/designer'

    #   configure package
    ./configure \
        --prefix=%{l_prefix} \
        --bindir=%{l_prefix}/libexec/kde \
        --includedir=%{l_prefix}/include/kde \
        --libdir=%{l_prefix}/lib/kde \
        --datadir=%{l_prefix}/share/kde \
        --localstatedir=%{l_prefix}/var/kde \
        --with-x \
        --x-includes=`%{l_rc} --query x11_incdir` \
        --x-libraries=`%{l_rc} --query x11_libdir` \
        --with-qt-dir=%{l_prefix} \
        --with-qt-includes=%{l_prefix}/include/kde/qt \
        --with-qt-libraries=%{l_prefix}/lib/kde \
        --with-extra-includes=%{l_prefix}/include \
        --with-extra-libs=%{l_prefix}/lib \
        --with-ssl-dir=%{l_prefix} \
        --disable-cups \
        --disable-libfam \
        --disable-debug \
        --enable-pcre \
        --disable-static \
        --enable-shared

    #   we will have to delete the reference to the pcre lib to prevent static linkage at buildtime
    %{l_shtool} subst \
        -e '/^LIBPCRE/s; -lpcreposix -lpcre;;' \
        `find . -name Makefile -type f -print`
    #   build package
    %{l_make} %{l_mflags -O}

%install
    #   install package
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"

    #   strip down installation
    strip $RPM_BUILD_ROOT%{l_prefix}/libexec/kde/* >/dev/null 2>&1 || true

    #   post-adjust installation
    mv "$RPM_BUILD_ROOT%{l_prefix}/share/kde/config/colors/40 Colors" \
       "$RPM_BUILD_ROOT%{l_prefix}/share/kde/config/colors/40-Colors"

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.24
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.23
log
@Welcome Year 2007!
@
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:      20061013
@


1.22
log
@new world order for "Packager" and "Distribution" headers
@
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.21
log
@adjust Group header
@
text
@d34 2
a35 2
Packager:     OpenPKG
Distribution: OpenPKG
d40 1
a40 1
Release:      20060923
@


1.20
log
@downgrade KDE stuff to JUNK as it is broken since a longer time
@
text
@d37 1
a37 1
Group:        KDE
d40 1
a40 1
Release:      20060630
@


1.19
log
@adjust copyrights for new year 2006
@
text
@d26 2
a27 2
%define       V_kde      3.4.2
%define       V_libs     3.4.2
d36 1
a36 1
Class:        EVAL
d40 1
a40 1
Release:      20051121
d66 2
a67 1
        comment   = "thl/3.4.2: requires kde-arts which is currently broken"
@


1.18
log
@log annoying and sometimes long standing problems to get them out of sight
@
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.17
log
@upgrading package: kde-libs 3.3.1 -> 3.4.2
@
text
@d40 1
a40 1
Release:      20050928
d66 1
@


1.16
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
@d26 2
a27 2
%define       V_kde      3.3.1
%define       V_libs     3.3.1
d40 1
a40 1
Release:      20041026
d44 1
d51 2
a52 2
BuildPreReq:  X11, kde-qt >= 3.2.3-20040406, kde-arts >= 1.2.1, pcre, openssl, libxml, libxslt, gettext
PreReq:       X11, kde-qt >= 3.2.3-20040406, kde-arts >= 1.2.1, pcre, openssl, libxml, libxslt, gettext
d75 1
a81 5
    #   redirect back datadir based locations
    %{l_shtool} subst -s \
        -e 's;${prefix}/share/;${datadir};' \
        `find . -name Makefile.in -type f -print`

@


1.15
log
@Happy New Year 2005
@
text
@d2 3
a4 4
##  kde-libs.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/>
d34 1
a34 1
Packager:     The OpenPKG Project
@


1.14
log
@upgrading package: kde-libs 3.2.3 -> 3.3.1
@
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.13
log
@Cleanup: %{l_prefix}/etc/rc -> %{l_rc}
@
text
@d27 2
a28 2
%define       V_kde      3.2.3
%define       V_libs     3.2.3
d41 1
a41 1
Release:      20040920
a44 1
Patch0:       kde-libs.patch
a74 1
    %patch -p0
@


1.12
log
@upgrading package: kde-libs 3.2.1 -> 3.2.3
@
text
@d41 1
a41 1
Release:      20040803
d102 1
a102 1
    export PATH="%{l_prefix}/libexec/kde:`%{l_prefix}/etc/rc --query x11_bindir`:$PATH"
d138 2
a139 2
        --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
        --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
@


1.11
log
@upgrading package: kde-libs 3.1.4 -> 3.2.1
@
text
@d27 2
a28 2
%define       V_kde      3.2.1
%define       V_libs     3.2.1
d41 1
a41 1
Release:      20040406
a145 1
        --enable-pcre \
d149 1
d153 4
@


1.10
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
@d27 2
a28 2
%define       V_kde      3.1.4
%define       V_libs     3.1.4
d41 1
a41 1
Release:      20040207
d45 1
d52 2
a53 2
BuildPreReq:  X11, kde-qt, kde-arts, pcre, openssl, libxml, libxslt, gettext
PreReq:       X11, kde-qt, kde-arts, pcre, openssl, libxml, libxslt, gettext
d76 1
d101 1
a101 1
    export LIBS="`%{l_prefix}/bin/pkg-config --libs-only-l --libs-only-other kde-qt`"
d146 1
a146 1
        --disable-pcre \
@


1.9
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
@d41 1
a41 1
Release:      20040203
d66 1
a66 1
        version   = 3.1.4
@


1.8
log
@bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally
@
text
@d36 2
a37 1
Distribution: OpenPKG [EVAL]
d41 1
a41 1
Release:      20030918
d49 2
a50 2
BuildPreReq:  OpenPKG, openpkg >= 20030103, gcc, make, pkgconfig
PreReq:       OpenPKG, openpkg >= 20030103
d63 9
@


1.7
log
@upgrading package: kde-libs 3.1.3a -> 3.1.4
@
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.6
log
@Added missing dependency to pkgconfig
@
text
@d27 2
a28 2
%define       V_kde      3.1.3
%define       V_libs     3.1.3a
d40 1
a40 1
Release:      20030905
@


1.5
log
@try to fix paths by expanding it during config time
@
text
@d40 1
a40 1
Release:      20030831
d48 1
a48 1
BuildPreReq:  OpenPKG, openpkg >= 20030103, gcc, make
@


1.4
log
@do not pick up libfam accidently
@
text
@d98 18
a115 18
    export kde_htmldir='\${prefix}/share/kde/doc/HTML'
    export kde_appsdir='\${prefix}/share/kde/applnk'
    export kde_icondir='\${prefix}/share/kde/icons'
    export kde_sounddir='\${prefix}/share/kde/sounds'
    export kde_datadir='\${prefix}/share/kde/apps'
    export kde_locale='\${prefix}/share/kde/locale'
    export kde_confdir='\${prefix}/share/kde/config'
    export kde_mimedir='\${prefix}/share/kde/mimelnk'
    export kde_toolbardir='\${prefix}/share/kde/toolbar'
    export kde_wallpaperdir='\${prefix}/share/kde/wallpapers'
    export kde_templatesdir='\${prefix}/share/kde/templates'
    export kde_servicesdir='\${prefix}/share/kde/services'
    export kde_servicetypesdir='\${prefix}/share/kde/servicetypes'
    export kde_bindir='\${exec_prefix}/libexec/kde'
    export kde_cgidir='\${exec_prefix}/lib/kde/cgi'
    export kde_moduledir='\${prefix}/lib/kde/modules'
    export kde_styledir='\${prefix}/lib/kde/plugins/styles'
    export kde_widgetdir='\${prefix}/lib/kde/plugins/designer'
@


1.3
log
@make sure KDE does search for binaries inside OpenPKG first
@
text
@d136 1
@


1.2
log
@make sure OpenPKG Qt is found before a possibly existing Qt inside the vendor X11R6 area
@
text
@d40 1
a40 1
Release:      20030830
d75 5
@


1.1
log
@new package: kde-libs 3.1.3a (K Desktop Environment (Common Libraries))
@
text
@d40 1
a40 1
Release:      20030818
d78 2
a79 2
    export CC="%{l_cc}"
    export CXX="%{l_cxx}"
@

