%define distname "Fedora-Core" %define debug 0 %define final 1 %define qt_epoch 1 %define arts_epoch 8 %define cups_epoch 1 %define qt_version 3.3.6 %define arts_version 1.5.4 %define kde_major_version 3 %define qtdocdir %{_docdir}/qt-devel-%{qt_version} %define make_cvs 0 %define arts 1 Version: 3.5.4 Release: 10%{?dist} Summary: K Desktop Environment - Libraries Name: kdelibs Url: http://www.kde.org/ Epoch: 6 Group: System Environment/Libraries License: LGPL BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 Source1: kde.sh Source2: kde.csh Source3: devices.protocol Patch1: kdelibs-3.5.1-xdg-menu.patch Patch2: kdelibs-3.0.0-ndebug.patch Patch4: kdelibs-3.0.4-ksyscoca.patch Patch5: kdelibs-3.5.0-openssl0.9.8a.patch Patch15: kdelibs-3.4.91-buildroot.patch Patch16: kdelibs-3.1-ssl-krb5.patch Patch20: kdelibs-3.3.92-defaultstyle.patch Patch24: kdelibs-3.1-libtool.patch Patch32: kdelibs-3.2.3-cups.patch Patch33: kdelibs-3.3.2-ppc.patch Patch34: kdelibs-3.4.0-qtdoc.patch Patch35: kdelibs-3.4.92-inttype.patch Patch37: kdelibs-3.5.2-kdebug-kmail-quiet.patch Patch38: kdelibs-3.5.2-cupsdconf2-group.patch Patch39: kdelibs-3.5.4-kabc-make.patch Patch40: kdelibs-3.5.4-kdeprint-utf8.patch # upstream patches Patch100: kdelibs-3.5.4-kde#131933.patch Patch101: kdelibs-3.5.4-kde#131366.patch Patch102: kdelibs-3.5.4-kde#106812.patch Patch103: kdelibs-3.5.4-kde#90462.patch Patch104: kdelibs-3.5.4-kde#121528.patch Patch105: kdelibs-3.5.4-kde#123413.patch Patch106: kdelibs-3.5.4-kde#133529.patch Patch107: kdelibs-3.5.4-kdebug-crash.patch Patch108: kdelibs-3.5.4-tango-icon.patch Patch109: kdelibs-3.5.4-kde#133677.patch Patch110: kdelibs-3.5.4-kde#123941.patch Patch111: kdelibs-3.5.4-kde#132678.patch Patch112: kdelibs-3.5.4-khtml-rendering.patch Patch113: kdelibs-3.5.4-kde#134118.patch Patch114: kdelibs-3.5.4-kde#133401.patch Patch115: kdelibs-3.5.4-kde#131979.patch Patch116: kdelibs-3.5.4-kde#115891.patch Patch117: kdelibs-3.5.4-kde#123915.patch Patch118: kdelibs-3.5.4-kde#100188.patch Patch119: kdelibs-3.5.4-kde#119167.patch Patch120: kdelibs-3.5.4-kde#106748.patch Patch121: kdelibs-3.5.4-kde#133071.patch %if %{arts} Requires: arts >= %{arts_epoch}:%{arts_version} %endif Requires: qt >= %{qt_epoch}:%{qt_version} Requires: cups-libs >= %{cups_epoch}:1.1.12 Requires: iceauth Requires: desktop-backgrounds-basic Requires: redhat-artwork >= 0.239-2 Requires: hicolor-icon-theme Requires: redhat-menus >= 5.0.4 Requires(pre): coreutils Requires(post): /sbin/ldconfig Requires(post): desktop-file-utils Requires(postun): /sbin/ldconfig Requires(postun): desktop-file-utils Requires: shadow-utils Requires: libkdnssd BuildRequires: qt-devel-docs BuildRequires: gettext BuildRequires: pcre-devel BuildRequires: cups-devel >= %{cups_epoch}:1.1.20 BuildRequires: cups >= %{cups_epoch}:1.1.20 BuildRequires: qt-devel >= %{qt_epoch}:%{qt_version} BuildRequires: flex >= 2.5.4a-13 BuildRequires: doxygen BuildRequires: libxslt-devel >= 1.1.15 BuildRequires: sgml-common BuildRequires: openjade BuildRequires: jadetex BuildRequires: docbook-dtd31-sgml BuildRequires: docbook-style-dsssl BuildRequires: perl-SGMLSpm BuildRequires: docbook-utils BuildRequires: zlib-devel BuildRequires: libidn-devel %if %{arts} BuildRequires: arts-devel >= %{arts_epoch}:%{arts_version} %endif BuildRequires: audiofile-devel BuildRequires: openssl-devel BuildRequires: perl BuildRequires: gawk BuildRequires: byacc BuildRequires: libart_lgpl-devel >= 2.3.8 BuildRequires: bzip2-devel BuildRequires: libtiff-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: libacl-devel BuildRequires: libattr-devel BuildRequires: aspell-devel BuildRequires: krb5-devel BuildRequires: openldap-devel BuildRequires: db4-devel BuildRequires: alsa-lib-devel BuildRequires: pkgconfig BuildRequires: glibc-kernheaders BuildRequires: libutempter-devel Obsoletes: %{name}2 Obsoletes: kdesupport Obsoletes: kdoc %description Libraries for the K Desktop Environment: KDE Libraries included: kdecore (KDE core library), kdeui (user interface), kfm (file manager), khtmlw (HTML widget), kio (Input/Output, networking), kspell (spelling checker), jscript (javascript), kab (addressbook), kimgio (image manipulation). %package devel Group: Development/Libraries Summary: Header files and documentation for compiling KDE applications. Requires: qt-devel >= %{qt_epoch}:%{qt_version} Requires: %{name} = %{epoch}:%{version}-%{release} %if %{arts} Requires: arts-devel %endif Requires: libart_lgpl-devel Requires: libxslt-devel Requires: libjpeg-devel Requires: zlib-devel Requires: openssl-devel Requires: bzip2-devel Requires: libtiff-devel Requires: libidn-devel Requires: libacl-devel Requires: pcre-devel Requires: libkdnssd-devel Obsoletes: kdesupport-devel %description devel This package includes the header files you will need to compile applications for KDE. %package apidocs Group: Development/Documentation Summary: KDE API documentation. Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: kdelibs-docs < %{epoch}:%{version}-%{release} %description apidocs This package includes the KDE API documentation in HTML format for easy browsing %prep %setup -q %patch1 -p1 -b .xdg-menu %if %{debug} == 0 %patch2 -p1 -b .debug %endif %patch4 -p1 -b .ksyscoca %patch5 -p1 -b .openssl %patch15 -p1 -b .buildroot %patch16 -p1 -b .ssl-krb5 %patch20 -p1 -b .defaultstyle %patch24 -p1 -b .libtool %patch32 -p1 -b .cups %patch33 -p1 -b .ppc %patch34 -p1 -b .qtdoc %patch35 -p1 -b .inttype %patch37 -p1 -b .kdebug-kmail-quiet %patch38 -p1 -b .cupsdconf2-group %patch39 -p1 -b .kabc-make %patch40 -p1 -b .kdeprint-utf8 # upstream pathces %patch100 -p0 -b .kde#131933 %patch101 -p0 -b .kde#131366 %patch102 -p0 -b .kde#106812 %patch103 -p0 -b .kde#90462 %patch104 -p0 -b .kde#121528 %patch105 -p0 -b .kde#123413 %patch106 -p0 -b .kde#133529 %patch107 -p0 -b .kdebug-crash %patch108 -p0 -b .tango-icontheme %patch109 -p0 -b .kde#133677 %patch110 -p0 -b .kde#123941 %patch111 -p0 -b .kde#132678 %patch112 -p0 -b .khtml-rendering %patch113 -p0 -b .kde#134118 %patch114 -p0 -b .kde#133401 %patch115 -p0 -b .kde#131979 %patch116 -p0 -b .kde#115891 %patch117 -p0 -b .kde#123915 %patch118 -p0 -b .kde#100188 %patch119 -p0 -b .kde#119167 %patch120 -p0 -b .kde#106748 %patch121 -p0 -b .kde#133071 perl -pi -e "s,^#define KDE_VERSION_STRING .*,#define KDE_VERSION_STRING \"%{version}-%{release} %{distname}\"," kdecore/kdeversion.h %build unset QTDIR && . /etc/profile.d/qt.sh export QTDOC=%{qtdocdir} export libltdl_cv_shlibext=".so" export PATH=/usr/kerberos/bin:${PATH} %if %{make_cvs} make -f admin/Makefile.common cvs %endif VERSION=`cat /etc/redhat-release 2>/dev/null` suffix="" if [ "%{_lib}" == "lib64" ] ; then suffix="64" fi %configure \ --disable-fast-malloc \ --enable-new-ldflags \ --disable-dependency-tracking \ --with-qt-libraries=$QTLIB \ --enable-libsuffix="$suffix" \ --enable-cups \ --enable-mitshm \ --with-xinerama \ --disable-gcc-hidden-visibility \ --enable-pie \ %if %{arts} == 0 --without-arts \ %endif --with-distribution="$VERSION" \ --with-alsa \ --includedir=%{_includedir}/kde \ %if %{debug} == 0 --disable-debug \ --disable-warnings \ %endif %if %{final} %ifnarch s390x --enable-final \ %endif %endif --disable-libfam \ --enable-dnotify \ --enable-inotify \ --disable-rpath \ --with-utempter \ --with-rgbfile=%{_datadir}/X11/rgb.txt # ld breaks with -fPIC on ppc, workaround # it will be removed when this bug is fixed %ifarch ppc ppc64 perl -pi -e 's,^pic_flag=" -fPIC -DPIC",pic_flag=" -fpic",g' libtool %endif make %{?_smp_mflags} make %{?_smp_mflags} apidox %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install chmod a+x %{buildroot}%{_libdir}/* install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/services/ pushd %{buildroot}%{_docdir} ln -sf HTML/en/kdelibs-apidocs %{name}-devel-%{kde_major_version} popd mkdir -p %{buildroot}%{_sysconfdir}/profile.d install -m 755 %{SOURCE1} %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/ # Make symlinks relative pushd %{buildroot}%{_docdir}/HTML/en for i in *; do if [ -d $i -a -L $i/common ]; then rm -f $i/common ln -sf ../common $i fi done popd mkdir -p %{buildroot}%{_sysconfdir}/kde/xdg/menus mv %{buildroot}%{_sysconfdir}/xdg/menus/applications.menu %{buildroot}%{_sysconfdir}/kde/xdg/menus echo "OnlyShowIn=KDE;" >> %{buildroot}%{_datadir}/applications/kde/kresources.desktop rm -f %{buildroot}%{_datadir}/icons/hicolor/index.theme rm -f %{buildroot}%{_libdir}/libkdnssd.* rm -rf %{buildroot}%{_includedir}/kde/dnssd %clean rm -rf %{buildroot} %pre if [ -d /etc/skel/Desktop/Autostart ]; then mv -f /etc/skel/Desktop/Autostart /etc/skel/Desktop/Autostart-OLD..KDE elif [ -d /etc/skel/Desktop/Autostart.rpmsave ]; then mv -f /etc/skel/Desktop/Autostart.rpmsave /etc/skel/Desktop/Autostart-OLD..KDE fi exit 0 %post /sbin/ldconfig touch --no-create %{_datadir}/icons/crystalsvg 2> /dev/null || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg 2> /dev/null || : fi %{_bindir}/update-desktop-database > /dev/null 2>&1 || : %postun /sbin/ldconfig touch --no-create %{_datadir}/icons/crystalsvg 2> /dev/null || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg 2> /dev/null || : fi %{_bindir}/update-desktop-database > /dev/null 2>&1 || : %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/profile.d/* %dir %{_sysconfdir}/kde %dir %{_sysconfdir}/kde/xdg %dir %{_sysconfdir}/kde/xdg/menus %{_sysconfdir}/kde/xdg/menus/* %{_bindir}/artsmessage %{_bindir}/checkXML %{_bindir}/cupsdconf %{_bindir}/cupsdoprint %{_bindir}/dcop %{_bindir}/dcopclient %{_bindir}/dcopfind %{_bindir}/dcopobject %{_bindir}/dcopquit %{_bindir}/dcopref %{_bindir}/dcopserver %{_bindir}/dcopserver_shutdown %{_bindir}/dcopstart %{_bindir}/filesharelist %{_bindir}/fileshareset %{_bindir}/imagetops %{_bindir}/kab2kabc %{_bindir}/kaddprinterwizard %{_bindir}/kbuildsycoca %{_bindir}/kcmshell %{_bindir}/kconf_update %{_bindir}/kconfig_compiler %{_bindir}/kcookiejar %{_bindir}/kde-config %{_bindir}/kde-menu %{_bindir}/kded %{_bindir}/kdeinit %{_bindir}/kdeinit_shutdown %{_bindir}/kdeinit_wrapper %{_bindir}/kdesu_stub %{_bindir}/kdontchangethehostname %{_bindir}/kdostartupconfig %{_bindir}/kfile %{_bindir}/kfmexec %{_bindir}/khotnewstuff %{_bindir}/kinstalltheme %{_bindir}/kio_http_cache_cleaner %{_bindir}/kio_uiserver %{_bindir}/kioexec %{_bindir}/kioslave %{_bindir}/klauncher %{_bindir}/kmailservice %{_bindir}/ksendbugmail %{_bindir}/kshell %{_bindir}/kstartupconfig %{_bindir}/ksvgtopng %{_bindir}/ktelnetservice %{_bindir}/ktradertest %{_bindir}/kunittestmodrunner %{_bindir}/kwrapper %{_bindir}/lnusertemp %{_bindir}/make_driver_db_cups %{_bindir}/make_driver_db_lpr %{_bindir}/makekdewidgets %{_bindir}/meinproc %{_bindir}/preparetips %attr(4755,root,root) %{_bindir}/kpac_dhcp_helper %attr(4755,root,root) %{_bindir}/kgrantpty %{_libdir}/lib*.so.* %{_libdir}/libkdeinit_* %{_libdir}/lib*.la %{_libdir}/kde3 %{_datadir}/applications %{_datadir}/apps %{_datadir}/locale/all_languages %dir %{_datadir}/config %config(noreplace) %{_datadir}/config/* %{_datadir}/emoticons %{_datadir}/icons/crystalsvg/ %{_datadir}/icons/default.kde %{_datadir}/mimelnk %{_datadir}/autostart %{_datadir}/services %{_datadir}/servicetypes %dir %{_docdir}/HTML %dir %{_docdir}/HTML/en %doc %{_docdir}/HTML/en/common %doc %{_docdir}/HTML/en/kspell %files devel %defattr(-,root,root) %{_bindir}/dcopidl* %{_includedir}/kde %{_libdir}/lib*.so %{_libdir}/lib*.a %exclude %{_libdir}/libkdeinit_* %files apidocs %defattr(-,root,root) %doc %{_docdir}/%{name}-devel-%{kde_major_version} %doc %{_docdir}/HTML/en/kdelibs* %changelog * Sun Oct 01 2006 Than Ngo 6:3.5.4-10 - fix utf8 issue in kdeprint - fix #178320,#198828, follow menu-spec - upstream patches, fix #106748, Evaluate scripts in