head	1.23;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.21
	OPENPKG_E1_MP:1.21
	OPENPKG_CW_FP:1.13;
locks; strict;
comment	@-- @;


1.23
date	2009.04.18.13.11.38;	author rse;	state Exp;
branches;
next	1.22;
commitid	4pHXU27WTIGCZuKt;

1.22
date	2008.01.01.14.56.19;	author rse;	state Exp;
branches;
next	1.21;
commitid	B8esaHJHoduuKILs;

1.21
date	2007.01.01.17.38.55;	author rse;	state Exp;
branches;
next	1.20;
commitid	BicZD6VUl7GuqP0s;

1.20
date	2006.10.16.14.26.33;	author rse;	state Exp;
branches;
next	1.19;
commitid	Y97pc24IWAoGSUQr;

1.19
date	2006.10.13.17.29.11;	author thl;	state Exp;
branches;
next	1.18;
commitid	q5GSxzsSDX29XxQr;

1.18
date	2006.09.23.10.27.22;	author rse;	state Exp;
branches;
next	1.17;
commitid	xvD5iZbOK9zsiWNr;

1.17
date	2006.06.30.06.36.27;	author rse;	state Exp;
branches;
next	1.16;
commitid	rARWnyJmZ21DKZCr;

1.16
date	2006.01.01.13.15.10;	author rse;	state Exp;
branches;
next	1.15;
commitid	otZG8yKMCw1JFTfr;

1.15
date	2005.11.21.08.45.25;	author thl;	state Exp;
branches;
next	1.14;
commitid	yzDOX0BH6prizBar;

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

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

1.12
date	2004.09.20.16.17.20;	author rse;	state Exp;
branches;
next	1.11;

1.11
date	2004.08.07.17.56.42;	author ms;	state Exp;
branches;
next	1.10;

1.10
date	2004.08.06.09.34.43;	author tho;	state Exp;
branches;
next	1.9;

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

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

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

1.6
date	2003.09.19.11.25.25;	author rse;	state Exp;
branches;
next	1.5;

1.5
date	2003.09.05.11.19.06;	author ms;	state Exp;
branches;
next	1.4;

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

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

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

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


desc
@@


1.23
log
@bump years in copyright messages
@
text
@##
##  kde-base.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_base     3.5.3

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

#   list of sources
Source0:      ftp://ftp.kde.org/pub/kde/stable/%{V_kde}/src/kdebase-%{V_base}.tar.bz2
Patch0:       kde-base.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, make, pkgconfig
PreReq:       OpenPKG, openpkg >= 20040130
BuildPreReq:  X11, kde-qt, kde-arts, kde-libs, openssl, gettext
PreReq:       X11, kde-qt, kde-arts, kde-libs, openssl, gettext
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 Base Components.

%track
    prog kde-base = {
        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     = kdebase-(__VER__)\.tar\.bz2
    }

%prep
    %setup -q -n kdebase-%{V_base}
    %patch -p0

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

    #   adjust hardcoded paths
    %{l_shtool} subst \
        -e 's;kde3\(/plugins/designer\);kde\1;g' \
        configure

    #   fix UIC check
    %{l_shtool} subst \
        -e 's;grep klineedit;grep -i klineedit;g' \
        configure

    #   deactivate unsafe chown root operations
    %{l_shtool} subst \
        -e 's;-m 4755 -o root;-m 4755;g' \
        configure

    #   redirect false datadir based locations
    %{l_shtool} subst -s \
        -e 's;$(prefix)/share/;$(datadir);' \
        `find . -name Makefile.in -type f -print`

    #   make sure KDE searches 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`"
    export KDECONFIG="%{l_prefix}/libexec/kde/kde-config"

    #   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
    export DO_NOT_COMPILE="kdm"
    ./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} \
        --without-java \
        --without-motif \
        --disable-debug \
        --enable-rpath \
        --disable-static \
        --enable-shared

    #   prevent linking of static libraries to early in the build process
    %{l_shtool} subst \
        -e 's;\-lXrender;;g' \
        -e 's;\-lexpat;;g' \
        -e 's;\-lfreetype;;g' \
        -e 's;\-lfontconfig;;g' \
        kate/interfaces/Makefile \
        kcontrol/background/Makefile \
        kcontrol/filetypes/Makefile \
        kcontrol/input/Makefile \
        kcontrol/style/Makefile \
        kcontrol/kcontrol/Makefile \
        kcontrol/colors/Makefile \
        kcontrol/fonts/Makefile \
        kcontrol/kfontinst/lib/Makefile \
        kfind/Makefile \
        khotkeys/kcontrol/ui/Makefile \
        khotkeys/shared/Makefile \
        kicker/share/Makefile \
        kicker/core/Makefile \
        kicker/buttons/Makefile \
        kicker/ui/Makefile \
        klipper/Makefile \
        ksplashml/themeengine/default/Makefile \
        ksplashml/themeengine/redmond/Makefile \
        ksplashml/themeengine/standard/Makefile \
        ksysguard/gui/SensorDisplayLib/Makefile \
        libkonq/Makefile

    #   if linked with static libraries, order is important
    %{l_shtool} subst \
        -e '/^kfontinst_LDADD = /s;\(\$(LIBFONTCONFIG_LIBS) \$(LIBFREETYPE_LIBS)\) \(\$(LIB_KDECORE) \.\./lib/libkfontinst.la\);\2 \1;' \
        kcontrol/kfontinst/kfontinst/Makefile

    #   add directives for pcre where needed
    %{l_shtool} subst \
        -e '/LIBS = /s;\(\-lqt-mt\);\-lpcreposix \-lpcre \1;g' \
        khelpcenter/Makefile \
        kdesktop/kwebdesktop/Makefile

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

