Группа :: Графические оболочки/KDE
Пакет: kdebase
Главная Изменения Спек Патчи Загрузить Bugs and FR
%undefine __libtoolize
%add_findprov_lib_path %_libdir/kde3
%define applnk %_datadir/applnk
%define kdemenu %_datadir/applications/kde
%define qtdir /usr/lib/qt3
%define x11confdir %_sysconfdir/X11
%define bugfix 1
%define req_design_graphics design-graphics >= 3.1.1
%if "%{get_version alternatives}" > "0.0.9"
%if "%{get_version alternatives}" < "0.1.9"
%define alternatives_ver 0.1
%endif
%endif
%define unstable 0
%define build_smb_ro 0
%define major 3
%define minor 3
%define bugfix 2
Name: kdebase
Version: %major.%minor.%bugfix
Release: alt2.12.M24
%define reqver %major.%minor
Summary: K Desktop Environment - Core files
Group: Graphical desktop/KDE
License: GPL
URL: http://www.kde.org/
Requires: %name-libkonq = %version-%release
Requires: %name-libs = %version-%release
Requires: %name-kdm = %version-%release
Requires: %name-wm = %version-%release
Requires: %name-konqueror = %version-%release
Requires: %name-kcmshell = %version-%release
Requires: %name-kcontrol = %version-%release
Requires: %name-kdeprint = %version-%release
Requires: %name-kio = %version-%release
Requires: %name-kio-samba = %version-%release
Source: kdebase-%version.tar.bz2
#Source: kdebase-3.1.94.tar.bz2
Source1: file_lists.sh
Source2: kdebase-ksysguardd-init
Source10: kdebase-3.0-kde.pam
Source11: kdm.logrotate
Source12: kicker-default1.png
# Debian -> ALT
Source201: kde-menu-spec
Source202: kde-desktop-entry-spec-dirs
Source203: kde-desktop-entry-spec-apps
# Add overlay icon for share directory
Source900: kdebase-3.0-mdk-share-16.png
Source901: kdebase-3.0-mdk-share-32.png
Source902: kdebase-3.0-mdk-share-48.png
# add servicemenu entry (compress/uncompress action )
Source2001: kdebase-3.1-convertpdftops.desktop
Source2002: kdebase-3.1-convertpstopdf.desktop
# RH
Source4000: kdebase-3.0-mailsettings.cc
# ALT
Source5001: startkde_safe
Source5002: kdebase-3.0-kscreensaver.pamd
### ###
### Patch party ###
### ###
Patch2: kdebase-3.3-ALT-kcontrol-global.patch
Patch3: kdebase-3.3-ALT-kicker-icons.patch
Patch4: kdebase-3.2-ALT-kdm-config.patch
Patch5: kdebase-3.0.2-default-document-path.patch
#
Patch12: kdebase-3.1-fix-konsole-dnd-copy.patch
Patch13: kdebase-3.1-kcmenergy-enable-energy-saving.patch
#
Patch15: kdebase-3.2-remove-kdm-double-click-on-radio-button.patch
#
Patch19: kdebase-3.2-fix-up-button.patch
Patch20: kdebase-3.1-add-ctrl-w-to-konq-combo.patch
Patch21: kdebase-3.1-fix-ssl-default-path.patch
Patch22: kdebase-3.1-konqueror-tab-default-shortcut.patch
#
Patch44: kdebase-3.2-ALT-fix-kicker-clock-applet-default-value.patch
Patch45: kdebase-3.1-fix-kioslave-thimbnail-creator.patch
#
Patch68: kdebase-3.3-fix-konqueror-tab-menu.patch
Patch69: kcmaccount-3.3.0-facedir.patch
Patch70: kdebase-3.3-ALT-default-launch-apps-in-applets-launch.patch
# RH patches
Patch500: kdebase-3.2-vroot.patch
Patch501: kdebase-3.0.4-kdesukonsole.patch
Patch502: kdebase-3.2.3-starthere-ALT.patch
Patch503: kdebase-3.1-ssl-krb5.patch
Patch504: kdebase-3.2-kdesktop_open_terminal.patch
Patch505: kdebase-3.1.3-konsole-double-esc.patch
Patch506: kdebase-3.1.3-panelicon.patch
#
Patch509: kdebase-3.1.4-kickermenu.patch
# MDK && RH -> ALT patches
Patch900: kdebase-3.0-shortcuts-alt.patch
Patch901: kdebase-3.0.0-staticlesstif-alt.patch
# ALT patches
Patch1001: kdebase-3.2-fix_kz_locale.patch
#
Patch1005: kdebase-3.3-startkde.patch
Patch1006: kdebase-3.0-indexhtml.patch
Patch1007: kdebase-3.2-kfontinst.patch
Patch1008: kdebase-3.1-kdmdesktop_exec.patch
Patch1009: kdebase-3.0-kxkb_nolayout.patch
#
Patch1011: kdebase-3.3.1-konsole_keytab.patch
Patch1012: kdebase-3.3.1-konsole_su.patch
Patch1013: kdebase-3.0.1-default_enc.patch
#
Patch1015: kdebase-3.2-konsole_noxft.patch
Patch1016: kdebase-3.2-konsolefont-alt.patch
#
Patch1018: kdebase-3.2-select_background_dir.patch
Patch1019: kdebase-3.2.1-desktop_disks_clear.patch
Patch1020: kdebase-3.1.2-usbflash.patch
Patch1021: kdebase-3.1.2-frendly_automount.patch
Patch1022: kdebase-3.3-flags.patch
Patch1023: kdebase-3.2.2-smb-auth.patch
Patch1024: kdebase-3.1.4-mobiledisk.patch
Patch1025: kdebase-3.3-kdesu_dont_decode_command.patch
Patch1026: kcontrol-3.2.2-xcursor-exclude-symlinks.patch
Patch1027: kdm-3.3.0-genkdmconf.patch
Patch1028: kdm-3.2-select-faces-directory.patch
Patch1029: kdm-3.3.0-wmsession.patch
Patch1030: kmenuedit-3.2.0-menueditor.patch
Patch1031: 3.2.1-find-screensaver.patch
Patch1032: kdm-3.2.2-save-qtrc.patch
Patch1033: konqueror-3.3.2-fix-launch.patch
Patch1034: clock-3.2-desktop.patch
Patch1035: kdm-3.2-desktop.patch
Patch1036: kdebase-3.2-default-font-value.patch
Patch1037: kdebase-3.2.3-more-eject.patch
Patch1038: konsole-3.2.2-default-add-to-utmp.patch
Patch1039: kdepasswd-3.3.1-userpasswd.patch
Patch1040: 3.2.3-man-add-encoding.patch
Patch1041: kdebase-3.2-export-gtk-apply-style.patch
Patch1042: kdepasswd-3.3.1-truncate.patch
Patch1043: kdebase-3.2.2-alt-panel-icons-scale-kcontrol.patch
Patch1044: kdebase-3.3.1-panel-icons-scale-alt.patch
# Sergey A. Sukiyazov <corwin at micom.don.ru>
Patch2000: kdebase-3.1.3-fix_kio_man_index.patch
Patch2001: kdebase-3.1.3-man_recode.patch
Patch2002: kdebase-3.1.3-fix_kwin_focus.patch
# security
Patch10001: post-3.3.2-kdebase-htmlframes2.patch
Patch10002: 3.3.2-kcheckpass.patch
Patch10003: post-3.4.2-kdebase-kcheckpass.diff
# Automatically added by buildreq on Mon Apr 12 2004 (-bi)
#BuildRequires: XFree86-devel XFree86-libs XFree86-utils arts bzlib-devel doxygen eject fontconfig-devel freetype2-devel gcc-c++ gcc-g77 glib2 kde-settings kdelibs-apidocs kdelibs-devel lesstif-devel libart_lgpl-devel libarts-devel libjpeg-devel libldap-devel libncurses-devel libpam-devel libpng-devel libqt3-devel libraw1394-devel libssl-devel libstdc++-devel libtiff-devel libtinfo-devel libutempter-devel menu-devel pkgconfig qt3-designer qt3-doc samba-client-devel xinitrc xml-utils zlib-devel
BuildRequires: kdelibs-devel-cxx = %__gcc_version_base
BuildRequires: XFree86-devel XFree86-libs XFree86-utils arts
BuildRequires: bzlib-devel doxygen eject fontconfig-devel freetype2-devel
BuildRequires: gcc-c++ kdelibs-apidocs kdelibs-devel
BuildRequires: libart_lgpl-devel libjpeg-devel
BuildRequires: openmotif-devel
BuildRequires: libldap-devel libncurses-devel libpam-devel libpng-devel
BuildRequires: libraw1394-devel libssl-devel libstdc++-devel
BuildRequires: libtiff-devel libtinfo-devel libutempter-devel menu-devel
BuildRequires: pkgconfig qt3-designer qt3-doc libsmbclient-devel xinitrc
BuildRequires: xml-utils zlib-devel glibc-utils
BuildRequires: kdelibs = %version kdelibs-devel = %version, libarts-devel >= 0.9.9 , libqt3-devel >= 3.0.3
BuildRequires: flex menu libalternatives-devel
%description
Core applications for the K Desktop Environment.
Here is an overview of the directories:
- drkonqi: if ever an app crashes (heaven forbid!) then Dr.Konqi will be so
kind and make a stack trace. This is a great help for the
developers to fix the bug.
- kappfinder: searches your hard disk for non-KDE applications, e.g. Acrobat
Reader (tm) and installs those apps under the K start button
- kate: a fast and advanced text editor with nice plugins
- kcheckpass: small program to enter and check passwords, only to be used by
other programs
- kcontrol: the KDE Control Center allows you to tweak the KDE settings
- kdcop: GUI app to browse for DCOP interfaces, can also execute them
- kdebugdialog: allows you to specify which debug messages you want to see
- kdeprint: the KDE printing system
- kdesktop: you guessed it: the desktop above the panel
- kdesu: a graphical front end to "su"
- kdm: replacement for XDM, for those people that like graphical logins
- kfind: find files
- khelpcenter: the app to read all great documentation about KDE
- khotkeys: intercepts keys and can call applications
- kicker: the panel at the botton with the K start button and the
taskbar etc
- kioslave: infrastructure that helps make every application internet
enabled e.g. to directly save a
file to ftp://place.org/dir/file.txt
- klipper: enhances and extenses the X clipboard
- kmenuedit: edit for the menu below the K start button
- konqueror: the file manager and web browser you get easily used to
- konsole: a shell program similar to xterm
- kpager: applet to show the contents of the virtual desktops
- kpersonalizer: the customization wizard you get when you first start KDE
- kreadconfig: a tool for shell scripts to get info from KDE's config files
- kscreensaver: the KDE screensaver environment and lot's of savers
- ksmserver: the KDE session manager (saves program status on login,
restarts those program at the next login)
- ksplash: the screen displayed while KDE starts
- kstart: to launch applications with special window properties
such as iconified etc
- ksysguard: task manager and system monitor, even for remote systems
- ksystraycmd: allows to run any application in the system tray
- ktip: gives you tips how to use KDE
- kwin: the KDE window manager
- kxkb: a keyboard map tool
- libkonq: some libraries needed by Konqueror
- nsplugins: together with OSF/Motif or Lesstif allows you to use Netscape
(tm) plugins in Konqueror
%package devel
Summary: Devel stuff for kdebase
Group: Development/KDE and QT
Requires: %name-common = %version-%release
Requires: kdelibs-devel >= %version
Requires: %name-konqueror = %version-%release
Requires: %name-libkonq = %version-%release
Requires: %name-wm = %version-%release
Requires: %name-kate = %version-%release
#
%description devel
This package contains header files needed if you wish to build applications
based on kdebase.
%package common
Summary: Common files for %name package
Group: Graphical desktop/KDE
Conflicts: kdebase <= 3.1.1-alt0.1
PreReq: /etc/tcb
Requires: kde-common >= %reqver
Requires: %{get_dep kdelibs}
#
%description common
Common files for %name package
%package libs
Summary: Basic libraries for kdebase package
Group: System/Libraries
Requires: %req_design_graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description libs
Basic libraries for kdebase package
%package kate
Summary: Advanced text editor
Group: Editors
#Requires: kdebase-libs >= %version-%release
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kate
A fast and advanced text editor with nice plugins
%package kcmshell
Summary: Utilily to launch configuration modules for KDE
Group: Graphical desktop/KDE
Requires: %name-common = %version-%release
#
%description kcmshell
Utilily to launch configuration modules
for KDE-based programs
%package kcontrol
Summary: The KDE Control Center
Group: Graphical desktop/KDE
Requires: %name-common = %version-%release
Requires: %name-konqueror = %version-%release
#
%description kcontrol
The KDE Control Center allows you to tweak the KDE settings
%package kdm
Summary: KDE Display Manager
Group: Graphical desktop/KDE
#Requires: %name-libs >= %version-%release
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Requires: xinitrc
Requires: %req_design_graphics
#
%description kdm
KDE Display Manager - is the replacement for XDM,
for those people that like graphical logins
%package konqueror
Summary: The file manager and web browser for KDE
Group: Networking/WWW
%if "%alternatives_ver" == "0.1"
PreReq(post,preun): alternatives >= 0.1
%else
PreReq(post,preun): alternatives >= 0.2
%endif
Requires: %name-common = %version-%release
Requires: indexhtml
Provides: webclient, /usr/bin/xbrowser
#
%description konqueror
The file manager and web browser easy for use.
%package libkonq
Summary: Libraries needed by Konqueror
Group: Networking/WWW
Requires: %name-common = %version-%release
#
%description libkonq
Some libraries needed by Konqueror
%package kio
Summary: Internet protocol plugins for KDE
Group: Graphical desktop/KDE
%if "%alternatives_ver" == "0.1"
PreReq(post,preun): alternatives >= 0.1
%else
PreReq(post,preun): alternatives >= 0.2
%endif
Requires: %name-common = %version-%release
%if %build_smb_ro
Provides: %name-kio-samba = %version-%release
Provides: %name-smbclient-ro = %version-%release
Obsoletes: %name-smbclient-ro
%endif
#
%description kio
Infrastructure that helps make every application
internet enabled e.g. to directly save a file
to ftp://place.org/dir/file.txt
%package kio-samba
Summary: Samba client plugin for KDE
Group: Graphical desktop/KDE
%if "%alternatives_ver" == "0.1"
PreReq(post,preun): alternatives >= 0.1
%else
PreReq(post,preun): alternatives >= 0.2
%endif
Requires: %name-common = %version-%release
Provides: %name-kio-samba = %version-%release
Provides: %name-smb3client-rw = %version-%release
Obsoletes: %name-smb3client-rw
Provides: %name-smbclient-rw = %version-%release
Obsoletes: %name-smbclient-rw
#
%description kio-samba
Samba client plugin for KDE with writing support
%package kdeprint
Summary: The KDE printing system
Group: System/Configuration/Printing
Requires: %name-common = %version-%release
Requires: poster
Requires: %{get_dep libcups}
Requires: %{get_dep kdelibs}
#
%description kdeprint
The KDE printing system
%package wm
Summary: KDE Window Manager basic programs
Group: Graphical desktop/KDE
PreReq: libutempter
%if "%alternatives_ver" == "0.1"
PreReq(post,preun): alternatives >= 0.1
%else
PreReq(post,preun): alternatives >= 0.2
%endif
Requires: menu >= 2.1.9
Requires: sound_handler urw-fonts
Requires: userpasswd shadow-change
Requires: %name-common = %version-%release
Requires: %name-libs = %version-%release
Provides: xvt, %_x11bindir/xvt
Provides: ksplashml = %version-%release
Obsoletes: ksplashml
Provides: kdebase-kate = %version-%release
Obsoletes: kdebase-kate
#
%description wm
KDE Window Manager basic programs
%prep
%setup -q
#%%setup -q -n kdebase-3.1.94
#%patch2 -p1 -b .basegroup
%patch3 -p1
%patch4 -p1
%patch5 -p1
#
#%patch12 -p1
%patch13 -p1
#
%patch15 -p1
#
%patch19 -p1
%patch20 -p1
# ssl path
%patch21 -p1
#%patch22 -p1
#
%patch44 -p1
%patch45 -p1
#
%patch68 -p1
%patch69 -p1
%patch70 -p1
# RH patches
%patch500 -p1
%patch501 -p1
%patch502 -p1
%patch503 -p1
%patch504 -p1
%patch505 -p1
# resize panel icons
#%patch506 -p1
#
# menu icons size
#%patch509 -p1
# ->ALT
#%patch900 -p1
# static lesstif
#%patch901 -p1
# ALT
%patch1001 -p1
#
%patch1005 -p1 -b .orig
%patch1006 -p1
%patch1007 -p1
#%patch1008 -p1
#%patch1009 -p1
#
%patch1011 -p1
%patch1012 -p1
#%patch1013 -p1
#
# konsole noxft
#%patch1015 -p1
# konsole font
%patch1016 -p1
#
%patch1018 -p1
%patch1019 -p1
%patch1020 -p1
#%patch1021 -p1 -b .orig
%patch1022 -p1 -b .orig
# smb auth
%patch1023 -p1
%patch1024 -p1
%patch1025 -p1
%patch1026 -p1
%patch1027 -p1
%patch1028 -p1
%patch1029 -p1
%patch1030 -p1
%patch1031 -p1
%patch1032 -p1
%patch1033 -p1
%patch1034 -p1
%patch1035 -p1
%patch1036 -p1
%patch1037 -p1
%patch1038 -p1
%patch1039 -p1
%patch1040 -p1
%patch1041 -p1
%patch1042 -p1
# scale panel icons
%patch1043 -p1 -b .scale
%patch1044 -p1 -b .scale
# Sergey A. Sukiyazov <corwin at micom.don.ru>
#%patch2000 -p1
%patch2001 -p1
#%patch2002 -p1
# security
%patch10001 -p0
%patch10002 -p1
pushd kcheckpass
%patch10003 -p0
popd
# remove to regenerate
rm -f kioslave/nfs/*_xdr.c
perl -pi -e "s|^Name(.*)\=(.*)|Name\1=\2 (KDE)|" khelpcenter/Help.desktop
perl -pi -e "s|Country/Region|Country-Region|g" kcontrol/locale/language.desktop
perl -pi -e "s|Icon=fileshare\.png|Icon=share.png|" kcontrol/fileshare/fileshare.desktop
perl -pi -e "s|Icon=kded|Icon=kcmpartitions|" kcontrol/kded/kcmkded.desktop
subst "s/\(Wl,--no-undefined\)/-Wl,--warn-unresolved-symbols \1/g" admin/acinclude.m4.in
subst "s/\-lkdeui/-lkdeui -lpthread/g" admin/acinclude.m4.in
subst "s/\-lkdecore/-lkdecore -lpthread/g" admin/acinclude.m4.in
subst "s/\.la/.so/g" admin/acinclude.m4.in
make -f admin/Makefile.common cvs ||:
%build
rm -rf %buildroot
#%%add_optflags -I%_datadir/samba/vfs-devel/source/include -L%qtdir/lib
%add_optflags -L%qtdir/lib
%add_optflags -DX11CONFDIR='\"%x11confdir\"'
export QTDIR=%qtdir
export KDEDIR=%prefix
export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L%buildroot/%_libdir -L%buildroot/%_libdir/kde3 -L%_libdir"
export CPPFLAGS="%optflags"
%configure \
--prefix=%prefix \
--sysconfdir=%_sysconfdir \
%if %unstable
--enable-debug=full \
%else
--disable-debug \
--enable-final \
%endif
--disable-static \
--enable-shared \
--enable-fast-install=yes \
--disable-embedded \
--disable-palmtop \
--disable-rpath \
--with-cdparanoia \
--with-arts \
--enable-cups \
--with-gnu-ld \
--with-pic \
--with-xinerama \
--with-xdmcp \
--with-dpms \
--with-pam=kde \
--with-kss-pam=kscreensaver \
--with-shadow \
--with-ldap \
--with-x \
--with-kdm-xconsole \
--with-motif \
--with-motif-includes=/usr/X11R6/include/Xm \
--with-motif-libraries=/usr/X11R6/lib/ \
--program-transform-name=""
%make_build
%make_build -C kioslave/smb
%if %build_smb_ro
%make_build -C kioslave/smbro
%endif
%make_build apidox
g++ $RPM_OPT_FLAGS -o mailsettings %SOURCE4000
%install
%if %unstable
%set_strip_method none
%endif
mkdir -p %buildroot/%x11confdir/kdm
mkdir -p %buildroot/%_datadir/apps/konqueror/dirtree/remote
%make_build DESTDIR=%buildroot install RUN_KAPPFINDER=no
%make_build DESTDIR=%buildroot install-apidox
install -m 0755 mailsettings %buildroot/%_bindir
############ install smbclient #############
#
mkdir -p %buildroot/%_libdir/kioslave_smb
%if %build_smb_ro
%make DESTDIR=%buildroot install -C kioslave/smbro
mv -f %buildroot/%_libdir/kde3/kio_smb.la %buildroot/%_libdir/kioslave_smb/kio_smb_ro.la
mv -f %buildroot/%_libdir/kde3/kio_smb.so %buildroot/%_libdir/kioslave_smb/kio_smb_ro.so
mv -f %buildroot/%_datadir/services/smb.protocol %buildroot/%_libdir/kioslave_smb/smb_ro.protocol
%endif
%make DESTDIR=%buildroot install -C kioslave/smb
mv -f %buildroot/%_libdir/kde3/kio_smb.la %buildroot/%_libdir/kioslave_smb/kio_smb_rw.la
mv -f %buildroot/%_libdir/kde3/kio_smb.so %buildroot/%_libdir/kioslave_smb/kio_smb_rw.so
mv -f %buildroot/%_datadir/services/smb.protocol %buildroot/%_libdir/kioslave_smb/smb_rw.protocol
# create .desktop for usb devices
#for f in `find %buildroot/%_datadir -type f -name zip_\*desktop`
#do
# fnew=`echo "$f"| sed 's/zip_/usb_/'`
# cp -f $f $fnew
# subst "s/zip_/TMPDEVICENAME_/" $fnew
# subst "s/[Z,z][I,i][P,p]/USB/" $fnew
# subst "s/TMPDEVICENAME_/usb_/" $fnew
#done
# Install kde pam configuration file
install -d -m 0755 %buildroot/%_sysconfdir/pam.d/
install -m 0644 %SOURCE10 %buildroot/%_sysconfdir/pam.d/kde
# Install kscreensaver pam configuration file
install -m 0644 %SOURCE5002 %buildroot/%_sysconfdir/pam.d/kscreensaver
# Install ksysguardd initscript
install -d -m 0755 %buildroot/%_sysconfdir/rc.d/init.d/
install -m 0755 %SOURCE2 %buildroot/%_sysconfdir/rc.d/init.d/ksysguardd
#
install -m0644 %SOURCE12 %buildroot/%_datadir/apps/kicker/wallpapers/default1.png
# Service menus
install -m644 %SOURCE2001 %buildroot/%_datadir/apps/konqueror/servicemenus/convertpdftops.desktop
install -m644 %SOURCE2002 %buildroot/%_datadir/apps/konqueror/servicemenus/convertpstopdf.desktop
install -m644 %SOURCE900 %buildroot/%_datadir/icons/crystalsvg/16x16/filesystems/share.png
install -m644 %SOURCE901 %buildroot/%_datadir/icons/crystalsvg/32x32/filesystems/share.png
mkdir -p %buildroot/%_datadir/icons/crystalsvg/48x48/filesystems/
install -m644 %SOURCE902 %buildroot/%_datadir/icons/crystalsvg/48x48/filesystems/share.png
# Add chksession support
install -d -m 0755 %buildroot/%x11confdir/wmsession.d/
cat << EOF > %buildroot/%x11confdir/wmsession.d/01KDE
NAME=KDE
ICON=%_iconsdir/default.kde/64x64/apps/kmenu.png
DESC=The K Desktop Environment
EXEC=%_bindir/startkde
SCRIPT:
exec %_bindir/startkde
EOF
# Add quickstart mode
install -m 0755 %SOURCE5001 %buildroot/%_bindir/startkde_safe
cat << EOF > %buildroot/%x11confdir/wmsession.d/91KDE
NAME=KDE (safe)
ICON=%_iconsdir/default.kde/64x64/filesystems/exec.png
DESC=The K Desktop Environment
EXEC=%_bindir/startkde_safe
SCRIPT:
exec %_bindir/startkde_safe
EOF
#=============================================#
# Mandrake menu support #
#=============================================#
## Mandrake menu support
install -d %buildroot/%_sysconfdir/menu-methods/
install -m 0755 %SOURCE201 %buildroot/%_sysconfdir/menu-methods/
install -m 0755 %SOURCE202 %buildroot/%_sysconfdir/menu-methods/
install -m 0755 %SOURCE203 %buildroot/%_sysconfdir/menu-methods/
# Create menu directories
install -d %buildroot/%_menudir/
install -d %buildroot/%applnk-alt
perl -pi -e "s|^NoDisplay.*$||g" %buildroot/%applnk/KControl.desktop
perl -pi -e "s|^Exec\=kcmshell.*printmgr.*$|Exec=kcmshell printers|g" %buildroot/%kdemenu/printers.desktop
perl -pi -e "s|^Exec\=kcmshell.*printmgr.*$|Exec=kcmshell printers|g" %buildroot/%applnk/Settingsmenu/printmgr.desktop
cat >%buildroot/%_menudir/%name-basedir <<EOF
?package(kdelibs): needs="kde" section="/" title=".hidden" longtitle="Please don't remove or modify" icon="go.png"
?package(kdelibs): needs="kde" section="/" title="System" extra_opt="NoDisplay=true" icon="go.png"
?package(kdelibs): needs="kde" section="System" title="ScreenSavers" extra_opt="X-KDE-BaseGroup=screensavers\\\\nNoDisplay=true" icon="go.png"
?package(kdelibs): needs="kde" section="Configuration/" title="KDE" extra_opt="X-KDE-BaseGroup=settings" icon="go"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Accessibility" icon="access"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Components" icon="kcmpartitions"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Desktop" icon="desktop"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Information" icon="hwinfo" extra_opt="X-KDE-BaseGroup=info"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="LookNFeel" icon="looknfeel"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Network" icon="network"
?package(kdelibs): needs="kde" section="Configuration/KDE/Network/" title="WebBrowsing" icon="konqueror"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Peripherals" icon="input_devices_settings"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Personalization" icon="locale"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="PowerControl" icon="energy"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Security" icon="encrypted"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Sound" icon="multimedia"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="System" icon="kcmsystem"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="WebBrowsing" icon="konqueror"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="FileBrowsing" icon="filetypes"
EOF
# Configuration
%Kd2m %name-wm Applications/Accessibility %buildroot/%kdemenu/krandrtray.desktop %buildroot/%_menudir/kdebase-krandrtray kde
%Kd2m %name-kcontrol Configuration/Other %buildroot/%kdemenu/kcmfontinst.desktop %buildroot/%_menudir/kdebase-configuration-kcmfontinst kde
%Kd2m %name-kcontrol Configuration/Other %buildroot/%kdemenu/clock.desktop %buildroot/%_menudir/kcmshell-clock kde
%Kd2m %name-kdm Configuration/Other %buildroot/%kdemenu/kdm.desktop %buildroot/%_menudir/kcmshell-kdm
# %_datadir/applnk/
%Kd2m %name-konqueror / %buildroot/%applnk/konqueror.desktop %buildroot/%_menudir/%name-konqueror kde
%Kd2m %name-konqueror / %buildroot/%kdemenu/Home.desktop %buildroot/%_menudir/%name-home kde
%Kd2m %name-kcontrol / %buildroot/%kdemenu/KControl.desktop %buildroot/%_menudir/%name-kcontrol kde
%Kd2m %name-wm / %buildroot/%kdemenu/Kfind.desktop %buildroot/%_menudir/%name-kfind kde
%Kd2m %name-wm .hidden %buildroot/%kdemenu/kcmkicker.desktop %buildroot/%_menudir/%name-kcmkicker kde
%Kd2m %name-kdeprint / %buildroot/%kdemenu/printers.desktop %buildroot/%_menudir/%name-printmgr kde
%Kd2m %name-kcontrol Documentation %buildroot/%kdemenu/Help.desktop %buildroot/%_menudir/%name-help kde
# %_datadir/applnk/Editors/
%Kd2m %name-wm Applications/Editors %buildroot/%kdemenu/kate.desktop %buildroot/%_menudir/%name-kate
%Kd2m %name-wm Applications/Editors %buildroot/%kdemenu/kwrite.desktop %buildroot/%_menudir/%name-kwrite
# %_datadir/applnk/Internet
###%Kd2m %name Networking/WWW %buildroot/%applnk/Internet/keditbookmarks.desktop %buildroot/%_menudir/%name-keditbookmarks
%Kd2m %name-konqueror Networking/WWW %buildroot/%kdemenu/konqbrowser.desktop %buildroot/%_menudir/%name-konqbrowser
# %_datadir/applnk/System
#
%Kd2m %name-konqueror /././ %buildroot/%kdemenu/kfmclient.desktop %buildroot/%_menudir/%name-kfmclient kde
%Kd2m %name-konqueror /./././ %buildroot/%kdemenu/kfmclient_dir.desktop %buildroot/%_menudir/%name-kfmclient_dir kde
%Kd2m %name-konqueror /././././ %buildroot/%kdemenu/kfmclient_war.desktop %buildroot/%_menudir/%name-kfmclient_war kde
%Kd2m %name-konqueror /./././././ %buildroot/%kdemenu/kfmclient_html.desktop %buildroot/%_menudir/%name-kfmclient_html kde
#
%Kd2m %name-konqueror "Applications/File tools" %buildroot/%applnk/.hidden/konqfilemgr.desktop %buildroot/%_menudir/%name-konqfilemgr kde
%Kd2m %name-konqueror "Applications/File tools" %buildroot/%kdemenu/konquerorsu.desktop %buildroot/%_menudir/%name-konquerorsu kde
%Kd2m %name-wm Terminals %buildroot/%kdemenu/konsole.desktop %buildroot/%_menudir/%name-konsole
%Kd2m %name-wm Terminals %buildroot/%kdemenu/konsolesu.desktop %buildroot/%_menudir/%name-konsolesu
#
%Kd2m %name-wm Applications/Monitoring %buildroot/%kdemenu/ksysguard.desktop %buildroot/%_menudir/%name-ksysguard kde
# %_datadir/applnk/System/ScreenSavers
%Kd2m %name-wm System/ScreenSavers %buildroot/%applnk/System/ScreenSavers/KRandom.desktop %buildroot/%_menudir/%name-KRandom kde
%Kd2m %name-wm System/ScreenSavers %buildroot/%applnk/System/ScreenSavers/KBlankscreen.desktop %buildroot/%_menudir/%name-KBlankscreen kde
# %_datadir/applnk/System
# %_datadir/applnk/System/Terminal
# %_datadir/applnk/Toys
# %_datadir/applnk/Utilities
###%Kd2m %name Office/AddressBooks %buildroot/%applnk/Utilities/kaddressbook.desktop %buildroot/%_menudir/%name-kaddressbook kde
%Kd2m %name-kdeprint "Applications/Communications" %buildroot/%kdemenu/kdeprintfax.desktop %buildroot/%_menudir/%name-kdeprintfax kde
%Kd2m %name-kdeprint "Applications/Monitoring" %buildroot/%kdemenu/kjobviewer.desktop %buildroot/%_menudir/%name-kjobviewer kde
%Kd2m %name-wm "Applications/Text tools" %buildroot/%kdemenu/klipper.desktop %buildroot/%_menudir/%name-klipper kde
%Kd2m %name-wm Applications/Accessibility %buildroot/%kdemenu/kpager.desktop %buildroot/%_menudir/%name-kpager kde
%Kd2m %name-wm Documentation %buildroot/%kdemenu/ktip.desktop %buildroot/%_menudir/%name-ktip kde
%Kd2m %name-kcontrol "Applications/Monitoring" %buildroot/%applnk/System/kinfocenter.desktop %buildroot/%_menudir/%name-kinfocenter
cat <<EOF > %buildroot/%_menudir/%name-session
?package(%name-wm): needs=wm \
section="Session/Windowmanagers" \
title="KDE" \
longtitle="K Desktop Environment" \
command="%_bindir/startkde" \
icon="go.png"
EOF
# install alternatives
install -d %buildroot/%_sysconfdir/alternatives/packages.d
cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name <<__EOF__
%_libdir/kde3/kio_smb.so %_libdir/kioslave_smb/kio_smb_rw.so 20
%_libdir/kde3/kio_smb.la %_libdir/kioslave_smb/kio_smb_rw.la %_libdir/kioslave_smb/kio_smb_rw.so
%_datadir/services/smb.protocol %_libdir/kioslave_smb/smb_rw.protocol %_libdir/kioslave_smb/kio_smb_rw.so
%_libdir/kde3/kio_smb.so %_libdir/kioslave_smb/kio_smb_ro.so 10
%_libdir/kde3/kio_smb.la %_libdir/kioslave_smb/kio_smb_ro.la %_libdir/kioslave_smb/kio_smb_ro.so
%_datadir/services/smb.protocol %_libdir/kioslave_smb/smb_ro.protocol %_libdir/kioslave_smb/kio_smb_ro.so
%_x11bindir/xvt %_bindir/konsole 15
__EOF__
cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name-konqueror <<__EOF__
%_bindir/xbrowser %_bindir/konqueror 50
__EOF__
%if "%alternatives_ver" == "0.1"
cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name <<__EOF__
<group name="candidate">
<option name="link">%_libdir/kde3/kio_smb.so</option>
<option name="real">%_libdir/kioslave_smb/kio_smb_rw.so</option>
<option name="weight" type="number">20</option>
<group name="slave">
<option name="link">%_datadir/services/smb.protocol</option>
<option name="real">%_libdir/kioslave_smb/smb_rw.protocol</option>
</group>
</group>
<group name="candidate">
<option name="link">%_libdir/kde3/kio_smb.so</option>
<option name="real">%_libdir/kioslave_smb/kio_smb_ro.so</option>
<option name="weight" type="number">10</option>
<group name="slave">
<option name="link">%_datadir/services/smb.protocol</option>
<option name="real">%_libdir/kioslave_smb/smb_ro.protocol</option>
</group>
</group>
<group name="candidate">
<option name="link">%_x11bindir/xvt</option>
<option name="real">%_bindir/konsole</option>
<option name="weight" type="number">15</option>
</group>
__EOF__
cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name-konqueror <<__EOF__
<group name="candidate">
<option name="link">%_bindir/xbrowser</option>
<option name="real">%_bindir/konqueror</option>
<option name="weight" type="number">50</option>
</group>
__EOF__
%endif
#=============================================#
# End of Mandrake menu structure #
#=============================================#
#
rm -fr %buildroot/%_datadir/apps/kdm/pics/users %buildroot/%_datadir/apps/kdm/faces/*
mkdir -p %buildroot/%_datadir/apps/kdm/faces
# Sync with design
rm -f %buildroot/%_datadir/apps/kdewizard/pics/wizard_small.png
ln -s ../../../design-current/kde/ktip-wizard_small.png %buildroot/%_datadir/apps/kdewizard/pics/wizard_small.png
#
if [ ! -d %buildroot/%_datadir/apps/ksplash/Themes/Default-kde ]
then
mv %buildroot/%_datadir/apps/ksplash/Themes/Default %buildroot/%_datadir/apps/ksplash/Themes/Default-kde
ln -s ../../../design-current/kde/splash/pics %buildroot/%_datadir/apps/ksplash/Themes/Default
fi
#
mv -f %buildroot/%_datadir/wallpapers/default_blue.jpg %buildroot/%_datadir/wallpapers/kde_blue.jpg
ln -s ../design-current/backgrounds/default.png %buildroot/%_datadir/wallpapers/default_blue.jpg
#
pushd %buildroot/%_datadir/apps/kicker/pics
for n in disk*.png kside*.png
do
rm -f $n ; ln -s ../../../design-current/kde/kicker/pics/"$n" $n
done
popd
#
install -d %buildroot/%_datadir/apps/kdesktop/Desktop
install -d -m 0755 %buildroot/%_sysconfdir/profile.d/
ln -s ./kde3/libkfontviewpart.so %buildroot/%_libdir/libkfontviewpart.so
mkdir -p %buildroot/%_sysconfdir/logrotate.d
install -m 0644 %SOURCE11 %buildroot/%_sysconfdir/logrotate.d/kdm
# Create file lists
D=`pwd`/debian
T=`pwd`/file_lists_tmp
L=`pwd`/file_lists
rm -rf $L; mkdir -p $L
rm -rf $T; mkdir -p $T
cp $D/*.install $T
pushd $T
for f in $T/*.install
do
subst "s/^debian\/tmp//" $f
subst "s/^debian\/local.*$//" $f
subst "s/^.*debian\/patches.*$//" $f
subst "s/^\/etc.*$//" $f
subst "s/^.*etc\/kde3.*$//" $f
subst "s/.*usr\/share\/xsessions.*//" $f
subst "s/.*\/usr\/share\/config\/.*//" $f
subst "s/.*\/usr\/share\/doc\/.*//" $f
subst "s/\(\/usr\/lib\/.*\)\.so.*/\1.so*/" $f
subst "s/.*\/usr\/share\/config\/kdm.*//" $f
# filelist changes
subst "s/.*\/usr\/lib\/krandrinithack\.so.*//" $f
subst "s/.*\/usr\/share\/apps\/konqueror\/profiles\/filepreview//" $f
#
mv $f $f.tmp
grep -v -e.*\.la{,\ }$ $f.tmp >> $f
grep -e\/usr\/lib\/kde3\/.*\.la{,\ }$ $f.tmp >> $f ||:
rm -f $f.tmp
done
ls -1 *-dev.install | \
while read f
do
cat $f | \
sed "s/\/usr\/include\/kde/\/usr\/include/" \
>> $L/devel
done
ls -1 *.install | grep -v -e\-dev\.install | \
while read f
do
P=`echo $f| sed "s/\.install$//"`
case $P in
xfonts-konsole)
;;
kdm)
cat $f | \
grep -v /usr/share/apps/kdm/pics/users \
>> $L/kdm
;;
kdeprint)
cat $f >> $L/kdeprint
;;
kcontrol)
cat $f | \
grep -v -e{kshorturifilter,kuriikwsfilter,kurisearchfilter,localdomainurifilter} \
>> $L/kcontrol
grep -e{kshorturifilter,kuriikwsfilter,kurisearchfilter,localdomainurifilter} \
$f >> $L/libkonq
;;
konqueror|konqueror-nsplugins)
cat $f >> $L/konqueror
;;
libkonq*)
cat $f >> $L/libkonq
;;
kdebase-kio-plugins)
subst "s/^.*\/smb\.protocol$//" $f
subst "s/^.*kio_smb\..*$//" $f
cat $f >> $L/kio
;;
kate|kappfinder|kdesktop|kfind|khelpcenter|kicker|klipper|kmenuedit|konsole|kpager|kpersonalizer|ksmserver|ksplash|ksysguard|ksysguardd|ktip|kwin|kdepasswd)
cat $f | \
grep -v /usr/share/apps/kdm/pics/users | \
grep -v /usr/share/apps/ksplash/pics | \
grep -v /usr/share/apps/ksplash/Themes/Default | \
grep -v -e{\/usr\/bin\/kwrited,\/usr\/bin\/konsole} \
>> $L/wm
;;
*)
cat $f | \
grep -v /lib/kde3/kgreet_ | \
grep -v -e{\/usr\/bin\/kcheckpass,\/usr\/bin\/kdesud} \
>> $L/libs
;;
esac
done
cat >$L/kcmshell << __EOF__
%_bindir/kcmshell
%_libdir/libkdeinit_kcmshell.so*
%_libdir/kde3/kcmshell.*
%_libdir/kde3/kcm_konq.*
%_libdir/kde3/kcm_filetypes.*
%_libdir/kde3/kcm_kio.*
%_libdir/kde3/kcm_konqhtml.*
%_libdir/kde3/kcm_crypto.*
%_libdir/kde3/kcm_kurifilt.*
%_libdir/kde3/kcm_css.*
%applnk/.hidden/filebehavior.desktop
%applnk/.hidden/fileappearance.desktop
%applnk/.hidden/filepreviews.desktop
%applnk/.hidden/kcmkonq.desktop
%applnk/.hidden/konqhtml.desktop
%applnk/.hidden/socks.desktop
%kdemenu/filetypes.desktop
%kdemenu/lanbrowser.desktop
%kdemenu/netpref.desktop
%kdemenu/proxy.desktop
%kdemenu/cookies.desktop
%kdemenu/cache.desktop
%kdemenu/ebrowsing.desktop
%kdemenu/kcmcss.desktop
%kdemenu/khtml_behavior.desktop
%kdemenu/khtml_fonts.desktop
%kdemenu/khtml_java_js.desktop
%kdemenu/khtml_plugins.desktop
%kdemenu/useragent.desktop
%kdemenu/crypto.desktop
%applnk/Settings/WebBrowsing/khtml_appearance.desktop
%applnk/Settings/WebBrowsing/nsplugin.desktop
%applnk/.hidden/smb.desktop
%applnk/Settings/WebBrowsing/smb.desktop
/usr/share/apps/kcmcss
%_iconsdir/*/*/apps/cache.png
%_iconsdir/*/*/apps/proxy.png
%_iconsdir/*/*/apps/cookie.png
%_iconsdir/*/*/apps/enhanced_browsing.png
%_iconsdir/*/*/apps/filetypes.png
%_iconsdir/*/*/apps/samba.png
%_iconsdir/*/*/apps/stylesheet.png
%_iconsdir/*/*/apps/agent.png
/usr/share/services/searchproviders
/usr/share/services/useragentstrings
/usr/share/servicetypes/searchprovider.desktop
/usr/share/servicetypes/uasprovider.desktop
__EOF__
cat $L/kcmshell | perl -pi -e "s/(.*)/%exclude \1/" >>$L/kcontrol
popd
rm -rf $T
# Create configuration menu
BRT=%buildroot
DTDR=%_datadir
LBDR=%_libdir
APPLNK=%applnk
KDEMENU=%kdemenu
MENUDIR=%_menudir
FLISTS=`pwd`/file_lists
what_package()
{
for f in $FLISTS/*
do
if grep -v -e^\%\exclude $f | grep -e\/`basename $1`$ >/dev/null
then
PACKAGE="%name-`basename $f`"
break
fi
done
[ -z "$PACKAGE" ] && PACKAGE="%name-kcontrol"
echo $PACKAGE
}
add2list()
{
echo "$2"| sed "s/^\.\///" >>$FLISTS/`echo $1|sed "s/^%name\-//"`
}
pushd %buildroot
# .hidden
for f in ./$APPLNK/.hidden/*.desktop
do
MNAME=$(echo "$(basename $f)"| sed "s/\.desktop$//")
PACKAGE=`what_package $f`
%Kd2m $PACKAGE ".hidden" $f $BRT/$MENUDIR/kcmshell-hidden-$MNAME kde
add2list $PACKAGE $MENUDIR/kcmshell-hidden-$MNAME
done
# Configuration/Other
%Kd2m %name-kdeprint "Configuration/Printing" $BRT/$APPLNK/Settingsmenu/printmgr.desktop $BRT/$MENUDIR/%name-configuration-printmgr kde
add2list %name-kdeprint $MENUDIR/%name-configuration-printmgr
for f in ./$KDEMENU/*.desktop
do
grep -eCategories\=.*Settings.*$ $f >/dev/null || continue
MNAME=$(echo "$(basename $f)"| sed "s/\.desktop$//")
KDE_ONLY=
PACKAGE=
case $MNAME in
kappfinder)
continue
;;
kcmkicker|kmenuedit|kpersonalizer)
KDE_ONLY="kde"
;;
*)
;;
esac
PACKAGE=`what_package $f`
%Kd2m $PACKAGE "Configuration/Other" $f $BRT/$MENUDIR/kdebase-configuration-$MNAME $KDE_ONLY
add2list $PACKAGE $MENUDIR/kdebase-configuration-$MNAME
done
# Configuration/KDE/
for f in ./$KDEMENU/*.desktop
do
CTGR=`grep -eCategories\=.*{X-KDE-information,X-KDE-settings}.* $f| \
sed "s/;$//" | \
perl -pi -e "s/.*(X\-KDE\-settings.*)$/\1/" | \
perl -pi -e "s/.*(X\-KDE\-information)$/\1/"`
[ -z "$CTGR" ] && continue
MNAME=$(echo "$(basename $f)"| sed "s/\.desktop$//")
SECTION=
PACKAGE=
case $CTGR in
X-KDE-information)
SECTION="Configuration/KDE/Information"
;;
X-KDE-settings-accessibility)
SECTION="Configuration/KDE/Accessibility"
;;
X-KDE-settings-components)
SECTION="Configuration/KDE/Components"
;;
X-KDE-settings-desktop)
SECTION="Configuration/KDE/Desktop"
;;
X-KDE-settings-looknfeel)
SECTION="Configuration/KDE/LookNFeel"
;;
X-KDE-settings-network)
SECTION="Configuration/KDE/Network"
;;
X-KDE-settings-webbrowsing)
SECTION="Configuration/KDE/Network/WebBrowsing"
;;
X-KDE-settings-peripherals)
SECTION="Configuration/KDE/Peripherals"
;;
X-KDE-settings-power)
SECTION="Configuration/KDE/PowerControl"
;;
X-KDE-settings-security)
SECTION="Configuration/KDE/Security"
;;
X-KDE-settings-sound)
SECTION="Configuration/KDE/Sound"
;;
X-KDE-settings-system)
SECTION="Configuration/KDE/System"
;;
*)
echo "Unknown configuration section - $SECTION"
exit 1
;;
esac
PACKAGE=`what_package $f`
%Kd2m $PACKAGE $SECTION $f $BRT/$MENUDIR/kcmshell-$MNAME kde
add2list $PACKAGE $MENUDIR/kcmshell-$MNAME
done
for f in $FLISTS/*
do
mv $f $f.tmp
cat $f.tmp | sort| uniq > $f
rm -f $f.tmp
done
%post common
%post_register_alternatives %name -- kde_kio_smb.so kde_kio_smb.la kde_smb.protocol
%preun common
%preun_unregister_alternatives %name
%post libs
%post_ldconfig
%update_menus
#
%postun libs
%postun_ldconfig
%clean_menus
%post kio
%post_ldconfig
%update_menus
%update_alternatives
#
%postun kio
%postun_ldconfig
%clean_menus
#
%if %build_smb_ro
%triggerpostun kio -- kdebase-smbclient-ro < 3.1.1-alt1
%update_alternatives
%endif
#
%if %build_smb_ro
%preun kio
%preun_remove_alternatives %_libdir/kde3/kio_smb_ro.so
%endif
%post kio-samba
%update_alternatives
#
%triggerpostun kio-samba -- kdebase-smbclient-rw < 3.1.1-alt1, kdebase-smb3client-rw < 3.1.1-alt1
%update_alternatives
#
%preun kio-samba
%preun_remove_alternatives %_libdir/kde3/kio_smb_rw.so
%post wm
%post_ldconfig
%update_alternatives
%update_wms
%update_menus
%preun wm
%preun_remove_alternatives %_x11bindir/konsole
#
%postun wm
%postun_ldconfig
%clean_wms
%clean_menus
%post kdm
[ -f %_datadir/design-current/faces/default.png -a -d %_datadir/apps/kdm/faces -a ! -f %_datadir/apps/kdm/faces/.default.face.icon ] && \
cp -af %_datadir/design-current/faces/default.png %_datadir/apps/kdm/faces/.default.face.icon ||:
%postun kdm
%triggerpostun kdm -- kdebase-kdm < %major.%minor
%_bindir/genkdmconf --old-confs --old-scripts --in %x11confdir/kdm ||:
%triggerpostun kdm -- kdebase < 3.1.1-alt2
%_bindir/genkdmconf --old-confs --old-scripts --in %x11confdir/kdm ||:
%post kate
%post_ldconfig
%update_menus
%postun kate
%postun_ldconfig
%clean_menus
%post konqueror
%post_ldconfig
%post_register_alternatives %name-konqueror
%update_alternatives
%update_menus
%preun konqueror
%preun_remove_alternatives %_bindir/konqueror
%postun konqueror
%postun_ldconfig
%clean_menus
%post libkonq
%post_ldconfig
%postun libkonq
%postun_ldconfig
%post kcontrol
%post_ldconfig
%update_menus
%postun kcontrol
%postun_ldconfig
%clean_menus
%post kcmshell
%update_menus
%postun kcmshell
%clean_menus
%post kdeprint
%post_ldconfig
%update_menus
%postun kdeprint
%postun_ldconfig
%clean_menus
%files
%files common
%config(noreplace) %_sysconfdir/pam.d/kde
%config(noreplace) %_sysconfdir/menu-methods/kde-desktop*
%config(noreplace) %_sysconfdir/menu-methods/kde-menu*
%config /%_sysconfdir/alternatives/packages.d/%name
%_datadir/apps/kdisplay/color-schemes
%_menudir/kdebase-basedir
%files libkonq -f file_lists/libkonq
%files kio -f file_lists/kio
%if %build_smb_ro
%dir %_libdir/kioslave_smb/
%_libdir/kioslave_smb/kio_smb_ro.*
%_libdir/kioslave_smb/smb_ro.protocol
%endif
#%_datadir/mimelnk/application/x-smb-workgroup.desktop
%_datadir/mimelnk/kdedevice/storage_mounted.desktop
%_datadir/mimelnk/kdedevice/storage_unmounted.desktop
%doc %_docdir/HTML/en/kioslave
%files libs -f file_lists/libs
%_sysconfdir/xdg
%attr(2711,root,chkpwd) %_bindir/kcheckpass
%attr(2711,root,nobody) %_bindir/kdesud
%dir %_libdir/kconf_update_bin
#/%_sysconfdir/xdg/menus/applications-merged/kde-essential.menu
#/%_sysconfdir/xdg/menus/kde-information.menu
#/%_sysconfdir/xdg/menus/kde-screensavers.menu
#/%_sysconfdir/xdg/menus/kde-settings.menu
%_iconsdir/*/*/filesystems/share.png
%doc %_docdir/HTML/en/kdebugdialog
%files wm -f file_lists/wm
%exclude /usr/bin/kdepasswd
%exclude /usr/lib/menu/kdebase-configuration-kdepasswd
%exclude /usr/share/applications/kde/kdepasswd.desktop
#
%config %_sysconfdir/rc.d/init.d/ksysguardd
%config(noreplace) %_sysconfdir/X11/wmsession.d/*KDE
%config(noreplace) %_sysconfdir/pam.d/kscreensaver
%attr(2711,root,utempter) %_bindir/konsole
#%attr(2711,root,utempter) %_bindir/kwrited
/usr/bin/mailsettings
/usr/bin/startkde
/usr/bin/startkde_safe
/usr/bin/krandrinithack
/usr/bin/kwin_rules_dialog
#
/usr/bin/krandrtray
/usr/lib/libkdeinit_kwin_rules_dialog.so*
/usr/lib/kde3/kcm_randr.*
/usr/lib/kde3/krandrinithack.*
/usr/lib/kde3/kwin_rules_dialog.*
/usr/lib/libkdeinit_krandrinithack.so*
/usr/share/icons/*/*/*/randr.png
/usr/share/applnk/.hidden/randr.desktop
/usr/share/applications/kde/krandrtray.desktop
%_menudir/kdebase-krandrtray
#
/usr/lib/menu/kdebase-KBlankscreen
/usr/lib/menu/kdebase-KRandom
/usr/lib/menu/kdebase-help
#/usr/lib/menu/kdebase-kappfinder
/usr/lib/menu/kdebase-kcmkicker
/usr/lib/menu/kdebase-kfind
/usr/lib/menu/kdebase-kinfocenter
/usr/lib/menu/kdebase-klipper
/usr/lib/menu/kdebase-konsole
/usr/lib/menu/kdebase-konsolesu
/usr/lib/menu/kdebase-kpager
/usr/lib/menu/kdebase-ksysguard
/usr/lib/menu/kdebase-ktip
/usr/lib/menu/kdebase-session
/usr/lib/menu/kdebase-kate
/usr/lib/menu/kdebase-kwrite
%_datadir/apps/kappfinder/apps/Internet/mozilla-firefox.desktop
%_datadir/apps/ksplash
%dir %_datadir/apps/kate
%dir %_datadir/apps/kate/plugins
%dir %_datadir/apps/kate/scripts
%_datadir/apps/khotkeys/
%_datadir/apps/kconf_update/konqueror_gestures_kde321_update.upd
/usr/share/wallpapers/kde_blue.jpg
%_datadir/apps/kicker/wallpapers/default1.png
%doc %_docdir/HTML/en/kdesu
%doc %_docdir/HTML/en/kfind
%doc %_docdir/HTML/en/kicker
%doc %_docdir/HTML/en/klipper
%doc %_docdir/HTML/en/kmenuedit
%doc %_docdir/HTML/en/konsole
%doc %_docdir/HTML/en/kpager
%doc %_docdir/HTML/en/ksplashml
%doc %_docdir/HTML/en/kxkb
%doc %_docdir/HTML/en/khelpcenter
%doc %_docdir/HTML/en/ksysguard
%doc %_docdir/HTML/en/kate
%doc %_docdir/HTML/en/kwrite
%files kcmshell -f file_lists/kcmshell
%files kdeprint -f file_lists/kdeprint
/usr/lib/menu/kdebase-printmgr
/usr/lib/menu/kdebase-kjobviewer
/usr/lib/menu/kdebase-kdeprintfax
%doc %_docdir/HTML/en/kdeprint
%files konqueror -f file_lists/konqueror
%config /%_sysconfdir/alternatives/packages.d/%name-konqueror
%doc %_docdir/HTML/en/konqueror
/usr/share/apps/konqueror/servicemenus/convertpdftops.desktop
/usr/share/apps/konqueror/servicemenus/convertpstopdf.desktop
/usr/share/apps/konqueror/servicemenus/storage_mounted_konqy.desktop
/usr/share/apps/konqueror/servicemenus/storage_unmounted_konqy.desktop
/usr/lib/menu/kdebase-home
/usr/lib/menu/kdebase-konqfilemgr
/usr/lib/menu/kdebase-konqbrowser
/usr/lib/menu/kdebase-konqueror
/usr/lib/menu/kdebase-konquerorsu
/usr/lib/menu/kdebase-kfmclient
/usr/lib/menu/kdebase-kfmclient_dir
/usr/lib/menu/kdebase-kfmclient_html
/usr/lib/menu/kdebase-kfmclient_war
#
%files kdm -f file_lists/kdm
%config(noreplace) %_sysconfdir/logrotate.d/kdm
%exclude %_datadir/apps/kdm/sessions
%dir %_sysconfdir/X11/kdm
%_datadir/apps/kdm/faces
%doc %_docdir/HTML/en/kdm
%_bindir/kdmctl
%_libdir/kde3/kgreet_*
%files kcontrol -f file_lists/kcontrol
%_libdir/libkfontviewpart.so*
%_libdir/kde3/kcm_smartcard.*
%doc %_docdir/HTML/en/kcontrol
%doc %_docdir/HTML/en/kinfocenter
%kdemenu/smartcard.desktop
%_menudir/kdebase-configuration-kcmfontinst
%_menudir/kdebase-kcontrol
%_menudir/kcmshell-clock
%_menudir/kcmshell-kdm
/usr/share/sounds/KDE_Beep.ogg
/usr/share/sounds/KDE_Beep_Car.ogg
/usr/share/sounds/KDE_Beep_Classic.ogg
/usr/share/sounds/KDE_Beep_Connect.ogg
%files kio-samba
%dir %_libdir/kioslave_smb/
%_libdir/kioslave_smb/kio_smb_rw.*
%_libdir/kioslave_smb/smb_rw.protocol
%_datadir/apps/konqueror/dirtree/remote/smb-network.desktop
%files devel
%_includedir/kate
%_includedir/ksgrd
%_includedir/ksplash
%_includedir/kwin
%_includedir/KBackgroundIface.h
%_includedir/KDesktopIface.h
%_includedir/KScreensaverIface.h
%_includedir/KWinInterface.h
%_includedir/KonquerorIface.h
%_includedir/kdecoration*.h
%_includedir/kfileivi.h
%_includedir/kgreeterplugin.h
%_includedir/kivdirectoryoverlay.h
%_includedir/knewmenu.h
%_includedir/konq*.h
%doc %_docdir/HTML/en/kdebase-apidocs
%changelog
…
Полный changelog можно просмотреть здесь
%add_findprov_lib_path %_libdir/kde3
%define applnk %_datadir/applnk
%define kdemenu %_datadir/applications/kde
%define qtdir /usr/lib/qt3
%define x11confdir %_sysconfdir/X11
%define bugfix 1
%define req_design_graphics design-graphics >= 3.1.1
%if "%{get_version alternatives}" > "0.0.9"
%if "%{get_version alternatives}" < "0.1.9"
%define alternatives_ver 0.1
%endif
%endif
%define unstable 0
%define build_smb_ro 0
%define major 3
%define minor 3
%define bugfix 2
Name: kdebase
Version: %major.%minor.%bugfix
Release: alt2.12.M24
%define reqver %major.%minor
Summary: K Desktop Environment - Core files
Group: Graphical desktop/KDE
License: GPL
URL: http://www.kde.org/
Requires: %name-libkonq = %version-%release
Requires: %name-libs = %version-%release
Requires: %name-kdm = %version-%release
Requires: %name-wm = %version-%release
Requires: %name-konqueror = %version-%release
Requires: %name-kcmshell = %version-%release
Requires: %name-kcontrol = %version-%release
Requires: %name-kdeprint = %version-%release
Requires: %name-kio = %version-%release
Requires: %name-kio-samba = %version-%release
Source: kdebase-%version.tar.bz2
#Source: kdebase-3.1.94.tar.bz2
Source1: file_lists.sh
Source2: kdebase-ksysguardd-init
Source10: kdebase-3.0-kde.pam
Source11: kdm.logrotate
Source12: kicker-default1.png
# Debian -> ALT
Source201: kde-menu-spec
Source202: kde-desktop-entry-spec-dirs
Source203: kde-desktop-entry-spec-apps
# Add overlay icon for share directory
Source900: kdebase-3.0-mdk-share-16.png
Source901: kdebase-3.0-mdk-share-32.png
Source902: kdebase-3.0-mdk-share-48.png
# add servicemenu entry (compress/uncompress action )
Source2001: kdebase-3.1-convertpdftops.desktop
Source2002: kdebase-3.1-convertpstopdf.desktop
# RH
Source4000: kdebase-3.0-mailsettings.cc
# ALT
Source5001: startkde_safe
Source5002: kdebase-3.0-kscreensaver.pamd
### ###
### Patch party ###
### ###
Patch2: kdebase-3.3-ALT-kcontrol-global.patch
Patch3: kdebase-3.3-ALT-kicker-icons.patch
Patch4: kdebase-3.2-ALT-kdm-config.patch
Patch5: kdebase-3.0.2-default-document-path.patch
#
Patch12: kdebase-3.1-fix-konsole-dnd-copy.patch
Patch13: kdebase-3.1-kcmenergy-enable-energy-saving.patch
#
Patch15: kdebase-3.2-remove-kdm-double-click-on-radio-button.patch
#
Patch19: kdebase-3.2-fix-up-button.patch
Patch20: kdebase-3.1-add-ctrl-w-to-konq-combo.patch
Patch21: kdebase-3.1-fix-ssl-default-path.patch
Patch22: kdebase-3.1-konqueror-tab-default-shortcut.patch
#
Patch44: kdebase-3.2-ALT-fix-kicker-clock-applet-default-value.patch
Patch45: kdebase-3.1-fix-kioslave-thimbnail-creator.patch
#
Patch68: kdebase-3.3-fix-konqueror-tab-menu.patch
Patch69: kcmaccount-3.3.0-facedir.patch
Patch70: kdebase-3.3-ALT-default-launch-apps-in-applets-launch.patch
# RH patches
Patch500: kdebase-3.2-vroot.patch
Patch501: kdebase-3.0.4-kdesukonsole.patch
Patch502: kdebase-3.2.3-starthere-ALT.patch
Patch503: kdebase-3.1-ssl-krb5.patch
Patch504: kdebase-3.2-kdesktop_open_terminal.patch
Patch505: kdebase-3.1.3-konsole-double-esc.patch
Patch506: kdebase-3.1.3-panelicon.patch
#
Patch509: kdebase-3.1.4-kickermenu.patch
# MDK && RH -> ALT patches
Patch900: kdebase-3.0-shortcuts-alt.patch
Patch901: kdebase-3.0.0-staticlesstif-alt.patch
# ALT patches
Patch1001: kdebase-3.2-fix_kz_locale.patch
#
Patch1005: kdebase-3.3-startkde.patch
Patch1006: kdebase-3.0-indexhtml.patch
Patch1007: kdebase-3.2-kfontinst.patch
Patch1008: kdebase-3.1-kdmdesktop_exec.patch
Patch1009: kdebase-3.0-kxkb_nolayout.patch
#
Patch1011: kdebase-3.3.1-konsole_keytab.patch
Patch1012: kdebase-3.3.1-konsole_su.patch
Patch1013: kdebase-3.0.1-default_enc.patch
#
Patch1015: kdebase-3.2-konsole_noxft.patch
Patch1016: kdebase-3.2-konsolefont-alt.patch
#
Patch1018: kdebase-3.2-select_background_dir.patch
Patch1019: kdebase-3.2.1-desktop_disks_clear.patch
Patch1020: kdebase-3.1.2-usbflash.patch
Patch1021: kdebase-3.1.2-frendly_automount.patch
Patch1022: kdebase-3.3-flags.patch
Patch1023: kdebase-3.2.2-smb-auth.patch
Patch1024: kdebase-3.1.4-mobiledisk.patch
Patch1025: kdebase-3.3-kdesu_dont_decode_command.patch
Patch1026: kcontrol-3.2.2-xcursor-exclude-symlinks.patch
Patch1027: kdm-3.3.0-genkdmconf.patch
Patch1028: kdm-3.2-select-faces-directory.patch
Patch1029: kdm-3.3.0-wmsession.patch
Patch1030: kmenuedit-3.2.0-menueditor.patch
Patch1031: 3.2.1-find-screensaver.patch
Patch1032: kdm-3.2.2-save-qtrc.patch
Patch1033: konqueror-3.3.2-fix-launch.patch
Patch1034: clock-3.2-desktop.patch
Patch1035: kdm-3.2-desktop.patch
Patch1036: kdebase-3.2-default-font-value.patch
Patch1037: kdebase-3.2.3-more-eject.patch
Patch1038: konsole-3.2.2-default-add-to-utmp.patch
Patch1039: kdepasswd-3.3.1-userpasswd.patch
Patch1040: 3.2.3-man-add-encoding.patch
Patch1041: kdebase-3.2-export-gtk-apply-style.patch
Patch1042: kdepasswd-3.3.1-truncate.patch
Patch1043: kdebase-3.2.2-alt-panel-icons-scale-kcontrol.patch
Patch1044: kdebase-3.3.1-panel-icons-scale-alt.patch
# Sergey A. Sukiyazov <corwin at micom.don.ru>
Patch2000: kdebase-3.1.3-fix_kio_man_index.patch
Patch2001: kdebase-3.1.3-man_recode.patch
Patch2002: kdebase-3.1.3-fix_kwin_focus.patch
# security
Patch10001: post-3.3.2-kdebase-htmlframes2.patch
Patch10002: 3.3.2-kcheckpass.patch
Patch10003: post-3.4.2-kdebase-kcheckpass.diff
# Automatically added by buildreq on Mon Apr 12 2004 (-bi)
#BuildRequires: XFree86-devel XFree86-libs XFree86-utils arts bzlib-devel doxygen eject fontconfig-devel freetype2-devel gcc-c++ gcc-g77 glib2 kde-settings kdelibs-apidocs kdelibs-devel lesstif-devel libart_lgpl-devel libarts-devel libjpeg-devel libldap-devel libncurses-devel libpam-devel libpng-devel libqt3-devel libraw1394-devel libssl-devel libstdc++-devel libtiff-devel libtinfo-devel libutempter-devel menu-devel pkgconfig qt3-designer qt3-doc samba-client-devel xinitrc xml-utils zlib-devel
BuildRequires: kdelibs-devel-cxx = %__gcc_version_base
BuildRequires: XFree86-devel XFree86-libs XFree86-utils arts
BuildRequires: bzlib-devel doxygen eject fontconfig-devel freetype2-devel
BuildRequires: gcc-c++ kdelibs-apidocs kdelibs-devel
BuildRequires: libart_lgpl-devel libjpeg-devel
BuildRequires: openmotif-devel
BuildRequires: libldap-devel libncurses-devel libpam-devel libpng-devel
BuildRequires: libraw1394-devel libssl-devel libstdc++-devel
BuildRequires: libtiff-devel libtinfo-devel libutempter-devel menu-devel
BuildRequires: pkgconfig qt3-designer qt3-doc libsmbclient-devel xinitrc
BuildRequires: xml-utils zlib-devel glibc-utils
BuildRequires: kdelibs = %version kdelibs-devel = %version, libarts-devel >= 0.9.9 , libqt3-devel >= 3.0.3
BuildRequires: flex menu libalternatives-devel
%description
Core applications for the K Desktop Environment.
Here is an overview of the directories:
- drkonqi: if ever an app crashes (heaven forbid!) then Dr.Konqi will be so
kind and make a stack trace. This is a great help for the
developers to fix the bug.
- kappfinder: searches your hard disk for non-KDE applications, e.g. Acrobat
Reader (tm) and installs those apps under the K start button
- kate: a fast and advanced text editor with nice plugins
- kcheckpass: small program to enter and check passwords, only to be used by
other programs
- kcontrol: the KDE Control Center allows you to tweak the KDE settings
- kdcop: GUI app to browse for DCOP interfaces, can also execute them
- kdebugdialog: allows you to specify which debug messages you want to see
- kdeprint: the KDE printing system
- kdesktop: you guessed it: the desktop above the panel
- kdesu: a graphical front end to "su"
- kdm: replacement for XDM, for those people that like graphical logins
- kfind: find files
- khelpcenter: the app to read all great documentation about KDE
- khotkeys: intercepts keys and can call applications
- kicker: the panel at the botton with the K start button and the
taskbar etc
- kioslave: infrastructure that helps make every application internet
enabled e.g. to directly save a
file to ftp://place.org/dir/file.txt
- klipper: enhances and extenses the X clipboard
- kmenuedit: edit for the menu below the K start button
- konqueror: the file manager and web browser you get easily used to
- konsole: a shell program similar to xterm
- kpager: applet to show the contents of the virtual desktops
- kpersonalizer: the customization wizard you get when you first start KDE
- kreadconfig: a tool for shell scripts to get info from KDE's config files
- kscreensaver: the KDE screensaver environment and lot's of savers
- ksmserver: the KDE session manager (saves program status on login,
restarts those program at the next login)
- ksplash: the screen displayed while KDE starts
- kstart: to launch applications with special window properties
such as iconified etc
- ksysguard: task manager and system monitor, even for remote systems
- ksystraycmd: allows to run any application in the system tray
- ktip: gives you tips how to use KDE
- kwin: the KDE window manager
- kxkb: a keyboard map tool
- libkonq: some libraries needed by Konqueror
- nsplugins: together with OSF/Motif or Lesstif allows you to use Netscape
(tm) plugins in Konqueror
%package devel
Summary: Devel stuff for kdebase
Group: Development/KDE and QT
Requires: %name-common = %version-%release
Requires: kdelibs-devel >= %version
Requires: %name-konqueror = %version-%release
Requires: %name-libkonq = %version-%release
Requires: %name-wm = %version-%release
Requires: %name-kate = %version-%release
#
%description devel
This package contains header files needed if you wish to build applications
based on kdebase.
%package common
Summary: Common files for %name package
Group: Graphical desktop/KDE
Conflicts: kdebase <= 3.1.1-alt0.1
PreReq: /etc/tcb
Requires: kde-common >= %reqver
Requires: %{get_dep kdelibs}
#
%description common
Common files for %name package
%package libs
Summary: Basic libraries for kdebase package
Group: System/Libraries
Requires: %req_design_graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description libs
Basic libraries for kdebase package
%package kate
Summary: Advanced text editor
Group: Editors
#Requires: kdebase-libs >= %version-%release
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kate
A fast and advanced text editor with nice plugins
%package kcmshell
Summary: Utilily to launch configuration modules for KDE
Group: Graphical desktop/KDE
Requires: %name-common = %version-%release
#
%description kcmshell
Utilily to launch configuration modules
for KDE-based programs
%package kcontrol
Summary: The KDE Control Center
Group: Graphical desktop/KDE
Requires: %name-common = %version-%release
Requires: %name-konqueror = %version-%release
#
%description kcontrol
The KDE Control Center allows you to tweak the KDE settings
%package kdm
Summary: KDE Display Manager
Group: Graphical desktop/KDE
#Requires: %name-libs >= %version-%release
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Requires: xinitrc
Requires: %req_design_graphics
#
%description kdm
KDE Display Manager - is the replacement for XDM,
for those people that like graphical logins
%package konqueror
Summary: The file manager and web browser for KDE
Group: Networking/WWW
%if "%alternatives_ver" == "0.1"
PreReq(post,preun): alternatives >= 0.1
%else
PreReq(post,preun): alternatives >= 0.2
%endif
Requires: %name-common = %version-%release
Requires: indexhtml
Provides: webclient, /usr/bin/xbrowser
#
%description konqueror
The file manager and web browser easy for use.
%package libkonq
Summary: Libraries needed by Konqueror
Group: Networking/WWW
Requires: %name-common = %version-%release
#
%description libkonq
Some libraries needed by Konqueror
%package kio
Summary: Internet protocol plugins for KDE
Group: Graphical desktop/KDE
%if "%alternatives_ver" == "0.1"
PreReq(post,preun): alternatives >= 0.1
%else
PreReq(post,preun): alternatives >= 0.2
%endif
Requires: %name-common = %version-%release
%if %build_smb_ro
Provides: %name-kio-samba = %version-%release
Provides: %name-smbclient-ro = %version-%release
Obsoletes: %name-smbclient-ro
%endif
#
%description kio
Infrastructure that helps make every application
internet enabled e.g. to directly save a file
to ftp://place.org/dir/file.txt
%package kio-samba
Summary: Samba client plugin for KDE
Group: Graphical desktop/KDE
%if "%alternatives_ver" == "0.1"
PreReq(post,preun): alternatives >= 0.1
%else
PreReq(post,preun): alternatives >= 0.2
%endif
Requires: %name-common = %version-%release
Provides: %name-kio-samba = %version-%release
Provides: %name-smb3client-rw = %version-%release
Obsoletes: %name-smb3client-rw
Provides: %name-smbclient-rw = %version-%release
Obsoletes: %name-smbclient-rw
#
%description kio-samba
Samba client plugin for KDE with writing support
%package kdeprint
Summary: The KDE printing system
Group: System/Configuration/Printing
Requires: %name-common = %version-%release
Requires: poster
Requires: %{get_dep libcups}
Requires: %{get_dep kdelibs}
#
%description kdeprint
The KDE printing system
%package wm
Summary: KDE Window Manager basic programs
Group: Graphical desktop/KDE
PreReq: libutempter
%if "%alternatives_ver" == "0.1"
PreReq(post,preun): alternatives >= 0.1
%else
PreReq(post,preun): alternatives >= 0.2
%endif
Requires: menu >= 2.1.9
Requires: sound_handler urw-fonts
Requires: userpasswd shadow-change
Requires: %name-common = %version-%release
Requires: %name-libs = %version-%release
Provides: xvt, %_x11bindir/xvt
Provides: ksplashml = %version-%release
Obsoletes: ksplashml
Provides: kdebase-kate = %version-%release
Obsoletes: kdebase-kate
#
%description wm
KDE Window Manager basic programs
%prep
%setup -q
#%%setup -q -n kdebase-3.1.94
#%patch2 -p1 -b .basegroup
%patch3 -p1
%patch4 -p1
%patch5 -p1
#
#%patch12 -p1
%patch13 -p1
#
%patch15 -p1
#
%patch19 -p1
%patch20 -p1
# ssl path
%patch21 -p1
#%patch22 -p1
#
%patch44 -p1
%patch45 -p1
#
%patch68 -p1
%patch69 -p1
%patch70 -p1
# RH patches
%patch500 -p1
%patch501 -p1
%patch502 -p1
%patch503 -p1
%patch504 -p1
%patch505 -p1
# resize panel icons
#%patch506 -p1
#
# menu icons size
#%patch509 -p1
# ->ALT
#%patch900 -p1
# static lesstif
#%patch901 -p1
# ALT
%patch1001 -p1
#
%patch1005 -p1 -b .orig
%patch1006 -p1
%patch1007 -p1
#%patch1008 -p1
#%patch1009 -p1
#
%patch1011 -p1
%patch1012 -p1
#%patch1013 -p1
#
# konsole noxft
#%patch1015 -p1
# konsole font
%patch1016 -p1
#
%patch1018 -p1
%patch1019 -p1
%patch1020 -p1
#%patch1021 -p1 -b .orig
%patch1022 -p1 -b .orig
# smb auth
%patch1023 -p1
%patch1024 -p1
%patch1025 -p1
%patch1026 -p1
%patch1027 -p1
%patch1028 -p1
%patch1029 -p1
%patch1030 -p1
%patch1031 -p1
%patch1032 -p1
%patch1033 -p1
%patch1034 -p1
%patch1035 -p1
%patch1036 -p1
%patch1037 -p1
%patch1038 -p1
%patch1039 -p1
%patch1040 -p1
%patch1041 -p1
%patch1042 -p1
# scale panel icons
%patch1043 -p1 -b .scale
%patch1044 -p1 -b .scale
# Sergey A. Sukiyazov <corwin at micom.don.ru>
#%patch2000 -p1
%patch2001 -p1
#%patch2002 -p1
# security
%patch10001 -p0
%patch10002 -p1
pushd kcheckpass
%patch10003 -p0
popd
# remove to regenerate
rm -f kioslave/nfs/*_xdr.c
perl -pi -e "s|^Name(.*)\=(.*)|Name\1=\2 (KDE)|" khelpcenter/Help.desktop
perl -pi -e "s|Country/Region|Country-Region|g" kcontrol/locale/language.desktop
perl -pi -e "s|Icon=fileshare\.png|Icon=share.png|" kcontrol/fileshare/fileshare.desktop
perl -pi -e "s|Icon=kded|Icon=kcmpartitions|" kcontrol/kded/kcmkded.desktop
subst "s/\(Wl,--no-undefined\)/-Wl,--warn-unresolved-symbols \1/g" admin/acinclude.m4.in
subst "s/\-lkdeui/-lkdeui -lpthread/g" admin/acinclude.m4.in
subst "s/\-lkdecore/-lkdecore -lpthread/g" admin/acinclude.m4.in
subst "s/\.la/.so/g" admin/acinclude.m4.in
make -f admin/Makefile.common cvs ||:
%build
rm -rf %buildroot
#%%add_optflags -I%_datadir/samba/vfs-devel/source/include -L%qtdir/lib
%add_optflags -L%qtdir/lib
%add_optflags -DX11CONFDIR='\"%x11confdir\"'
export QTDIR=%qtdir
export KDEDIR=%prefix
export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L%buildroot/%_libdir -L%buildroot/%_libdir/kde3 -L%_libdir"
export CPPFLAGS="%optflags"
%configure \
--prefix=%prefix \
--sysconfdir=%_sysconfdir \
%if %unstable
--enable-debug=full \
%else
--disable-debug \
--enable-final \
%endif
--disable-static \
--enable-shared \
--enable-fast-install=yes \
--disable-embedded \
--disable-palmtop \
--disable-rpath \
--with-cdparanoia \
--with-arts \
--enable-cups \
--with-gnu-ld \
--with-pic \
--with-xinerama \
--with-xdmcp \
--with-dpms \
--with-pam=kde \
--with-kss-pam=kscreensaver \
--with-shadow \
--with-ldap \
--with-x \
--with-kdm-xconsole \
--with-motif \
--with-motif-includes=/usr/X11R6/include/Xm \
--with-motif-libraries=/usr/X11R6/lib/ \
--program-transform-name=""
%make_build
%make_build -C kioslave/smb
%if %build_smb_ro
%make_build -C kioslave/smbro
%endif
%make_build apidox
g++ $RPM_OPT_FLAGS -o mailsettings %SOURCE4000
%install
%if %unstable
%set_strip_method none
%endif
mkdir -p %buildroot/%x11confdir/kdm
mkdir -p %buildroot/%_datadir/apps/konqueror/dirtree/remote
%make_build DESTDIR=%buildroot install RUN_KAPPFINDER=no
%make_build DESTDIR=%buildroot install-apidox
install -m 0755 mailsettings %buildroot/%_bindir
############ install smbclient #############
#
mkdir -p %buildroot/%_libdir/kioslave_smb
%if %build_smb_ro
%make DESTDIR=%buildroot install -C kioslave/smbro
mv -f %buildroot/%_libdir/kde3/kio_smb.la %buildroot/%_libdir/kioslave_smb/kio_smb_ro.la
mv -f %buildroot/%_libdir/kde3/kio_smb.so %buildroot/%_libdir/kioslave_smb/kio_smb_ro.so
mv -f %buildroot/%_datadir/services/smb.protocol %buildroot/%_libdir/kioslave_smb/smb_ro.protocol
%endif
%make DESTDIR=%buildroot install -C kioslave/smb
mv -f %buildroot/%_libdir/kde3/kio_smb.la %buildroot/%_libdir/kioslave_smb/kio_smb_rw.la
mv -f %buildroot/%_libdir/kde3/kio_smb.so %buildroot/%_libdir/kioslave_smb/kio_smb_rw.so
mv -f %buildroot/%_datadir/services/smb.protocol %buildroot/%_libdir/kioslave_smb/smb_rw.protocol
# create .desktop for usb devices
#for f in `find %buildroot/%_datadir -type f -name zip_\*desktop`
#do
# fnew=`echo "$f"| sed 's/zip_/usb_/'`
# cp -f $f $fnew
# subst "s/zip_/TMPDEVICENAME_/" $fnew
# subst "s/[Z,z][I,i][P,p]/USB/" $fnew
# subst "s/TMPDEVICENAME_/usb_/" $fnew
#done
# Install kde pam configuration file
install -d -m 0755 %buildroot/%_sysconfdir/pam.d/
install -m 0644 %SOURCE10 %buildroot/%_sysconfdir/pam.d/kde
# Install kscreensaver pam configuration file
install -m 0644 %SOURCE5002 %buildroot/%_sysconfdir/pam.d/kscreensaver
# Install ksysguardd initscript
install -d -m 0755 %buildroot/%_sysconfdir/rc.d/init.d/
install -m 0755 %SOURCE2 %buildroot/%_sysconfdir/rc.d/init.d/ksysguardd
#
install -m0644 %SOURCE12 %buildroot/%_datadir/apps/kicker/wallpapers/default1.png
# Service menus
install -m644 %SOURCE2001 %buildroot/%_datadir/apps/konqueror/servicemenus/convertpdftops.desktop
install -m644 %SOURCE2002 %buildroot/%_datadir/apps/konqueror/servicemenus/convertpstopdf.desktop
install -m644 %SOURCE900 %buildroot/%_datadir/icons/crystalsvg/16x16/filesystems/share.png
install -m644 %SOURCE901 %buildroot/%_datadir/icons/crystalsvg/32x32/filesystems/share.png
mkdir -p %buildroot/%_datadir/icons/crystalsvg/48x48/filesystems/
install -m644 %SOURCE902 %buildroot/%_datadir/icons/crystalsvg/48x48/filesystems/share.png
# Add chksession support
install -d -m 0755 %buildroot/%x11confdir/wmsession.d/
cat << EOF > %buildroot/%x11confdir/wmsession.d/01KDE
NAME=KDE
ICON=%_iconsdir/default.kde/64x64/apps/kmenu.png
DESC=The K Desktop Environment
EXEC=%_bindir/startkde
SCRIPT:
exec %_bindir/startkde
EOF
# Add quickstart mode
install -m 0755 %SOURCE5001 %buildroot/%_bindir/startkde_safe
cat << EOF > %buildroot/%x11confdir/wmsession.d/91KDE
NAME=KDE (safe)
ICON=%_iconsdir/default.kde/64x64/filesystems/exec.png
DESC=The K Desktop Environment
EXEC=%_bindir/startkde_safe
SCRIPT:
exec %_bindir/startkde_safe
EOF
#=============================================#
# Mandrake menu support #
#=============================================#
## Mandrake menu support
install -d %buildroot/%_sysconfdir/menu-methods/
install -m 0755 %SOURCE201 %buildroot/%_sysconfdir/menu-methods/
install -m 0755 %SOURCE202 %buildroot/%_sysconfdir/menu-methods/
install -m 0755 %SOURCE203 %buildroot/%_sysconfdir/menu-methods/
# Create menu directories
install -d %buildroot/%_menudir/
install -d %buildroot/%applnk-alt
perl -pi -e "s|^NoDisplay.*$||g" %buildroot/%applnk/KControl.desktop
perl -pi -e "s|^Exec\=kcmshell.*printmgr.*$|Exec=kcmshell printers|g" %buildroot/%kdemenu/printers.desktop
perl -pi -e "s|^Exec\=kcmshell.*printmgr.*$|Exec=kcmshell printers|g" %buildroot/%applnk/Settingsmenu/printmgr.desktop
cat >%buildroot/%_menudir/%name-basedir <<EOF
?package(kdelibs): needs="kde" section="/" title=".hidden" longtitle="Please don't remove or modify" icon="go.png"
?package(kdelibs): needs="kde" section="/" title="System" extra_opt="NoDisplay=true" icon="go.png"
?package(kdelibs): needs="kde" section="System" title="ScreenSavers" extra_opt="X-KDE-BaseGroup=screensavers\\\\nNoDisplay=true" icon="go.png"
?package(kdelibs): needs="kde" section="Configuration/" title="KDE" extra_opt="X-KDE-BaseGroup=settings" icon="go"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Accessibility" icon="access"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Components" icon="kcmpartitions"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Desktop" icon="desktop"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Information" icon="hwinfo" extra_opt="X-KDE-BaseGroup=info"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="LookNFeel" icon="looknfeel"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Network" icon="network"
?package(kdelibs): needs="kde" section="Configuration/KDE/Network/" title="WebBrowsing" icon="konqueror"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Peripherals" icon="input_devices_settings"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Personalization" icon="locale"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="PowerControl" icon="energy"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Security" icon="encrypted"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="Sound" icon="multimedia"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="System" icon="kcmsystem"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="WebBrowsing" icon="konqueror"
?package(kdelibs): needs="kde" section="Configuration/KDE/" title="FileBrowsing" icon="filetypes"
EOF
# Configuration
%Kd2m %name-wm Applications/Accessibility %buildroot/%kdemenu/krandrtray.desktop %buildroot/%_menudir/kdebase-krandrtray kde
%Kd2m %name-kcontrol Configuration/Other %buildroot/%kdemenu/kcmfontinst.desktop %buildroot/%_menudir/kdebase-configuration-kcmfontinst kde
%Kd2m %name-kcontrol Configuration/Other %buildroot/%kdemenu/clock.desktop %buildroot/%_menudir/kcmshell-clock kde
%Kd2m %name-kdm Configuration/Other %buildroot/%kdemenu/kdm.desktop %buildroot/%_menudir/kcmshell-kdm
# %_datadir/applnk/
%Kd2m %name-konqueror / %buildroot/%applnk/konqueror.desktop %buildroot/%_menudir/%name-konqueror kde
%Kd2m %name-konqueror / %buildroot/%kdemenu/Home.desktop %buildroot/%_menudir/%name-home kde
%Kd2m %name-kcontrol / %buildroot/%kdemenu/KControl.desktop %buildroot/%_menudir/%name-kcontrol kde
%Kd2m %name-wm / %buildroot/%kdemenu/Kfind.desktop %buildroot/%_menudir/%name-kfind kde
%Kd2m %name-wm .hidden %buildroot/%kdemenu/kcmkicker.desktop %buildroot/%_menudir/%name-kcmkicker kde
%Kd2m %name-kdeprint / %buildroot/%kdemenu/printers.desktop %buildroot/%_menudir/%name-printmgr kde
%Kd2m %name-kcontrol Documentation %buildroot/%kdemenu/Help.desktop %buildroot/%_menudir/%name-help kde
# %_datadir/applnk/Editors/
%Kd2m %name-wm Applications/Editors %buildroot/%kdemenu/kate.desktop %buildroot/%_menudir/%name-kate
%Kd2m %name-wm Applications/Editors %buildroot/%kdemenu/kwrite.desktop %buildroot/%_menudir/%name-kwrite
# %_datadir/applnk/Internet
###%Kd2m %name Networking/WWW %buildroot/%applnk/Internet/keditbookmarks.desktop %buildroot/%_menudir/%name-keditbookmarks
%Kd2m %name-konqueror Networking/WWW %buildroot/%kdemenu/konqbrowser.desktop %buildroot/%_menudir/%name-konqbrowser
# %_datadir/applnk/System
#
%Kd2m %name-konqueror /././ %buildroot/%kdemenu/kfmclient.desktop %buildroot/%_menudir/%name-kfmclient kde
%Kd2m %name-konqueror /./././ %buildroot/%kdemenu/kfmclient_dir.desktop %buildroot/%_menudir/%name-kfmclient_dir kde
%Kd2m %name-konqueror /././././ %buildroot/%kdemenu/kfmclient_war.desktop %buildroot/%_menudir/%name-kfmclient_war kde
%Kd2m %name-konqueror /./././././ %buildroot/%kdemenu/kfmclient_html.desktop %buildroot/%_menudir/%name-kfmclient_html kde
#
%Kd2m %name-konqueror "Applications/File tools" %buildroot/%applnk/.hidden/konqfilemgr.desktop %buildroot/%_menudir/%name-konqfilemgr kde
%Kd2m %name-konqueror "Applications/File tools" %buildroot/%kdemenu/konquerorsu.desktop %buildroot/%_menudir/%name-konquerorsu kde
%Kd2m %name-wm Terminals %buildroot/%kdemenu/konsole.desktop %buildroot/%_menudir/%name-konsole
%Kd2m %name-wm Terminals %buildroot/%kdemenu/konsolesu.desktop %buildroot/%_menudir/%name-konsolesu
#
%Kd2m %name-wm Applications/Monitoring %buildroot/%kdemenu/ksysguard.desktop %buildroot/%_menudir/%name-ksysguard kde
# %_datadir/applnk/System/ScreenSavers
%Kd2m %name-wm System/ScreenSavers %buildroot/%applnk/System/ScreenSavers/KRandom.desktop %buildroot/%_menudir/%name-KRandom kde
%Kd2m %name-wm System/ScreenSavers %buildroot/%applnk/System/ScreenSavers/KBlankscreen.desktop %buildroot/%_menudir/%name-KBlankscreen kde
# %_datadir/applnk/System
# %_datadir/applnk/System/Terminal
# %_datadir/applnk/Toys
# %_datadir/applnk/Utilities
###%Kd2m %name Office/AddressBooks %buildroot/%applnk/Utilities/kaddressbook.desktop %buildroot/%_menudir/%name-kaddressbook kde
%Kd2m %name-kdeprint "Applications/Communications" %buildroot/%kdemenu/kdeprintfax.desktop %buildroot/%_menudir/%name-kdeprintfax kde
%Kd2m %name-kdeprint "Applications/Monitoring" %buildroot/%kdemenu/kjobviewer.desktop %buildroot/%_menudir/%name-kjobviewer kde
%Kd2m %name-wm "Applications/Text tools" %buildroot/%kdemenu/klipper.desktop %buildroot/%_menudir/%name-klipper kde
%Kd2m %name-wm Applications/Accessibility %buildroot/%kdemenu/kpager.desktop %buildroot/%_menudir/%name-kpager kde
%Kd2m %name-wm Documentation %buildroot/%kdemenu/ktip.desktop %buildroot/%_menudir/%name-ktip kde
%Kd2m %name-kcontrol "Applications/Monitoring" %buildroot/%applnk/System/kinfocenter.desktop %buildroot/%_menudir/%name-kinfocenter
cat <<EOF > %buildroot/%_menudir/%name-session
?package(%name-wm): needs=wm \
section="Session/Windowmanagers" \
title="KDE" \
longtitle="K Desktop Environment" \
command="%_bindir/startkde" \
icon="go.png"
EOF
# install alternatives
install -d %buildroot/%_sysconfdir/alternatives/packages.d
cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name <<__EOF__
%_libdir/kde3/kio_smb.so %_libdir/kioslave_smb/kio_smb_rw.so 20
%_libdir/kde3/kio_smb.la %_libdir/kioslave_smb/kio_smb_rw.la %_libdir/kioslave_smb/kio_smb_rw.so
%_datadir/services/smb.protocol %_libdir/kioslave_smb/smb_rw.protocol %_libdir/kioslave_smb/kio_smb_rw.so
%_libdir/kde3/kio_smb.so %_libdir/kioslave_smb/kio_smb_ro.so 10
%_libdir/kde3/kio_smb.la %_libdir/kioslave_smb/kio_smb_ro.la %_libdir/kioslave_smb/kio_smb_ro.so
%_datadir/services/smb.protocol %_libdir/kioslave_smb/smb_ro.protocol %_libdir/kioslave_smb/kio_smb_ro.so
%_x11bindir/xvt %_bindir/konsole 15
__EOF__
cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name-konqueror <<__EOF__
%_bindir/xbrowser %_bindir/konqueror 50
__EOF__
%if "%alternatives_ver" == "0.1"
cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name <<__EOF__
<group name="candidate">
<option name="link">%_libdir/kde3/kio_smb.so</option>
<option name="real">%_libdir/kioslave_smb/kio_smb_rw.so</option>
<option name="weight" type="number">20</option>
<group name="slave">
<option name="link">%_datadir/services/smb.protocol</option>
<option name="real">%_libdir/kioslave_smb/smb_rw.protocol</option>
</group>
</group>
<group name="candidate">
<option name="link">%_libdir/kde3/kio_smb.so</option>
<option name="real">%_libdir/kioslave_smb/kio_smb_ro.so</option>
<option name="weight" type="number">10</option>
<group name="slave">
<option name="link">%_datadir/services/smb.protocol</option>
<option name="real">%_libdir/kioslave_smb/smb_ro.protocol</option>
</group>
</group>
<group name="candidate">
<option name="link">%_x11bindir/xvt</option>
<option name="real">%_bindir/konsole</option>
<option name="weight" type="number">15</option>
</group>
__EOF__
cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name-konqueror <<__EOF__
<group name="candidate">
<option name="link">%_bindir/xbrowser</option>
<option name="real">%_bindir/konqueror</option>
<option name="weight" type="number">50</option>
</group>
__EOF__
%endif
#=============================================#
# End of Mandrake menu structure #
#=============================================#
#
rm -fr %buildroot/%_datadir/apps/kdm/pics/users %buildroot/%_datadir/apps/kdm/faces/*
mkdir -p %buildroot/%_datadir/apps/kdm/faces
# Sync with design
rm -f %buildroot/%_datadir/apps/kdewizard/pics/wizard_small.png
ln -s ../../../design-current/kde/ktip-wizard_small.png %buildroot/%_datadir/apps/kdewizard/pics/wizard_small.png
#
if [ ! -d %buildroot/%_datadir/apps/ksplash/Themes/Default-kde ]
then
mv %buildroot/%_datadir/apps/ksplash/Themes/Default %buildroot/%_datadir/apps/ksplash/Themes/Default-kde
ln -s ../../../design-current/kde/splash/pics %buildroot/%_datadir/apps/ksplash/Themes/Default
fi
#
mv -f %buildroot/%_datadir/wallpapers/default_blue.jpg %buildroot/%_datadir/wallpapers/kde_blue.jpg
ln -s ../design-current/backgrounds/default.png %buildroot/%_datadir/wallpapers/default_blue.jpg
#
pushd %buildroot/%_datadir/apps/kicker/pics
for n in disk*.png kside*.png
do
rm -f $n ; ln -s ../../../design-current/kde/kicker/pics/"$n" $n
done
popd
#
install -d %buildroot/%_datadir/apps/kdesktop/Desktop
install -d -m 0755 %buildroot/%_sysconfdir/profile.d/
ln -s ./kde3/libkfontviewpart.so %buildroot/%_libdir/libkfontviewpart.so
mkdir -p %buildroot/%_sysconfdir/logrotate.d
install -m 0644 %SOURCE11 %buildroot/%_sysconfdir/logrotate.d/kdm
# Create file lists
D=`pwd`/debian
T=`pwd`/file_lists_tmp
L=`pwd`/file_lists
rm -rf $L; mkdir -p $L
rm -rf $T; mkdir -p $T
cp $D/*.install $T
pushd $T
for f in $T/*.install
do
subst "s/^debian\/tmp//" $f
subst "s/^debian\/local.*$//" $f
subst "s/^.*debian\/patches.*$//" $f
subst "s/^\/etc.*$//" $f
subst "s/^.*etc\/kde3.*$//" $f
subst "s/.*usr\/share\/xsessions.*//" $f
subst "s/.*\/usr\/share\/config\/.*//" $f
subst "s/.*\/usr\/share\/doc\/.*//" $f
subst "s/\(\/usr\/lib\/.*\)\.so.*/\1.so*/" $f
subst "s/.*\/usr\/share\/config\/kdm.*//" $f
# filelist changes
subst "s/.*\/usr\/lib\/krandrinithack\.so.*//" $f
subst "s/.*\/usr\/share\/apps\/konqueror\/profiles\/filepreview//" $f
#
mv $f $f.tmp
grep -v -e.*\.la{,\ }$ $f.tmp >> $f
grep -e\/usr\/lib\/kde3\/.*\.la{,\ }$ $f.tmp >> $f ||:
rm -f $f.tmp
done
ls -1 *-dev.install | \
while read f
do
cat $f | \
sed "s/\/usr\/include\/kde/\/usr\/include/" \
>> $L/devel
done
ls -1 *.install | grep -v -e\-dev\.install | \
while read f
do
P=`echo $f| sed "s/\.install$//"`
case $P in
xfonts-konsole)
;;
kdm)
cat $f | \
grep -v /usr/share/apps/kdm/pics/users \
>> $L/kdm
;;
kdeprint)
cat $f >> $L/kdeprint
;;
kcontrol)
cat $f | \
grep -v -e{kshorturifilter,kuriikwsfilter,kurisearchfilter,localdomainurifilter} \
>> $L/kcontrol
grep -e{kshorturifilter,kuriikwsfilter,kurisearchfilter,localdomainurifilter} \
$f >> $L/libkonq
;;
konqueror|konqueror-nsplugins)
cat $f >> $L/konqueror
;;
libkonq*)
cat $f >> $L/libkonq
;;
kdebase-kio-plugins)
subst "s/^.*\/smb\.protocol$//" $f
subst "s/^.*kio_smb\..*$//" $f
cat $f >> $L/kio
;;
kate|kappfinder|kdesktop|kfind|khelpcenter|kicker|klipper|kmenuedit|konsole|kpager|kpersonalizer|ksmserver|ksplash|ksysguard|ksysguardd|ktip|kwin|kdepasswd)
cat $f | \
grep -v /usr/share/apps/kdm/pics/users | \
grep -v /usr/share/apps/ksplash/pics | \
grep -v /usr/share/apps/ksplash/Themes/Default | \
grep -v -e{\/usr\/bin\/kwrited,\/usr\/bin\/konsole} \
>> $L/wm
;;
*)
cat $f | \
grep -v /lib/kde3/kgreet_ | \
grep -v -e{\/usr\/bin\/kcheckpass,\/usr\/bin\/kdesud} \
>> $L/libs
;;
esac
done
cat >$L/kcmshell << __EOF__
%_bindir/kcmshell
%_libdir/libkdeinit_kcmshell.so*
%_libdir/kde3/kcmshell.*
%_libdir/kde3/kcm_konq.*
%_libdir/kde3/kcm_filetypes.*
%_libdir/kde3/kcm_kio.*
%_libdir/kde3/kcm_konqhtml.*
%_libdir/kde3/kcm_crypto.*
%_libdir/kde3/kcm_kurifilt.*
%_libdir/kde3/kcm_css.*
%applnk/.hidden/filebehavior.desktop
%applnk/.hidden/fileappearance.desktop
%applnk/.hidden/filepreviews.desktop
%applnk/.hidden/kcmkonq.desktop
%applnk/.hidden/konqhtml.desktop
%applnk/.hidden/socks.desktop
%kdemenu/filetypes.desktop
%kdemenu/lanbrowser.desktop
%kdemenu/netpref.desktop
%kdemenu/proxy.desktop
%kdemenu/cookies.desktop
%kdemenu/cache.desktop
%kdemenu/ebrowsing.desktop
%kdemenu/kcmcss.desktop
%kdemenu/khtml_behavior.desktop
%kdemenu/khtml_fonts.desktop
%kdemenu/khtml_java_js.desktop
%kdemenu/khtml_plugins.desktop
%kdemenu/useragent.desktop
%kdemenu/crypto.desktop
%applnk/Settings/WebBrowsing/khtml_appearance.desktop
%applnk/Settings/WebBrowsing/nsplugin.desktop
%applnk/.hidden/smb.desktop
%applnk/Settings/WebBrowsing/smb.desktop
/usr/share/apps/kcmcss
%_iconsdir/*/*/apps/cache.png
%_iconsdir/*/*/apps/proxy.png
%_iconsdir/*/*/apps/cookie.png
%_iconsdir/*/*/apps/enhanced_browsing.png
%_iconsdir/*/*/apps/filetypes.png
%_iconsdir/*/*/apps/samba.png
%_iconsdir/*/*/apps/stylesheet.png
%_iconsdir/*/*/apps/agent.png
/usr/share/services/searchproviders
/usr/share/services/useragentstrings
/usr/share/servicetypes/searchprovider.desktop
/usr/share/servicetypes/uasprovider.desktop
__EOF__
cat $L/kcmshell | perl -pi -e "s/(.*)/%exclude \1/" >>$L/kcontrol
popd
rm -rf $T
# Create configuration menu
BRT=%buildroot
DTDR=%_datadir
LBDR=%_libdir
APPLNK=%applnk
KDEMENU=%kdemenu
MENUDIR=%_menudir
FLISTS=`pwd`/file_lists
what_package()
{
for f in $FLISTS/*
do
if grep -v -e^\%\exclude $f | grep -e\/`basename $1`$ >/dev/null
then
PACKAGE="%name-`basename $f`"
break
fi
done
[ -z "$PACKAGE" ] && PACKAGE="%name-kcontrol"
echo $PACKAGE
}
add2list()
{
echo "$2"| sed "s/^\.\///" >>$FLISTS/`echo $1|sed "s/^%name\-//"`
}
pushd %buildroot
# .hidden
for f in ./$APPLNK/.hidden/*.desktop
do
MNAME=$(echo "$(basename $f)"| sed "s/\.desktop$//")
PACKAGE=`what_package $f`
%Kd2m $PACKAGE ".hidden" $f $BRT/$MENUDIR/kcmshell-hidden-$MNAME kde
add2list $PACKAGE $MENUDIR/kcmshell-hidden-$MNAME
done
# Configuration/Other
%Kd2m %name-kdeprint "Configuration/Printing" $BRT/$APPLNK/Settingsmenu/printmgr.desktop $BRT/$MENUDIR/%name-configuration-printmgr kde
add2list %name-kdeprint $MENUDIR/%name-configuration-printmgr
for f in ./$KDEMENU/*.desktop
do
grep -eCategories\=.*Settings.*$ $f >/dev/null || continue
MNAME=$(echo "$(basename $f)"| sed "s/\.desktop$//")
KDE_ONLY=
PACKAGE=
case $MNAME in
kappfinder)
continue
;;
kcmkicker|kmenuedit|kpersonalizer)
KDE_ONLY="kde"
;;
*)
;;
esac
PACKAGE=`what_package $f`
%Kd2m $PACKAGE "Configuration/Other" $f $BRT/$MENUDIR/kdebase-configuration-$MNAME $KDE_ONLY
add2list $PACKAGE $MENUDIR/kdebase-configuration-$MNAME
done
# Configuration/KDE/
for f in ./$KDEMENU/*.desktop
do
CTGR=`grep -eCategories\=.*{X-KDE-information,X-KDE-settings}.* $f| \
sed "s/;$//" | \
perl -pi -e "s/.*(X\-KDE\-settings.*)$/\1/" | \
perl -pi -e "s/.*(X\-KDE\-information)$/\1/"`
[ -z "$CTGR" ] && continue
MNAME=$(echo "$(basename $f)"| sed "s/\.desktop$//")
SECTION=
PACKAGE=
case $CTGR in
X-KDE-information)
SECTION="Configuration/KDE/Information"
;;
X-KDE-settings-accessibility)
SECTION="Configuration/KDE/Accessibility"
;;
X-KDE-settings-components)
SECTION="Configuration/KDE/Components"
;;
X-KDE-settings-desktop)
SECTION="Configuration/KDE/Desktop"
;;
X-KDE-settings-looknfeel)
SECTION="Configuration/KDE/LookNFeel"
;;
X-KDE-settings-network)
SECTION="Configuration/KDE/Network"
;;
X-KDE-settings-webbrowsing)
SECTION="Configuration/KDE/Network/WebBrowsing"
;;
X-KDE-settings-peripherals)
SECTION="Configuration/KDE/Peripherals"
;;
X-KDE-settings-power)
SECTION="Configuration/KDE/PowerControl"
;;
X-KDE-settings-security)
SECTION="Configuration/KDE/Security"
;;
X-KDE-settings-sound)
SECTION="Configuration/KDE/Sound"
;;
X-KDE-settings-system)
SECTION="Configuration/KDE/System"
;;
*)
echo "Unknown configuration section - $SECTION"
exit 1
;;
esac
PACKAGE=`what_package $f`
%Kd2m $PACKAGE $SECTION $f $BRT/$MENUDIR/kcmshell-$MNAME kde
add2list $PACKAGE $MENUDIR/kcmshell-$MNAME
done
for f in $FLISTS/*
do
mv $f $f.tmp
cat $f.tmp | sort| uniq > $f
rm -f $f.tmp
done
%post common
%post_register_alternatives %name -- kde_kio_smb.so kde_kio_smb.la kde_smb.protocol
%preun common
%preun_unregister_alternatives %name
%post libs
%post_ldconfig
%update_menus
#
%postun libs
%postun_ldconfig
%clean_menus
%post kio
%post_ldconfig
%update_menus
%update_alternatives
#
%postun kio
%postun_ldconfig
%clean_menus
#
%if %build_smb_ro
%triggerpostun kio -- kdebase-smbclient-ro < 3.1.1-alt1
%update_alternatives
%endif
#
%if %build_smb_ro
%preun kio
%preun_remove_alternatives %_libdir/kde3/kio_smb_ro.so
%endif
%post kio-samba
%update_alternatives
#
%triggerpostun kio-samba -- kdebase-smbclient-rw < 3.1.1-alt1, kdebase-smb3client-rw < 3.1.1-alt1
%update_alternatives
#
%preun kio-samba
%preun_remove_alternatives %_libdir/kde3/kio_smb_rw.so
%post wm
%post_ldconfig
%update_alternatives
%update_wms
%update_menus
%preun wm
%preun_remove_alternatives %_x11bindir/konsole
#
%postun wm
%postun_ldconfig
%clean_wms
%clean_menus
%post kdm
[ -f %_datadir/design-current/faces/default.png -a -d %_datadir/apps/kdm/faces -a ! -f %_datadir/apps/kdm/faces/.default.face.icon ] && \
cp -af %_datadir/design-current/faces/default.png %_datadir/apps/kdm/faces/.default.face.icon ||:
%postun kdm
%triggerpostun kdm -- kdebase-kdm < %major.%minor
%_bindir/genkdmconf --old-confs --old-scripts --in %x11confdir/kdm ||:
%triggerpostun kdm -- kdebase < 3.1.1-alt2
%_bindir/genkdmconf --old-confs --old-scripts --in %x11confdir/kdm ||:
%post kate
%post_ldconfig
%update_menus
%postun kate
%postun_ldconfig
%clean_menus
%post konqueror
%post_ldconfig
%post_register_alternatives %name-konqueror
%update_alternatives
%update_menus
%preun konqueror
%preun_remove_alternatives %_bindir/konqueror
%postun konqueror
%postun_ldconfig
%clean_menus
%post libkonq
%post_ldconfig
%postun libkonq
%postun_ldconfig
%post kcontrol
%post_ldconfig
%update_menus
%postun kcontrol
%postun_ldconfig
%clean_menus
%post kcmshell
%update_menus
%postun kcmshell
%clean_menus
%post kdeprint
%post_ldconfig
%update_menus
%postun kdeprint
%postun_ldconfig
%clean_menus
%files
%files common
%config(noreplace) %_sysconfdir/pam.d/kde
%config(noreplace) %_sysconfdir/menu-methods/kde-desktop*
%config(noreplace) %_sysconfdir/menu-methods/kde-menu*
%config /%_sysconfdir/alternatives/packages.d/%name
%_datadir/apps/kdisplay/color-schemes
%_menudir/kdebase-basedir
%files libkonq -f file_lists/libkonq
%files kio -f file_lists/kio
%if %build_smb_ro
%dir %_libdir/kioslave_smb/
%_libdir/kioslave_smb/kio_smb_ro.*
%_libdir/kioslave_smb/smb_ro.protocol
%endif
#%_datadir/mimelnk/application/x-smb-workgroup.desktop
%_datadir/mimelnk/kdedevice/storage_mounted.desktop
%_datadir/mimelnk/kdedevice/storage_unmounted.desktop
%doc %_docdir/HTML/en/kioslave
%files libs -f file_lists/libs
%_sysconfdir/xdg
%attr(2711,root,chkpwd) %_bindir/kcheckpass
%attr(2711,root,nobody) %_bindir/kdesud
%dir %_libdir/kconf_update_bin
#/%_sysconfdir/xdg/menus/applications-merged/kde-essential.menu
#/%_sysconfdir/xdg/menus/kde-information.menu
#/%_sysconfdir/xdg/menus/kde-screensavers.menu
#/%_sysconfdir/xdg/menus/kde-settings.menu
%_iconsdir/*/*/filesystems/share.png
%doc %_docdir/HTML/en/kdebugdialog
%files wm -f file_lists/wm
%exclude /usr/bin/kdepasswd
%exclude /usr/lib/menu/kdebase-configuration-kdepasswd
%exclude /usr/share/applications/kde/kdepasswd.desktop
#
%config %_sysconfdir/rc.d/init.d/ksysguardd
%config(noreplace) %_sysconfdir/X11/wmsession.d/*KDE
%config(noreplace) %_sysconfdir/pam.d/kscreensaver
%attr(2711,root,utempter) %_bindir/konsole
#%attr(2711,root,utempter) %_bindir/kwrited
/usr/bin/mailsettings
/usr/bin/startkde
/usr/bin/startkde_safe
/usr/bin/krandrinithack
/usr/bin/kwin_rules_dialog
#
/usr/bin/krandrtray
/usr/lib/libkdeinit_kwin_rules_dialog.so*
/usr/lib/kde3/kcm_randr.*
/usr/lib/kde3/krandrinithack.*
/usr/lib/kde3/kwin_rules_dialog.*
/usr/lib/libkdeinit_krandrinithack.so*
/usr/share/icons/*/*/*/randr.png
/usr/share/applnk/.hidden/randr.desktop
/usr/share/applications/kde/krandrtray.desktop
%_menudir/kdebase-krandrtray
#
/usr/lib/menu/kdebase-KBlankscreen
/usr/lib/menu/kdebase-KRandom
/usr/lib/menu/kdebase-help
#/usr/lib/menu/kdebase-kappfinder
/usr/lib/menu/kdebase-kcmkicker
/usr/lib/menu/kdebase-kfind
/usr/lib/menu/kdebase-kinfocenter
/usr/lib/menu/kdebase-klipper
/usr/lib/menu/kdebase-konsole
/usr/lib/menu/kdebase-konsolesu
/usr/lib/menu/kdebase-kpager
/usr/lib/menu/kdebase-ksysguard
/usr/lib/menu/kdebase-ktip
/usr/lib/menu/kdebase-session
/usr/lib/menu/kdebase-kate
/usr/lib/menu/kdebase-kwrite
%_datadir/apps/kappfinder/apps/Internet/mozilla-firefox.desktop
%_datadir/apps/ksplash
%dir %_datadir/apps/kate
%dir %_datadir/apps/kate/plugins
%dir %_datadir/apps/kate/scripts
%_datadir/apps/khotkeys/
%_datadir/apps/kconf_update/konqueror_gestures_kde321_update.upd
/usr/share/wallpapers/kde_blue.jpg
%_datadir/apps/kicker/wallpapers/default1.png
%doc %_docdir/HTML/en/kdesu
%doc %_docdir/HTML/en/kfind
%doc %_docdir/HTML/en/kicker
%doc %_docdir/HTML/en/klipper
%doc %_docdir/HTML/en/kmenuedit
%doc %_docdir/HTML/en/konsole
%doc %_docdir/HTML/en/kpager
%doc %_docdir/HTML/en/ksplashml
%doc %_docdir/HTML/en/kxkb
%doc %_docdir/HTML/en/khelpcenter
%doc %_docdir/HTML/en/ksysguard
%doc %_docdir/HTML/en/kate
%doc %_docdir/HTML/en/kwrite
%files kcmshell -f file_lists/kcmshell
%files kdeprint -f file_lists/kdeprint
/usr/lib/menu/kdebase-printmgr
/usr/lib/menu/kdebase-kjobviewer
/usr/lib/menu/kdebase-kdeprintfax
%doc %_docdir/HTML/en/kdeprint
%files konqueror -f file_lists/konqueror
%config /%_sysconfdir/alternatives/packages.d/%name-konqueror
%doc %_docdir/HTML/en/konqueror
/usr/share/apps/konqueror/servicemenus/convertpdftops.desktop
/usr/share/apps/konqueror/servicemenus/convertpstopdf.desktop
/usr/share/apps/konqueror/servicemenus/storage_mounted_konqy.desktop
/usr/share/apps/konqueror/servicemenus/storage_unmounted_konqy.desktop
/usr/lib/menu/kdebase-home
/usr/lib/menu/kdebase-konqfilemgr
/usr/lib/menu/kdebase-konqbrowser
/usr/lib/menu/kdebase-konqueror
/usr/lib/menu/kdebase-konquerorsu
/usr/lib/menu/kdebase-kfmclient
/usr/lib/menu/kdebase-kfmclient_dir
/usr/lib/menu/kdebase-kfmclient_html
/usr/lib/menu/kdebase-kfmclient_war
#
%files kdm -f file_lists/kdm
%config(noreplace) %_sysconfdir/logrotate.d/kdm
%exclude %_datadir/apps/kdm/sessions
%dir %_sysconfdir/X11/kdm
%_datadir/apps/kdm/faces
%doc %_docdir/HTML/en/kdm
%_bindir/kdmctl
%_libdir/kde3/kgreet_*
%files kcontrol -f file_lists/kcontrol
%_libdir/libkfontviewpart.so*
%_libdir/kde3/kcm_smartcard.*
%doc %_docdir/HTML/en/kcontrol
%doc %_docdir/HTML/en/kinfocenter
%kdemenu/smartcard.desktop
%_menudir/kdebase-configuration-kcmfontinst
%_menudir/kdebase-kcontrol
%_menudir/kcmshell-clock
%_menudir/kcmshell-kdm
/usr/share/sounds/KDE_Beep.ogg
/usr/share/sounds/KDE_Beep_Car.ogg
/usr/share/sounds/KDE_Beep_Classic.ogg
/usr/share/sounds/KDE_Beep_Connect.ogg
%files kio-samba
%dir %_libdir/kioslave_smb/
%_libdir/kioslave_smb/kio_smb_rw.*
%_libdir/kioslave_smb/smb_rw.protocol
%_datadir/apps/konqueror/dirtree/remote/smb-network.desktop
%files devel
%_includedir/kate
%_includedir/ksgrd
%_includedir/ksplash
%_includedir/kwin
%_includedir/KBackgroundIface.h
%_includedir/KDesktopIface.h
%_includedir/KScreensaverIface.h
%_includedir/KWinInterface.h
%_includedir/KonquerorIface.h
%_includedir/kdecoration*.h
%_includedir/kfileivi.h
%_includedir/kgreeterplugin.h
%_includedir/kivdirectoryoverlay.h
%_includedir/knewmenu.h
%_includedir/konq*.h
%doc %_docdir/HTML/en/kdebase-apidocs
%changelog
…
Полный changelog можно просмотреть здесь