Summary: K Desktop Environment 4 - Libraries Version: 3.92.0 Release: 1%{?dist} %if 0%{?fedora} > 7 Name: kdelibs Epoch: 6 Obsoletes: kdelibs4 < %{version}-%{release} Provides: kdelibs4 = %{version}-%{release} %else Name: kdelibs4 %define _prefix /opt/kde4 %endif License: LGPL URL: http://www.kde.org/ Group: System Environment/Libraries Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/kdelibs-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if "%{_prefix}" != "/usr" # macros sensitive to _prefix mods %define __cmake cmake %global _qt4_plugindir %(qmake-qt4 -query QT_INSTALL_PLUGINS 2> /dev/null || echo %{_qt4_plugindir} ) %define _sysconfdir %{_prefix}/etc %else Requires: hicolor-icon-theme Requires: kde-filesystem #Requires: kde4-settings %endif # use ~/.kde4 instead of ~/.kde Patch0: kdelibs-%{version}-kde4home.diff Source1: kde4.sh Source2: kde4.csh BuildRequires: qt4-devel >= 4.3.0 %global qt4_ver %(pkg-config QtCore --modversion 2>/dev/null || echo 4.3.0) Requires: qt4 >= %{qt4_ver} Requires: xdg-utils Requires(post): /sbin/ldconfig xdg-utils Requires(postun): /sbin/ldconfig xdg-utils BuildRequires: alsa-lib-devel BuildRequires: aspell-devel BuildRequires: avahi-devel BuildRequires: bzip2-devel BuildRequires: cmake BuildRequires: cups-devel cups BuildRequires: enchant-devel BuildRequires: gamin-devel BuildRequires: gettext-devel BuildRequires: giflib-devel BuildRequires: krb5-devel BuildRequires: libacl-devel libattr-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libxslt-devel libxml2-devel BuildRequires: OpenEXR-devel BuildRequires: openssl-devel BuildRequires: pcre-devel BuildRequires: shared-mime-info BuildRequires: soprano-devel BuildRequires: strigi-devel >= 0.5.3 BuildRequires: zlib-devel %description Libraries for the K Desktop Environment 4. WARNING: This is a beta version. It probably has many bugs left. Also, the API and ABI are NOT fully stable yet (soft freeze only). %package devel Group: Development/Libraries Summary: Header files for compiling KDE 4 applications Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} %if "%{name}" != "kdelibs4" Obsoletes: kdelibs4-devel < %{version}-%{release} Provides: kdelibs4-devel = %{version}-%{release} %endif Requires: qt4-devel # FIXME/TODO: trim these down -- Rex Requires: libxslt-devel aspell-devel giflib-devel Requires: libpng-devel bzip2-devel openssl-devel libacl-devel gettext-devel Requires: libtiff-devel pcre-devel libxml2-devel cups-devel libjpeg-devel Requires: zlib-devel krb5-devel libattr-devel gamin-devel strigi-devel Requires: alsa-lib-devel avahi-devel %description devel This package includes the header files you will need to compile applications for KDE 4. WARNING: This is a beta version. It probably has many bugs left. Also, the API and ABI are NOT fully stable yet (soft freeze only). %prep %setup -q -n kdelibs-%{version} %if "%{_prefix}" != "/usr" %patch0 -p1 -b .kde4home %endif %build mkdir -p %{_target_platform} pushd %{_target_platform} %cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ ../ popd make %{?_smp_mflags} -C %{_target_platform} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} -C %{_target_platform} # A symlink doesn't seem to work for this purpose. install -D -p \ %{buildroot}%{_libdir}/kde4/plugins/designer/kdewidgets.so \ %{buildroot}%{_qt4_plugindir}/designer/kdewidgets.so %if "%{_prefix}" == "/usr" # see also use-of/patching of XDG_MENU_PREFIX in kdebase mv %{buildroot}%{_sysconfdir}/xdg/menus/applications.menu \ %{buildroot}%{_sysconfdir}/xdg/menus/kde4-applications.menu # Unpackaged files rm -rf %{buildroot}%{_datadir}/icons/hicolor %else mkdir -p %{buildroot}/usr/bin cd %{buildroot}/usr/bin ln -s ../..%{_prefix}/bin/kde4-config . %endif %post /sbin/ldconfig ||: %{_bindir}/xdg-icon-resource forceupdate --theme oxygen 2> /dev/null || : %{_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || : %postun /sbin/ldconfig ||: %{_bindir}/xdg-icon-resource forceupdate --theme oxygen 2> /dev/null || : %{_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || : %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS README TODO %doc COPYING COPYING-DOCS COPYING.LIB %if "%{_prefix}" != "/usr" /usr/bin/kde4-config %dir %{_prefix} %dir %{_bindir} %dir %{_datadir} %dir %{_datadir}/icons %dir %{_datadir}/locale %dir %{_datadir}/mime %dir %{_datadir}/doc %dir %{_libdir} %dir %{_sysconfdir} %dir %{_sysconfdir}/xdg %dir %{_sysconfdir}/xdg/menus %{_datadir}/icons/hicolor/ %endif %{_qt4_plugindir}/designer/kdewidgets.so %{_bindir}/* %{_datadir}/apps/ %{_datadir}/config/ %{_datadir}/dbus-1/interfaces/* %{_datadir}/emoticons/ %{_datadir}/kde4/ %{_datadir}/icons/oxygen/ %{_datadir}/locale/all_languages/ %{_datadir}/mime/packages/* %dir %{_datadir}/doc/HTML %dir %{_datadir}/doc/HTML/en %{_datadir}/doc/HTML/en/* %{_libdir}/lib*.so.* %{_libdir}/libkdeinit4_*.so %{_libdir}/kde4/ %{_sysconfdir}/xdg/menus/*applications.menu %files devel %defattr(-,root,root,-) %doc KDE4PORTING.html %{_includedir}/ %{_libdir}/lib*.so %exclude %{_libdir}/libkdeinit4_*.so %changelog * Sat Jul 28 2007 Rex Dieter 3.92.0-1 - kde-3.92.0 (kde4-beta1) * Thu Jul 19 2007 Kevin Kofler 3.91.0-6 - add missing epoch to main package Requires for -devel if name is kdelibs * Tue Jul 17 2007 Rex Dieter 3.91.0-5 - BR: soprano-devel - prefix=/usr cleanups * Wed Jul 11 2007 Kevin Kofler 3.91.0-4 - apply upstream bugfix for KatePart syntax highlighting (kde #145571) * Thu Jun 29 2007 Rex Dieter 3.91.0-3 - fix %%_sysconfdir for %%_prefix != /usr case. * Thu Jun 28 2007 Rex Dieter 3.91.0-2 - updated kde4home.diff - CMAKE_BUILD_TYPE=RelWithDebInfo (we're already using %%optflags) * Wed Jun 27 2007 Rex Dieter 3.91.0-1 - kde-3.91.0 - CMAKE_BUILD_TYPE=debug * Sat Jun 23 2007 Rex Dieter 3.90.1-3 - specfile cleanup (%%prefix issues mostly) * Wed May 30 2007 Kevin Kofler 3.90.1-2 - add missing BR shared-mime-info * Sun May 13 2007 Kevin Kofler 3.90.1-1 - update to 3.90.1 - drop backported upstream fixes already in 3.90.1 - bump cmake BR to 2.4.5 as required upstream now - add BR strigi-devel, alsa-lib-devel, avahi-devel - don't set execute bits by hand anymore, cmake has been fixed - use multilibs in /opt/kde4 * Mon Mar 26 2007 Kevin Kofler 3.80.3-5 - apply upstream fixes to build with Qt 4.3 Beta * Sat Mar 24 2007 Kevin Kofler 3.80.3-4 - restore minimum version requirements for cmake and qt4-devel - drop visibility hack (no longer needed with latest qt4 package) - don't set QT4DIR and PATH anymore, qdbuscpp2xml has been fixed - apply upstream bugfixes: - * khtml segfault fix - * message box cancel button fix - * kprocio received buffer truncation fix (backported) - * KatePart keyboard shortcut (Ctrl+Right, Shift+Right) fix * Mon Mar 05 2007 Rex Dieter 3.80.3-3 - +eXecute perms for %%{_prefix}/lib/* * Fri Feb 23 2007 Kevin Kofler 3.80.3-2 - apply upstream patch to fix klauncher crash - hack around Qt 4 being built with no visibility support - install Qt Designer plugin * Wed Feb 21 2007 Kevin Kofler 3.80.3-1 - update to 3.80.3 - update and improve parallel-installability patch - set QT4DIR and PATH so CMake's direct $QT4DIR/qdbuscpp2xml calls work - move libkdeinit_*.so from -devel to main package - symlink kde4-config into /usr/bin so it can be used for path setting * Wed Nov 29 2006 Chitlesh Goorah 3.80.2-0.4.20061003svn - dropped -DCMAKE_SKIP_RPATH=TRUE from cmake - compiling with QA_RPATHS=0x0003; export QA_RPATHS * Sun Nov 26 2006 Chitlesh Goorah 3.80.2-0.3.20061003svn - Added foolishly dropped libjpeg-devel, zlib-devel, krb5-devel, libattr-devel again as BR * Thu Nov 23 2006 Chitlesh Goorah 3.80.2-0.2.20061003svn - parallel build support - added -DCMAKE_SKIP_RPATH=TRUE to cmake to skip rpath - dropped libjpeg-devel, zlib-devel, krb5-devel, libattr-devel as BR - dropped duplicate libattr-devel in BR - spec file cleanups and added clean up in %%install - fixed missing dependency : libkdeinit_knotify.so * Sat Oct 07 2006 Kevin Kofler 3.80.2-0.1.20061003svn - first Fedora RPM (parts borrowed from the OpenSUSE kdelibs 4 RPM and the Fedora kdelibs 3 RPM) - apply parallel-installability patch