%install
    #   set minimal KDE/Qt run-time environment
    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}"

    #   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

    #   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.22
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.21
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:      20061016
@


1.20
log
@downgrade KDE stuff to JUNK
@
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.19
log
@new world order for "Packager" and "Distribution" headers
@
text
@d36 1
a36 1
Class:        EVAL
d40 1
a40 1
Release:      20061013
@


1.18
log
@adjust Group header
@
text
@d34 2
a35 2
Packager:     OpenPKG
Distribution: OpenPKG
d40 1
a40 1
Release:      20060923
@


1.17
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.16
log
@adjust copyrights for new year 2006
@
text
@d26 2
a27 2
%define       V_kde      3.2.3
%define       V_base     3.2.3
d40 1
a40 1
Release:      20051121
d66 2
a67 1
        comment   = "thl/3.4.3: requires kde-arts which is currently broken"
@


1.15
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.14
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
@d40 1
a40 1
Release:      20040920
d66 1
@


1.13
log
@Happy New Year 2005
@
text
@d2 3
a4 4
##  kde-base.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.12
log
@Cleanup: %{l_prefix}/etc/rc -> %{l_rc}
@
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.11
log
@correct comments, remove outcommented patch logic, replace missing chmod(1) system(3) patch code, and correct Makefile.in datadir substitutions
@
text
@d41 1
a41 1
Release:      20040807
d117 1
a117 1
    export PATH="%{l_prefix}/libexec/kde:`%{l_prefix}/etc/rc --query x11_bindir`:$PATH"
d155 2
a156 2
        --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
        --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
d215 1
a215 1
    export PATH="%{l_prefix}/libexec/kde:`%{l_prefix}/etc/rc --query x11_bindir`:$PATH"
@


1.10
log
@at least it builds now
@
text
@d41 1
a41 1
Release:      20040806
d83 1
a83 1
    #   adjust hard-coded paths
d93 1
a93 1
    #   deactivate direct chown operations
d98 1
a98 1
    #   redirect back datadir based locations
d100 1
a100 1
        -e 's;${prefix}/share/;${datadir};' \
d103 1
a103 1
    #   make sure KDE does search for binaries inside OpenPKG first
@


1.9
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_base     3.1.4
d41 1
a41 1
Release:      20040207
d122 1
d170 40
@


1.8
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
d67 1
a67 1
        version   = 3.1.4
@


1.7
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:      20030919
d50 2
a51 2
BuildPreReq:  OpenPKG, openpkg >= 20030103, gcc, make, pkgconfig
PreReq:       OpenPKG, openpkg >= 20030103
d64 9
@


1.6
log
@upgrading package: kde-base 3.1.3 -> 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.5
log
@Fixed dependencies, and added a missing dependency to pkgconfig
@
text
@d27 2
a28 2
%define       V_kde      3.1.3
%define       V_base     3.1.3
d40 1
a40 1
Release:      20030905
@


1.4
log
@try to fix paths by expanding it during config time
@
text
@d40 1
a40 1
Release:      20030831
d49 2
a50 2
BuildPreReq:  OpenPKG, openpkg >= 20030103, gcc, make
PreReq:       OpenPKG, openpkg >= 20030103,
@


1.3
log
@make sure KDE does search for binaries inside OpenPKG first
@
text
@d115 18
a132 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.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
d92 5
@


1.1
log
@new package: kde-base 3.1.3 (K Desktop Environment (Base Components))
@
text
@d40 1
a40 1
Release:      20030818
d95 2
a96 2
    export CC="%{l_cc}"
    export CXX="%{l_cxx}"
d130 1
@

