269 lines
8.3 KiB
RPMSpec
269 lines
8.3 KiB
RPMSpec
%global _qt4_plugindir %(pkg-config --variable=plugindir Qt 2> /dev/null || echo %{_qt4_plugindir} )
|
|
|
|
Name: kdelibs
|
|
|
|
%if "%{name}" != "kdelibs4"
|
|
Obsoletes: kdelibs4 < %{version}-%{release}
|
|
Provides: kdelibs4 = %{version}-%{release}
|
|
%else
|
|
%define _prefix /opt/kde4
|
|
%endif
|
|
|
|
Epoch: 6
|
|
|
|
Version: 3.91.0
|
|
Release: 4%{?dist}%{?kde}
|
|
Summary: K Desktop Environment 4 - Libraries
|
|
|
|
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 _sysconfdir %{_prefix}/etc
|
|
%endif
|
|
|
|
# use ~/.kde4 instead of ~/.kde
|
|
Patch0: kdelibs-%{version}-kde4home.diff
|
|
|
|
# FIXME/TODO
|
|
Source1: kde.sh
|
|
Source2: kde.csh
|
|
|
|
BuildRequires: qt-devel >= 4.3.0
|
|
Requires: qt >= 4.3.0
|
|
Requires: hicolor-icon-theme
|
|
Requires: xdg-utils
|
|
Requires(post): /sbin/ldconfig xdg-utils
|
|
Requires(postun): /sbin/ldconfig xdg-utils
|
|
## When/if these get created
|
|
#Requires: kde4-settings
|
|
#Requires: kde4-filesystem
|
|
|
|
BuildRequires: cmake >= 2.4.5
|
|
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
|
|
# FIXME/TODO
|
|
#BuildRequires: soprano-devel
|
|
|
|
%description
|
|
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).
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Header files for compiling KDE 4 applications
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
%if "%{name}" != "kdelibs4"
|
|
Obsoletes: kdelibs4-devel < %{version}-%{release}
|
|
Provides: kdelibs4-devel = %{version}-%{release}
|
|
%endif
|
|
Requires: qt-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 an alpha 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
|
|
unset QMAKESPEC && source /etc/profile.d/qt.sh
|
|
|
|
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
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make install DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
%if "%{_prefix}" != "/usr"
|
|
mkdir -p %{buildroot}/usr/bin
|
|
cd %{buildroot}/usr/bin
|
|
ln -s ../..%{_prefix}/bin/kde4-config .
|
|
%endif
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
|
|
%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 || :
|
|
|
|
%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 || :
|
|
|
|
|
|
%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
|
|
%endif
|
|
%{_qt4_plugindir}/designer/kdewidgets.so
|
|
%{_bindir}/*
|
|
%{_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/*
|
|
%{_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 07 2007 Than Ngo <than@redhat.com> 3.91.0-4
|
|
- rename to kdelibs
|
|
|
|
* 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
|