2007-05-15 18:58:25 +00:00
|
|
|
|
2007-07-24 23:31:16 +00:00
|
|
|
%if 0%{?fedora} > 7
|
|
|
|
Name: kdelibs
|
|
|
|
Epoch: 6
|
|
|
|
|
|
|
|
Obsoletes: kdelibs4 < %{version}-%{release}
|
|
|
|
Provides: kdelibs4 = %{version}-%{release}
|
2004-09-09 06:57:53 +00:00
|
|
|
|
2007-07-20 13:12:20 +00:00
|
|
|
%else
|
2007-07-24 23:31:16 +00:00
|
|
|
Name: kdelibs4
|
|
|
|
%define _prefix /opt/kde4
|
2007-07-20 13:12:20 +00:00
|
|
|
%endif
|
|
|
|
|
2007-07-24 23:31:16 +00:00
|
|
|
Version: 3.91.0
|
|
|
|
Release: 6%{?dist}%{?kde}
|
|
|
|
Summary: K Desktop Environment 4 - Libraries
|
2007-05-15 18:58:25 +00:00
|
|
|
|
2007-07-24 23:31:16 +00:00
|
|
|
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)
|
2007-07-24 13:03:58 +00:00
|
|
|
|
|
|
|
%if "%{_prefix}" != "/usr"
|
2007-07-24 23:31:16 +00:00
|
|
|
# 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
|
2007-07-24 13:03:58 +00:00
|
|
|
%endif
|
2007-07-20 13:12:20 +00:00
|
|
|
|
2007-07-24 13:03:58 +00:00
|
|
|
# use ~/.kde4 instead of ~/.kde
|
2007-07-24 23:31:16 +00:00
|
|
|
Patch0: kdelibs-%{version}-kde4home.diff
|
|
|
|
# upstream patch by Mirko Stocker to fix KatePart syntax highlighting (rev 684047)
|
|
|
|
# http://bugs.kde.org/145571
|
|
|
|
Patch1: kdelibs-3.91.0-fix-katehighlight.patch
|
2007-07-24 13:03:58 +00:00
|
|
|
|
2007-07-24 23:31:16 +00:00
|
|
|
Source1: kde4.sh
|
|
|
|
Source2: kde4.csh
|
2006-06-24 13:47:58 +00:00
|
|
|
|
2007-07-24 23:31:16 +00:00
|
|
|
BuildRequires: qt4-devel >= 4.3.0
|
|
|
|
%global qt4_ver %(pkg-config QtCore --modversion 2>/dev/null || echo 4.3.0)
|
|
|
|
Requires: qt4 >= %{qt4_ver}
|
2007-07-24 13:03:58 +00:00
|
|
|
Requires: xdg-utils
|
|
|
|
Requires(post): /sbin/ldconfig xdg-utils
|
|
|
|
Requires(postun): /sbin/ldconfig xdg-utils
|
|
|
|
|
2007-07-24 23:31:16 +00:00
|
|
|
BuildRequires: cmake
|
2007-07-24 13:03:58 +00:00
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
BuildRequires: libxslt-devel aspell-devel giflib-devel
|
|
|
|
BuildRequires: libpng-devel bzip2-devel openssl-devel libacl-devel gettext-devel
|
|
|
|
BuildRequires: libtiff-devel pcre-devel libxml2-devel cups-devel libjpeg-devel
|
|
|
|
BuildRequires: zlib-devel krb5-devel libattr-devel gamin-devel strigi-devel
|
|
|
|
BuildRequires: alsa-lib-devel avahi-devel
|
2007-07-24 23:31:16 +00:00
|
|
|
BuildRequires: soprano-devel
|
2006-06-24 07:57:03 +00:00
|
|
|
|
2004-09-09 06:52:50 +00:00
|
|
|
%description
|
2007-07-24 13:03:58 +00:00
|
|
|
Libraries for the K Desktop Environment 4.
|
|
|
|
WARNING: This is an alpha version. It probably has many bugs left.
|
|
|
|
Also, the API and ABI are NOT fully stable yet (soft freeze only).
|
2004-09-09 06:52:50 +00:00
|
|
|
|
|
|
|
%package devel
|
2007-07-24 23:31:16 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Header files for compiling KDE 4 applications
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2007-07-24 13:03:58 +00:00
|
|
|
%if "%{name}" != "kdelibs4"
|
|
|
|
Obsoletes: kdelibs4-devel < %{version}-%{release}
|
2007-07-24 23:31:16 +00:00
|
|
|
Provides: kdelibs4-devel = %{version}-%{release}
|
2007-07-20 13:12:20 +00:00
|
|
|
%endif
|
2007-07-24 23:31:16 +00:00
|
|
|
Requires: qt4-devel
|
2007-07-24 13:03:58 +00:00
|
|
|
# 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
|
2004-09-09 06:52:50 +00:00
|
|
|
%description devel
|
|
|
|
This package includes the header files you will need to compile
|
2007-07-24 13:03:58 +00:00
|
|
|
applications for KDE 4.
|
|
|
|
WARNING: This is an alpha version. It probably has many bugs left.
|
|
|
|
Also, the API and ABI are NOT fully stable yet (soft freeze only).
|
2006-01-18 15:41:35 +00:00
|
|
|
|
2004-09-09 06:52:50 +00:00
|
|
|
|
|
|
|
%prep
|
2007-07-20 13:12:20 +00:00
|
|
|
%setup -q -n kdelibs-%{version}
|
|
|
|
|
2007-07-24 13:03:58 +00:00
|
|
|
%if "%{_prefix}" != "/usr"
|
|
|
|
%patch0 -p1 -b .kde4home
|
2007-05-15 18:58:25 +00:00
|
|
|
%endif
|
2007-07-24 23:31:16 +00:00
|
|
|
%patch1 -p3 -b .kde#145571
|
2007-05-15 18:58:25 +00:00
|
|
|
|
2004-09-09 06:53:49 +00:00
|
|
|
|
2004-09-09 06:52:50 +00:00
|
|
|
%build
|
2007-07-24 13:03:58 +00:00
|
|
|
|
|
|
|
mkdir -p %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
|
|
|
|
-DSHARE_INSTALL_PREFIX=%{_datadir} \
|
|
|
|
-DINCLUDE_INSTALL_DIR=%{_includedir} \
|
|
|
|
-DLIB_INSTALL_DIR=%{_libdir} \
|
|
|
|
../
|
|
|
|
popd
|
2007-06-15 18:09:56 +00:00
|
|
|
|
2007-07-24 13:03:58 +00:00
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
2007-05-15 18:58:25 +00:00
|
|
|
|
2004-09-09 06:57:53 +00:00
|
|
|
|
2004-09-09 06:59:30 +00:00
|
|
|
%install
|
2006-05-04 17:50:29 +00:00
|
|
|
rm -rf %{buildroot}
|
2007-07-24 13:03:58 +00:00
|
|
|
make install DESTDIR=%{buildroot} -C %{_target_platform}
|
2004-09-09 06:59:48 +00:00
|
|
|
|
2007-07-24 13:03:58 +00:00
|
|
|
# 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
|
2004-09-09 06:52:50 +00:00
|
|
|
|
2007-07-24 23:31:16 +00:00
|
|
|
%if "%{_prefix}" == "/usr"
|
2007-07-24 13:03:58 +00:00
|
|
|
# see also use-of/patching of XDG_MENU_PREFIX in kdebase
|
2007-05-15 18:58:25 +00:00
|
|
|
mv %{buildroot}%{_sysconfdir}/xdg/menus/applications.menu \
|
2007-07-24 13:03:58 +00:00
|
|
|
%{buildroot}%{_sysconfdir}/xdg/menus/kde4-applications.menu
|
2006-09-30 11:44:45 +00:00
|
|
|
|
2007-07-24 13:03:58 +00:00
|
|
|
# Unpackaged files
|
|
|
|
rm -rf %{buildroot}%{_datadir}/icons/hicolor
|
2004-09-09 06:52:50 +00:00
|
|
|
|
2007-07-24 23:31:16 +00:00
|
|
|
%else
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/usr/bin
|
|
|
|
cd %{buildroot}/usr/bin
|
|
|
|
ln -s ../..%{_prefix}/bin/kde4-config .
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2007-05-15 18:58:25 +00:00
|
|
|
|
2007-07-24 13:03:58 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig ||:
|
|
|
|
%{_bindir}/xdg-icon-resource forceupdate --theme crystalsvg 2> /dev/null || :
|
|
|
|
%{_bindir}/xdg-icon-resource forceupdate --theme oxygen 2> /dev/null || :
|
|
|
|
%{_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || :
|
2007-05-15 18:58:25 +00:00
|
|
|
|
2007-07-24 13:03:58 +00:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig ||:
|
|
|
|
%{_bindir}/xdg-icon-resource forceupdate --theme crystalsvg 2> /dev/null || :
|
|
|
|
%{_bindir}/xdg-icon-resource forceupdate --theme oxygen 2> /dev/null || :
|
|
|
|
%{_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || :
|
2006-07-18 20:34:59 +00:00
|
|
|
|
2007-05-15 18:58:25 +00:00
|
|
|
|
2004-09-09 06:52:50 +00:00
|
|
|
%clean
|
2006-05-04 17:50:29 +00:00
|
|
|
rm -rf %{buildroot}
|
2004-09-09 06:52:50 +00:00
|
|
|
|
2007-05-15 18:58:25 +00:00
|
|
|
|
2004-09-09 06:52:50 +00:00
|
|
|
%files
|
2007-05-17 15:19:44 +00:00
|
|
|
%defattr(-,root,root,-)
|
2007-07-24 13:03:58 +00:00
|
|
|
%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
|
2007-07-24 23:31:16 +00:00
|
|
|
%{_datadir}/icons/hicolor/
|
2007-07-24 13:03:58 +00:00
|
|
|
%endif
|
|
|
|
%{_qt4_plugindir}/designer/kdewidgets.so
|
2007-07-20 13:12:20 +00:00
|
|
|
%{_bindir}/*
|
2007-07-24 13:03:58 +00:00
|
|
|
%{_datadir}/apps/
|
|
|
|
%{_datadir}/config/
|
|
|
|
%{_datadir}/dbus-1/interfaces/*
|
|
|
|
%{_datadir}/emoticons/
|
|
|
|
%{_datadir}/kde4/
|
|
|
|
%{_datadir}/icons/crystalsvg/*/*/*
|
|
|
|
%{_datadir}/icons/oxygen/
|
|
|
|
%{_datadir}/locale/all_languages/
|
|
|
|
%{_datadir}/mime/packages/*
|
|
|
|
%dir %{_datadir}/doc/HTML
|
|
|
|
%dir %{_datadir}/doc/HTML/en
|
|
|
|
%{_datadir}/doc/HTML/en/*
|
2006-06-07 21:54:14 +00:00
|
|
|
%{_libdir}/lib*.so.*
|
2007-07-24 13:03:58 +00:00
|
|
|
%{_libdir}/libkdeinit4_*.so
|
|
|
|
%{_libdir}/kde4/
|
|
|
|
%{_sysconfdir}/xdg/menus/*applications.menu
|
2004-09-09 06:52:50 +00:00
|
|
|
|
|
|
|
%files devel
|
2007-07-18 12:45:05 +00:00
|
|
|
%defattr(-,root,root,-)
|
2007-07-24 13:03:58 +00:00
|
|
|
%doc KDE4PORTING.html
|
|
|
|
%{_includedir}/
|
2006-06-07 21:54:14 +00:00
|
|
|
%{_libdir}/lib*.so
|
2007-07-24 13:03:58 +00:00
|
|
|
%exclude %{_libdir}/libkdeinit4_*.so
|
2007-05-15 18:58:25 +00:00
|
|
|
|
2004-09-09 06:52:50 +00:00
|
|
|
|
|
|
|
%changelog
|
2007-07-24 23:31:16 +00:00
|
|
|
* Thu Jul 19 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> 3.91.0-6
|
|
|
|
- add missing epoch to main package Requires for -devel if name is kdelibs
|
|
|
|
|
|
|
|
* Tue Jul 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.91.0-5
|
|
|
|
- BR: soprano-devel
|
|
|
|
- prefix=/usr cleanups
|
|
|
|
|
|
|
|
* Wed Jul 11 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> 3.91.0-4
|
|
|
|
- apply upstream bugfix for KatePart syntax highlighting (kde #145571)
|
2007-07-24 13:03:58 +00:00
|
|
|
|
|
|
|
* Thu Jun 29 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.91.0-3
|
|
|
|
- fix %%_sysconfdir for %%_prefix != /usr case.
|
|
|
|
|
|
|
|
* Thu Jun 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.91.0-2
|
|
|
|
- updated kde4home.diff
|
|
|
|
- CMAKE_BUILD_TYPE=RelWithDebInfo (we're already using %%optflags)
|
|
|
|
|
|
|
|
* Wed Jun 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.91.0-1
|
|
|
|
- kde-3.91.0
|
|
|
|
- CMAKE_BUILD_TYPE=debug
|
|
|
|
|
|
|
|
* Sat Jun 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 3.90.1-3
|
|
|
|
- specfile cleanup (%%prefix issues mostly)
|
|
|
|
|
|
|
|
* Wed May 30 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> 3.90.1-2
|
|
|
|
- add missing BR shared-mime-info
|
|
|
|
|
|
|
|
* Sun May 13 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> 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 <Kevin@tigcc.ticalc.org> 3.80.3-5
|
|
|
|
- apply upstream fixes to build with Qt 4.3 Beta
|
|
|
|
|
|
|
|
* Sat Mar 24 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> 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 <rdieter[AT]fedoraproject.org> 3.80.3-3
|
|
|
|
- +eXecute perms for %%{_prefix}/lib/*
|
|
|
|
|
|
|
|
* Fri Feb 23 2007 Kevin Kofler <Kevin@tigcc.ticalc.org> 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 <Kevin@tigcc.ticalc.org> 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 <chitlesh [AT] fedoraproject DOT org> 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 <chitlesh [AT] fedoraproject DOT org> 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 <chitlesh [AT] fedoraproject DOT org> 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 <Kevin@tigcc.ticalc.org> 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
|