Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1585406
 поиск   регистрация   авторизация 
 
Группа :: Графические оболочки/KDE
Пакет: kdelibs

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define _build_lang en_US
%undefine __libtoolize
%add_findprov_lib_path %_libdir/kde3
#%%set_perl_req_method relaxed
%set_findreq_skiplist %_datadir/apps/dcopidlng/*
%set_findprov_skiplist %_datadir/apps/dcopidlng/*

%define qtdir /usr/lib/qt3

%define unstable 0
%define versioning 1
%define bad_doc 0
%define major 3
%define minor 3
%define bugfix 2

Name: kdelibs
Version: %major.%minor.%bugfix
Release: alt6.3.M24
%define conflictver %major.%minor.%bugfix-alt0.0.1
%define reqver %major.%minor

Summary: K Desktop Environment - Libraries
Group: Graphical desktop/KDE
License: ARTISTIC BSD GPL_V2 LGPL_V2 QPL_V1.0
URL: http://www.kde.org/

%if %unstable
Requires: gdb
%endif
PreReq: kde-common >= %reqver
PreReq: kde-settings >= %reqver
Requires: %{get_dep libarts-qtmcop}
Requires: %{get_dep libqt3}
Requires: su

# Conflicts for Main

Conflicts: kaffeine <= 0.4.1-alt1
Conflicts: openoffice <= 1.0.2-alt5
Conflicts: sim-common <= 1:0.9.4-alt8

Conflicts: kde-i18n-de < %conflictver kde-i18n-fr < %conflictver kde-i18n-he < %conflictver
Conflicts: kde-i18n-et < %conflictver kde-i18n-ru < %conflictver kde-i18n-uk < %conflictver
Conflicts: kde-i18n-lang < %conflictver

# Conflicts for old

Conflicts: kdeaccessibility-common < %conflictver
#
Conflicts: kdeaddons-common < %conflictver
Conflicts: kdeadmin-common < 1:%conflictver
Conflicts: kdeartwork-common < %conflictver
#
Conflicts: kdebase-common < %version kdebase-common < %conflictver
Conflicts: kdebase-devel < %version kdebase-devel < %conflictver
Conflicts: kdebase-smbclient-ro < %version kdebase-smbclient-ro < %conflictver
Conflicts: kdebase-smbclient-rw < %version kdebase-smbclient-rw < %conflictver
Conflicts: kdebase-smb3client-rw < %version kdebase-smb3client-rw < %conflictver
#
Conflicts: kdebindings-common < %conflictver
Conflicts: kdeedu-common < %conflictver
Conflicts: kdegames-common < %conflictver
Conflicts: kdegraphics-common < %conflictver
Conflicts: kdemultimedia-common < %conflictver
Conflicts: kdenetwork-common < %conflictver
Conflicts: kdepim-common < 1:%conflictver
Conflicts: kdetoys-common < %conflictver
Conflicts: kdeutils-common < %conflictver
Conflicts: kdesdk-common < %conflictver
Conflicts: kdewebdev-common < %conflictver

# old KDE (until Compact 2.3 not expired)

Conflicts: kdeaddons < 3.2.0-alt0.1
Conflicts: kdeaddons-atlantik-designer < 3.2.0-alt0.1
Conflicts: kdeaddons-kate < 3.2.0-alt0.1
Conflicts: kdeaddons-kfile < 3.2.0-alt0.1
Conflicts: kdeaddons-kicker < 3.2.0-alt0.1
Conflicts: kdeaddons-knewsticker < 3.2.0-alt0.1
Conflicts: kdeaddons-konqueror < 3.2.0-alt0.1
Conflicts: kdeaddons-noatun < 3.2.0-alt0.1
Conflicts: kdeadmin < 1:3.2.0-alt0.1
Conflicts: kdeadmin-kcron < 1:3.2.0-alt0.1
Conflicts: kdeadmin-kdat < 1:3.2.0-alt0.1
Conflicts: kdeadmin-kfile < 1:3.2.0-alt0.1
Conflicts: kdeadmin-ksysv < 1:3.2.0-alt0.1
Conflicts: kdeadmin-kuser < 1:3.2.0-alt0.1
Conflicts: kdeadmin-secpolicy < 3.2.0-alt0.1
Conflicts: kdeartwork < 3.2.0-alt0.1
Conflicts: kdeartwork-base < 3.2.0-alt0.1
Conflicts: kdeartwork-kworldclock < 3.2.0-alt0.1
Conflicts: kdeartwork-locolor < 3.2.0-alt0.1
Conflicts: kdeartwork-screensavers < 3.2.0-alt0.1
Conflicts: kdebase < 3.2.0-alt0.1
Conflicts: kdebase-common < 3.2.0-alt0.1
Conflicts: kdebase-devel < 3.2.0-alt0.1
Conflicts: kdebase-kate < 3.2.0-alt0.1
Conflicts: kdebase-kcmshell < 3.2.0-alt0.1
Conflicts: kdebase-kcontrol < 3.2.0-alt0.1
Conflicts: kdebase-kdeprint < 3.2.0-alt0.1
Conflicts: kdebase-kdm < 3.2.0-alt0.1
Conflicts: kdebase-kio < 3.2.0-alt0.1
Conflicts: kdebase-kio-samba < 3.2.0-alt0.1
Conflicts: kdebase-konqueror < 3.2.0-alt0.1
Conflicts: kdebase-libkonq < 3.2.0-alt0.1
Conflicts: kdebase-libs < 3.2.0-alt0.1
Conflicts: kdebase-wm < 3.2.0-alt0.1
Conflicts: kdeedu < 3.2.0-alt0.1
Conflicts: kdeedu-flashkard < 3.2.0-alt0.1
Conflicts: kdeedu-kalzium < 3.2.0-alt0.1
Conflicts: kdeedu-keduca < 3.2.0-alt0.1
Conflicts: kdeedu-kgeo < 3.2.0-alt0.1
Conflicts: kdeedu-kiten < 3.2.0-alt0.1
Conflicts: kdeedu-klettres < 3.2.0-alt0.1
Conflicts: kdeedu-kmessedwords < 3.2.0-alt0.1
Conflicts: kdeedu-kmplot < 3.2.0-alt0.1
Conflicts: kdeedu-kpercentage < 3.2.0-alt0.1
Conflicts: kdeedu-kstars < 3.2.0-alt0.1
Conflicts: kdeedu-ktouch < 3.2.0-alt0.1
Conflicts: kdeedu-kverbos < 3.2.0-alt0.1
Conflicts: kdeedu-kvoctrain < 3.2.0-alt0.1
Conflicts: kdeedu-libs < 3.2.0-alt0.1
Conflicts: kdegames < 3.2.0-alt0.1
Conflicts: kdegames-atlantik < 3.2.0-alt0.1
Conflicts: kdegames-carddecks < 3.2.0-alt0.1
Conflicts: kdegames-devel < 3.2.0-alt0.1
Conflicts: kdegames-kasteroids < 3.2.0-alt0.1
Conflicts: kdegames-katomic < 3.2.0-alt0.1
Conflicts: kdegames-kbackgammon < 3.2.0-alt0.1
Conflicts: kdegames-kbattleship < 3.2.0-alt0.1
Conflicts: kdegames-kblackbox < 3.2.0-alt0.1
Conflicts: kdegames-kbounce < 3.2.0-alt0.1
Conflicts: kdegames-kenolaba < 3.2.0-alt0.1
Conflicts: kdegames-kfouleggs < 3.2.0-alt0.1
Conflicts: kdegames-kjumpingcube < 3.2.0-alt0.1
Conflicts: kdegames-klickety < 3.2.0-alt0.1
Conflicts: kdegames-klines < 3.2.0-alt0.1
Conflicts: kdegames-kmahjongg < 3.2.0-alt0.1
Conflicts: kdegames-kmines < 3.2.0-alt0.1
Conflicts: kdegames-kolf < 3.2.0-alt0.1
Conflicts: kdegames-konquest < 3.2.0-alt0.1
Conflicts: kdegames-kpat < 3.2.0-alt0.1
Conflicts: kdegames-kpoker < 3.2.0-alt0.1
Conflicts: kdegames-kreversi < 3.2.0-alt0.1
Conflicts: kdegames-ksame < 3.2.0-alt0.1
Conflicts: kdegames-kshisen < 3.2.0-alt0.1
Conflicts: kdegames-ksirtet < 3.2.0-alt0.1
Conflicts: kdegames-ksmiletris < 3.2.0-alt0.1
Conflicts: kdegames-ksnake < 3.2.0-alt0.1
Conflicts: kdegames-ksokoban < 3.2.0-alt0.1
Conflicts: kdegames-kspaceduel < 3.2.0-alt0.1
Conflicts: kdegames-ktron < 3.2.0-alt0.1
Conflicts: kdegames-ktuberling < 3.2.0-alt0.1
Conflicts: kdegames-kwin4 < 3.2.0-alt0.1
Conflicts: kdegames-libs < 3.2.0-alt0.1
Conflicts: kdegames-lskat < 3.2.0-alt0.1
Conflicts: kdegames-megami < 3.2.0-alt0.1
Conflicts: kdegraphics < 3.2.0-alt0.1
Conflicts: kdegraphics-devel < 3.2.0-alt0.1
Conflicts: kdegraphics-kamera < 3.2.0-alt0.1
Conflicts: kdegraphics-kcoloredit < 3.2.0-alt0.1
Conflicts: kdegraphics-kdvi < 3.2.0-alt0.1
Conflicts: kdegraphics-kfax < 3.2.0-alt0.1
Conflicts: kdegraphics-kfile < 3.2.0-alt0.1
Conflicts: kdegraphics-kghostview < 3.2.0-alt0.1
Conflicts: kdegraphics-kiconedit < 3.2.0-alt0.1
Conflicts: kdegraphics-kmrml < 3.2.0-alt0.1
Conflicts: kdegraphics-kooka < 3.2.0-alt0.1
Conflicts: kdegraphics-kpaint < 3.2.0-alt0.1
Conflicts: kdegraphics-kpovmodeler < 3.2.0-alt0.1
Conflicts: kdegraphics-kruler < 3.2.0-alt0.1
Conflicts: kdegraphics-ksnapshot < 3.2.0-alt0.1
Conflicts: kdegraphics-kuickshow < 3.2.0-alt0.1
Conflicts: kdegraphics-kview < 3.2.0-alt0.1
Conflicts: kdegraphics-kviewshell < 3.2.0-alt0.1
Conflicts: kdegraphics-libkscan < 3.2.0-alt0.1
Conflicts: kde-i18n-de < 3.2.0-alt0.1
Conflicts: kde-i18n-et < 3.2.0-alt0.1
Conflicts: kde-i18n-fr < 3.2.0-alt0.1
Conflicts: kde-i18n-he < 3.2.0-alt0.1
Conflicts: kde-i18n-ru < 3.2.0-alt0.1
Conflicts: kde-i18n-uk < 3.2.0-alt0.1
Conflicts: kdelibs < 3.2.0-alt0.1
Conflicts: kdelibs-devel < 3.2.0-alt0.1
Conflicts: kdemultimedia < 3.2.0-alt0.1
Conflicts: kdemultimedia-arts < 3.2.0-alt0.1
Conflicts: kdemultimedia-devel < 3.2.0-alt0.1
Conflicts: kdemultimedia-kaboodle < 3.2.0-alt0.1
Conflicts: kdemultimedia-kaudiocreator < 3.2.0-alt0.1
Conflicts: kdemultimedia-kfile < 3.2.0-alt0.1
Conflicts: kdemultimedia-kmid < 3.2.0-alt0.1
Conflicts: kdemultimedia-kmidi < 3.2.0-alt0.1
Conflicts: kdemultimedia-kmix < 3.2.0-alt0.1
Conflicts: kdemultimedia-krec < 3.2.0-alt0.1
Conflicts: kdemultimedia-kscd < 3.2.0-alt0.1
Conflicts: kdemultimedia-libs < 3.2.0-alt0.1
Conflicts: kdemultimedia-noatun < 3.2.0-alt0.1
Conflicts: kdenetwork < 3.2.0-alt0.1
Conflicts: kdenetwork-devel < 3.2.0-alt0.1
Conflicts: kdenetwork-kdict < 3.2.0-alt0.1
Conflicts: kdenetwork-kfile < 3.2.0-alt0.1
Conflicts: kdenetwork-kget < 3.2.0-alt0.1
Conflicts: kdenetwork-kgpgcertmanager < 3.2.0-alt0.1
Conflicts: kdenetwork-kit < 3.2.0-alt0.1
Conflicts: kdenetwork-kmail < 3.2.0-alt0.1
Conflicts: kdenetwork-kmailcvt < 3.2.0-alt0.1
Conflicts: kdenetwork-knewsticker < 3.2.0-alt0.1
Conflicts: kdenetwork-knode < 3.2.0-alt0.1
Conflicts: kdenetwork-korn < 3.2.0-alt0.1
Conflicts: kdenetwork-kpf < 3.2.0-alt0.1
Conflicts: kdenetwork-kppp < 3.2.0-alt0.1
Conflicts: kdenetwork-krdc < 3.2.0-alt0.1
Conflicts: kdenetwork-krfb < 3.2.0-alt0.1
Conflicts: kdenetwork-ksirc < 3.2.0-alt0.1
Conflicts: kdenetwork-ktalkd < 3.2.0-alt0.1
Conflicts: kdenetwork-kxmlrpcd < 3.2.0-alt0.1
Conflicts: kdenetwork-libs < 3.2.0-alt0.1
Conflicts: kdenetwork-lisa < 3.2.0-alt0.1
Conflicts: kdepim < 1:3.2.0-alt0.1
Conflicts: kdepim-devel < 1:3.2.0-alt0.1
Conflicts: kdepim-kaddressbook < 1:3.2.0-alt0.1
Conflicts: kdepim-kandy < 1:3.2.0-alt0.1
Conflicts: kdepim-kaplan < 1:3.2.0-alt0.1
Conflicts: kdepim-karm < 1:3.2.0-alt0.1
Conflicts: kdepim-kfile < 1:3.2.0-alt0.1
Conflicts: kdepim-knotes < 1:3.2.0-alt0.1
Conflicts: kdepim-korganizer < 1:3.2.0-alt0.1
Conflicts: kdepim-kpilot < 1:3.2.0-alt0.1
Conflicts: kdepim-ksync < 1:3.2.0-alt0.1
Conflicts: kdepim-libs < 1:3.2.0-alt0.1
Conflicts: kdesdk < 3.2.0-alt0.1
Conflicts: kdesdk-cervisia < 3.2.0-alt0.1
Conflicts: kdesdk-kapptemplate < 3.2.0-alt0.1
Conflicts: kdesdk-kbabel < 3.2.0-alt0.1
Conflicts: kdesdk-kbugbuster < 3.2.0-alt0.1
Conflicts: kdesdk-kfile < 3.2.0-alt0.1
Conflicts: kdesdk-kmtrace < 3.2.0-alt0.1
Conflicts: kdesdk-kompare < 3.2.0-alt0.1
Conflicts: kdesdk-kspy < 3.2.0-alt0.1
Conflicts: kdesdk-misc < 3.2.0-alt0.1
Conflicts: kdetoys < 3.2.0-alt0.1
Conflicts: kdetoys-amor < 3.2.0-alt0.1
Conflicts: kdetoys-devel < 3.2.0-alt0.1
Conflicts: kdetoys-eyes < 3.2.0-alt0.1
Conflicts: kdetoys-fifteen < 3.2.0-alt0.1
Conflicts: kdetoys-kaphorism < 3.2.0-alt0.1
Conflicts: kdetoys-kmoon < 3.2.0-alt0.1
Conflicts: kdetoys-kodo < 3.2.0-alt0.1
Conflicts: kdetoys-kteatime < 3.2.0-alt0.1
Conflicts: kdetoys-ktux < 3.2.0-alt0.1
Conflicts: kdetoys-kweather < 3.2.0-alt0.1
Conflicts: kdetoys-kworldclock < 3.2.0-alt0.1
Conflicts: kdeutils < 3.2.0-alt0.1
Conflicts: kdeutils-ark < 3.2.0-alt0.1
Conflicts: kdeutils-kcalc < 3.2.0-alt0.1
Conflicts: kdeutils-kcardchooser < 3.2.0-alt0.1
Conflicts: kdeutils-kcharselect < 3.2.0-alt0.1
Conflicts: kdeutils-kdessh < 3.2.0-alt0.1
Conflicts: kdeutils-kdf < 3.2.0-alt0.1
Conflicts: kdeutils-kedit < 3.2.0-alt0.1
Conflicts: kdeutils-kfloppy < 3.2.0-alt0.1
Conflicts: kdeutils-khexedit < 3.2.0-alt0.1
Conflicts: kdeutils-kjots < 3.2.0-alt0.1
Conflicts: kdeutils-kregexpeditor < 3.2.0-alt0.1
Conflicts: kdeutils-kregexpeditor-devel < 3.2.0-alt0.1
Conflicts: kdeutils-ksim < 3.2.0-alt0.1
Conflicts: kdeutils-ktimer < 3.2.0-alt0.1
Conflicts: kdeutils-laptop < 3.2.0-alt0.1
# end of old KDE (until Compact 2.3 not expired)

Source: kdelibs-%version.tar.bz2
#Source: kdelibs-3.1.94.tar.bz2
#
Source101: kde.sh
Source102: kde.csh
Source110: crystalcursors.tar.bz2
#
Source122: x-toc.desktop
Source123: x-icq.desktop


# MDK -> ALT

Patch01: kdelibs-3.1.94-iconssearch.patch
Patch02: kdelibs-3.2.2-add-cdrom-entry-in-kfiledialogbox.patch
Patch03: kdelibs-3.1.94-change-temporary-directory.patch
Patch04: kdelibs-3.1.94-fix-cups-by-default.patch
Patch05: kdelibs-3.1.94-fix-default-spell-checker.patch
Patch06: kdelibs-3.1.3-fix-kmessagebox-always-on-top.patch

# MDK

Patch30: kdelibs-3.2-remove-debug.patch
Patch31: kdelibs-3.3-fix-copy-link-location-with-email.patch
Patch32: kdelibs-3.2-fix-kde-default-font-value.patch

# SuSE

Patch1001: stat-on-media-alt.diff
Patch1002: dont-trigger-mount-in-media.diff
Patch1003: show-distribution.diff
#
Patch1006: limit-max-image-size.diff
Patch1007: silence.diff

# RH

Patch3008: kdelibs-3.2.0-ALT-icon.patch
Patch3009: kdelibs-3.1-ssl-krb5.patch
#
Patch3012: kdelibs-3.2-ALT-flash.patch
Patch3013: kdelibs-3.1-kio.patch
Patch3014: kdelibs-3.2.2-pcre.patch
Patch3015: kdelibs-3.2.2-dock.patch

# Sergey A. Sukiyazov <corwin at micom.don.ru>

Patch4600: kdelibs-3.1.2-fix-kprocio-def-codec.patch
Patch4601: kdelibs-3.1.4-ALT-fix-kdoctools-mime-charset.patch
Patch4602: kdelibs-3.1.94-fix-scriptmanager-segfault.patch

# ALT patches

Patch5001: kdelibs-3.0-kspell.patch
Patch5002: kdelibs-3.0-exists_exe.patch
Patch5003: kdelibs-3.3-tmpdir.patch
Patch5004: kdelibs-3.0.1-fix-iconssearch.patch
#
Patch5007: kdelibs-3.3.0-default-document-path.patch
Patch5008: kdelibs-3.3.0-ibm866.patch
Patch5009: kdelibs-3.3.2-flags.patch
#
Patch5011: kdelibs-3.3.0-alt_la2so_load_module.patch
Patch5012: kdelibs-3.3.0-alt_la2so.patch
Patch5013: kdelibs-3.1.4-alt-ldl.patch
Patch5014: kdelibs-3.1.4-alt-no_ltdl.patch
Patch5015: kdelibs-3.1.4-alt-ksmartcard_gcc3.3.patch
Patch5016: kdelibs-3.3.1-lang.patch
#
Patch5018: kpty-3.2.2.patch
Patch5019: kdecore-3.2.0-custom_menu_path.patch
Patch5020: kded-3.2.0-kde-applications.menu.patch
Patch5021: kdecore-3.2.0-default-fixed-font.patch
Patch5022: kded-3.2.0-menueditor.patch
Patch5023: kio-3.2.1-find-service-by-desktop-name.patch
Patch5024: kdesu-3.2.3-fix-exec.patch
Patch5025: kdelibs-3.3.2-desktopfile-tryexec.patch
Patch5026: kdecore-3.2.2-crystalsvg-default-icontheme.patch
Patch5027: kdelibs-3.3.0-fix-build.patch
Patch5028: kssl-3.3.0-libssl-name.patch
Patch5029: kio-3.2.3-subfs.patch
Patch5030: kdelibs-3.3.1-fix-tokenizer.patch

# security patches

Patch10002: post-3.3.2-kdelibs-htmlframes2.patch
Patch10003: post-3.3.2-kdelibs-kioslave.patch
Patch10004: post-3.3.2-kdelibs-dcopidlng.patch
Patch10005: post-3.3.2-kdelibs-dcop.patch
Patch10006: post-3.3.2-kdelibs-idn.patch
Patch10007: post-3.3.2-kdelibs-kimgio-fixed.diff
Patch10008: post-3.3.2-kdelibs-kate.diff
# end security patches

# Automatically added by buildreq on Thu Apr 08 2004 (-bi)

#BuildRequires: XFree86-devel XFree86-libs bzlib-devel doxygen fontconfig freetype2 gcc-c++ gcc-g77 glib2 kde-settings libalsa-devel libart_lgpl-devel libarts-devel libarts-qt-devel libcups-devel libjpeg-devel libldap-devel libpcre-devel libpcsclite-devel libpng-devel libqt3-devel libssl-devel libstdc++-devel libtiff-devel libutempter-devel libxml2-devel libxslt-devel menu-devel netpbm qt3-designer qt3-doc su xml-utils zlib-devel
BuildRequires: XFree86-devel XFree86-libs bzlib-devel doxygen
BuildRequires: fontconfig freetype2 gcc-c++ kde-settings libalsa-devel
BuildRequires: libart_lgpl-devel libarts-devel libarts-qtmcop-devel libcups-devel
BuildRequires: libjpeg-devel libldap-devel libpcre-devel libpcsclite-devel
BuildRequires: libpng-devel libqt3-devel libssl-devel libstdc++-devel libtiff-devel
BuildRequires: libutempter-devel libxml2-devel libxslt-devel menu-devel netpbm
BuildRequires: qt3-designer qt3-doc xml-utils zlib-devel libkrb5-devel libidn-devel
BuildRequires: libkrb5-devel libaspell-devel
BuildRequires: libqt3-devel-cxx = %__gcc_version_base
BuildRequires: libqt3 >= 3.2.0 libqt3-devel >= 3.2.0
BuildRequires: flex su kde-common-devel
# hack against apt
BuildRequires: libqt3-qsa > 3.0 libqt3-qsa-devel > 3.0
# old
BuildRequires: openjade docbook-utils docbook-dtds

%description
Libraries for the K Desktop Environment.

%package devel
Group: Development/KDE and QT
Summary: Header files and documentation for compiling KDE applications
Requires: libarts-devel, libarts-qtmcop-devel, %name = %version-%release
Requires: kde-common-devel
Provides: %name-devel-cxx = %__gcc_version_base

%description devel
This package includes the header files you will need to compile applications
for KDE.

%package apidocs
Group: Development/KDE and QT
Summary: The KDE API Reference
Requires: %name-devel = %version

%description apidocs
This package included is the KDE %version API documentation
in HTML format for easy browsing.

%prep
%setup -q
#%%setup -q -n kdelibs-3.1.94
%patch01 -p1
%patch02 -p1
%patch03 -p1
%patch04 -p1
%patch05 -p1
%patch06 -p1
#
%patch30 -p1
%patch31 -p1
%patch32 -p1

%patch1001 -p0
%patch1002 -p0
%patch1003 -p0
#
%patch1006 -p0
%patch1007 -p0

# icon

#%patch3008 -p1
%patch3009 -p1
#
%patch3012 -p1
%patch3013 -p1
%patch3014 -p1
# dock
###%patch3015 -p1

# corwin at micom.don.ru

%patch4600 -p1
#%patch4601 -p1
%patch4602 -p1

# ALT

#%patch5001 -p1
%patch5002 -p1
%patch5003 -p1
#%patch5004 -p1
#
%patch5007 -p1
# cp866
#%patch5008 -p1
%patch5009 -p1
#
%patch5011 -p1
%patch5012 -p1
#%patch5013 -p1
#%patch5014 -p1
%patch5015 -p1
%patch5016 -p1
#
# kpty
#%patch5018 -p1
%patch5019 -p1
%patch5020 -p1
%patch5021 -p1
%patch5022 -p1
%patch5023 -p1
# su exec
%patch5024 -p1
%patch5025 -p1
%patch5026 -p1
%if %bad_doc
%patch5027 -p1
%endif
%patch5028 -p1
%patch5029 -p1
pushd khtml
%patch5030 -p0
popd

# security

%patch10002 -p0
%patch10003 -p0
%patch10004 -p0
%patch10005 -p0
%patch10006 -p0
pushd kimgio
%patch10007 -p0
popd
%patch10008 -p0
# end security

#find -type f -pi -e "s|^.*iconLoader\(\)->addAppDir\(\"kdeprint\"\).*$|// removed string about addDir \"kdeprint\" to iconLoader here|g"

subst "s/\(Wl,--no-undefined\)/-Wl,--warn-unresolved-symbols \1/g" admin/acinclude.m4.in
subst "s/\-lDCOP/-lDCOP -lpthread/g" admin/acinclude.m4.in
subst "s/\-lkdefx/-lkdefx -lpthread/g" admin/acinclude.m4.in
subst "s/\-lkdecore/-lkdecore -lpthread/g" admin/acinclude.m4.in
subst "s/\-lkdeui/-lkdeui -lpthread/g" admin/acinclude.m4.in
make -f admin/Makefile.common cvs ||:


%build
rm -rf %buildroot

%if %versioning
cat > ./kdecore/libkdecore_add.map <<__EOF__
CXX%__gcc_version_major {
   global:
extern "C++"  {
   KApplication::KApplication*;
   KConfig::KConfig*;
   KLocale::KLocale*;
   KURL::KURL*;
   KAppDCOPInterface::KAppDCOPInterface*;
   KAudioPlayer::KAudioPlayer*;
};
};
__EOF__


grep -q -elibkdecore_la_LDFLAGS.*version-script kdecore/Makefile.am || \
perl -pi -e "s/(^libkdecore_la_LDFLAGS.*)/\1 -Wl,--version-script=libkdecore_add.map/" kdecore/Makefile.am
%endif


export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

export PATH=%_bindir:$PATH
%add_optflags -DNEED_BZ2_PREFIX -DKDE_IPV6_LOOKUP_MODE=1
export QTDIR=%qtdir
#export LDFLAGS="-L%buildroot/%_libdir -L%buildroot/%_libdir/kde3 -L%_libdir"
export LDFLAGS="-L%buildroot/%_libdir -L%buildroot/%_libdir/kde3  -L%qtdir/lib"

if true
then
%configure \
                   --prefix=%prefix \
                   --exec-prefix=%_exec_prefix \
%if %unstable
                   --enable-debug=full \
%else
       --disable-debug \
%endif
                   --enable-final \
                   --enable-shared \
                   --disable-static \
   --enable-fast-malloc=full \
                   --enable-fast-install=yes \
                   --disable-embedded \
                   --disable-palmtop \
                   --disable-rpath \
                   --enable-mitshm \
                   --enable-cups \
                   --disable-libfam \
   --enable-dnotify \
   --enable-sendfile \
   --enable-openpty \
                   --enable-pcre \
                   --with-gnu-ld \
                   --with-pic \
                   --with-xinerama \
                   --with-distribution="%distribution" \
                   --with-arts \
                   --with-alsa \
   --program-transform-name="" \
   --with-ipv6-lookup=auto \
                   --x-includes=/usr/X11R6/include \
                   --x-libraries=/usr/X11R6/lib
fi

%make_build
%make_build PCSC_LDFLAGS="-lpcsclite" -C ksmartcard/kardlib
%make_build -C kwallet
%make_build -C ksmartcard/kardimpl
%make_build -C ksmartcard/kardsvc
#
%make_build apidox

%install
# David - 3.0-0.beta1-7mdk - Don't strip when we are not in final release
%if %unstable
%set_strip_method none
%endif

# David - 3.0-0.beta1-7mdk - Don't use makeinstall macro. It seems that it

#                            works fine but in fact, it's not the case.
%make_build \
   DESTDIR=%buildroot \
   prefix=%prefix \
   exec_prefix=%prefix \
install
%make DESTDIR=%buildroot -C kwallet install
%make DESTDIR=%buildroot -C ksmartcard/kardlib install
%make DESTDIR=%buildroot -C ksmartcard/kardimpl install
%make DESTDIR=%buildroot -C ksmartcard/kardsvc install
#
%make DESTDIR=%buildroot install-apidox

# fix scripts for strong /usr/lib/rpm/find-requires

#pushd %buildroot/%_datadir/apps/dcopidlng
#for f in `file ./* | grep shell | awk -F: '{print $1}' | xargs grep -l ^=head`
#do
#    mv "$f" "$f.tmp"
#    awk 'BEGIN{found=0;} /^=head/ {if (found==0){print "cat <<\\__EOF__";found=1;};} {print} END{if (found!=0) print "__EOF__";}' <"$f.tmp" >"$f"
#    rm -f "$f.tmp"
#    chmod a+x $f
#done
#popd

# menu

ln -s freedesktop2menu.pl %buildroot/%_bindir/kdedesktop2mdkmenu.pl
mv %buildroot/%_sysconfdir/xdg/menus/applications.menu \
   %buildroot/%_sysconfdir/xdg/menus/applications-kde.menu
mkdir -p %buildroot/%_menudir
%Kd2m %name "Configuration/KDE/Components" %buildroot/%_datadir/applications/kde/kresources.desktop %buildroot/%_menudir/%name-kresources kde

# create icons for usb devices

for f in `find %buildroot/%_iconsdir/*/*/devices -type f -name mo_\*png`
do
   fnew=`echo "$f"| sed 's/mo_/usb_/'`
   cp -f $f $fnew
done

# install crystal cursors

pushd %buildroot/%_iconsdir/crystalsvg
   tar xfj %SOURCE110
popd

mkdir -p %buildroot/%_sysconfdir/profile.d
install -m 0755 %SOURCE101 %buildroot/%_sysconfdir/profile.d/kde3.sh
install -m 0755 %SOURCE102 %buildroot/%_sysconfdir/profile.d/kde3.csh

[ -f %buildroot/%_datadir/mimelnk/application/x-toc.desktop ] && exit 1
install -m0644 %SOURCE122 %buildroot/%_datadir/mimelnk/application/x-toc.desktop
[ -f %buildroot/%_datadir/mimelnk/application/x-icq.desktop ] && exit 1
install -m0644 %SOURCE123 %buildroot/%_datadir/mimelnk/application/x-icq.desktop


%pre
for f in %_sysconfdir/xdg/menus-alt/applications-kde.menu %_sysconfdir/xdg/menus/applications-kde.menu
do
   if [ ! -e "$f" ]
   then
%__mkdir_p -m 0755 -p `dirname $f`
echo -e "<!DOCTYPE Menu PUBLIC \"-//freedesktop//DTD Menu 1.0//EN\"\n" \
\""http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd\">\n" \
"<Menu><KDELegacyDirs/><DefaultAppDirs/><DefaultDirectoryDirs/></Menu>" > $f
%__chmod 0644 $f
   fi
done
%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
#%config(noreplace) %_sysconfdir/profile.d/*
%dir %_sysconfdir/xdg
%dir %_sysconfdir/xdg/menus
%config %_sysconfdir/xdg/menus/applications-kde.menu
#
#%dir %_datadir/config/
#%config(noreplace) %_datadir/config/kdebug.areas
#%config(noreplace) %_datadir/config/kdebugrc
#%config(noreplace) %_datadir/config/ksslcalist
#%config(noreplace) %_datadir/config/language.codes
#%config(noreplace) %_datadir/config/kthemestylerc
#%config(noreplace) %_datadir/config/katesyntaxhighlightingrc
#
%_datadir/config/colors/
%_datadir/config/ui/
#
%dir %_docdir/HTML/en/
%doc %_docdir/HTML/en/common/
%if !%bad_doc
%doc %_docdir/HTML/en/kspell/
%endif
#
#
#
%_bindir/*
%exclude %_bindir/kgrantpty
%exclude %_bindir/kdedesktop2mdkmenu.pl
#
%_libdir/libartskde.so*
#%_libdir/libcupsdconf.so
%_libdir/libDCOP.so*
%_libdir/libkdecore.so*
%_libdir/libkded_kardsvc.so*
%_libdir/libkdefakes.so*
%_libdir/libkdefx.so*
%_libdir/libkdeinit_*.so*
%_libdir/libkdeprint.so*
%_libdir/libkdeprint_management.so*
%_libdir/libkdesu.so*
%_libdir/libkdeui.so*
%_libdir/libkhtml.so*
%_libdir/libkio.so*
%_libdir/libkimproxy.so*
%_libdir/libkjava.so*
%_libdir/libkjs.so*
%_libdir/libkmdi.so*
%_libdir/libkmediaplayer.so*
%_libdir/libkmid.so*
%_libdir/libknewstuff.so*
%_libdir/libkparts.so*
%_libdir/libkresources.so*
%_libdir/libkscard_*.so*
%_libdir/libkscreensaver.so*
%_libdir/libkspell.so*
%_libdir/libkspell2.so*
%_libdir/libktexteditor.so*
%_libdir/libkutils.so*
%_libdir/libkdesasl.so*
%_libdir/libkscript.so*
%_libdir/libksmartcard.so*
#%_libdir/libshellscript.so*
%_libdir/libkatepartinterfaces.so*
%_libdir/libkabc.so*
%_libdir/libkabc_*.so*
%_libdir/libkwalletbackend.so*
%_libdir/libkwalletclient.so*
%_libdir/libvcard.so*
#
%dir %_libdir/kde3
%_libdir/kde3/*.la
%_libdir/kde3/*.so
#
%dir %_libdir/kde3/plugins/
%dir %_libdir/kde3/plugins/styles/
%_libdir/kde3/plugins/styles/*.la
%_libdir/kde3/plugins/styles/*.so
#
#
#
%_datadir/applications/kde/kresources.desktop
%_menudir/%name-kresources
%_datadir/apps/dcopidlng/
%_datadir/apps/kabc/
%_datadir/apps/kcm_componentchooser/
#
%_datadir/apps/kconf_update/
%_datadir/apps/kdeprint/
%_datadir/apps/kjava/
#
%dir %_datadir/apps/kdeui/
%dir %_datadir/apps/kdeui/pics/
%_datadir/apps/kdeui/pics/*.png
#
%dir %_datadir/apps/kdewidgets/
%dir %_datadir/apps/kdewidgets/pics/
%_datadir/apps/kdewidgets/pics/*.png
#
%_datadir/apps/khtml/
#
%_datadir/apps/kio_uiserver/
#
%_datadir/apps/knewstuff/
#
%dir %_datadir/apps/knotify/
%_datadir/apps/knotify/eventsrc
#
%dir %_datadir/apps/ksgmltools2/
%_datadir/apps/ksgmltools2/*
#
%dir %_datadir/apps/kssl/
%_datadir/apps/kssl/ca-bundle.crt
#
%dir %_datadir/apps/kstyle/
%dir %_datadir/apps/kstyle/themes/
%_datadir/apps/kstyle/themes/*.themerc
#
%_datadir/apps/ktexteditor_*
#
%dir %_datadir/apps/kcertpart/
%_datadir/apps/kcertpart/*.rc
#
%dir %_datadir/apps/katepart/
%_datadir/apps/katepart/*.rc
%dir %_datadir/apps/katepart/syntax/
%_datadir/apps/katepart/syntax/*.xml
%_datadir/apps/katepart/syntax/*.template
%_datadir/apps/katepart/syntax/*.dtd
#
#
#%dir %_datadir/apps/kstyle/
#%_datadir/apps/kstyle/*.crt
#
%dir %_datadir/apps/kstyle/pixmaps/
%_datadir/apps/kstyle/pixmaps/*.png
#
%dir %_datadir/apps/kstyle/pixmaps/riscos/
%_datadir/apps/kstyle/pixmaps/riscos/*.png
#
%_datadir/apps/proxyscout
#
%_datadir/autostart/*.desktop
#
%_iconsdir/crystalsvg
%_iconsdir/default.kde
#
%_datadir/locale/all_languages
#
%dir %_datadir/mimelnk/
%_datadir/mimelnk/magic
#
%dir %_datadir/mimelnk/all/
%_datadir/mimelnk/all/*.desktop
#
%dir %_datadir/mimelnk/application/
%_datadir/mimelnk/application/*.desktop
#
%dir %_datadir/mimelnk/audio/
%_datadir/mimelnk/audio/*.desktop
#
%dir %_datadir/mimelnk/image/
%_datadir/mimelnk/image/*.desktop
#
%dir %_datadir/mimelnk/inode/
%_datadir/mimelnk/inode/*.desktop
#
%dir %_datadir/mimelnk/message/
%_datadir/mimelnk/message/*.desktop
#
%dir %_datadir/mimelnk/model/
%_datadir/mimelnk/model/*.desktop
#
%dir %_datadir/mimelnk/text/
%_datadir/mimelnk/text/*.desktop
#
%dir %_datadir/mimelnk/video/
%_datadir/mimelnk/video/*.desktop
#
%dir %_datadir/mimelnk/multipart/
%_datadir/mimelnk/multipart/*.desktop
#
%dir %_datadir/services/
%_datadir/services/*.desktop
%_datadir/services/*.kimgio
%_datadir/services/*.protocol
#
%dir %_datadir/services/kded/
%_datadir/services/kded/*.desktop
#
%dir %_datadir/services/kscard/
%_datadir/services/kscard/*.desktop
#
%dir %_datadir/services/kresources/
%dir %_datadir/services/kresources/kabc/
%_datadir/services/kresources/kabc/*.desktop
#
%dir %_datadir/servicetypes/
%_datadir/servicetypes/*.desktop

%files devel
%_bindir/kdedesktop2mdkmenu.pl
%_libdir/libkdefakes_nonpic.a
%dir %_libdir/kde3/plugins/designer/
%_libdir/kde3/plugins/designer/*.so
%_libdir/kde3/plugins/designer/*.la
#
%_includedir/*.h
%_includedir/*.pot
%_includedir/*.tcc
#
%_includedir/arts
%_includedir/dom/
%_includedir/kdeprint/
%_includedir/kdesu/
%_includedir/khexedit
%_includedir/kio/
%_includedir/kjs/
%_includedir/kmediaplayer/
%_includedir/knewstuff/
%_includedir/kparts/
%_includedir/kresources
%_includedir/libkmid/
%_includedir/ksettings
%_includedir/kspell2/
%_includedir/ktexteditor/
%_includedir/kabc/
%_includedir/kate/

%files apidocs
%doc %_docdir/HTML/en/%name-apidocs

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005