diff options
author | albator <albator@arcadia.vtf> | 2011-11-24 23:47:54 +0100 |
---|---|---|
committer | albator <albator@arcadia.vtf> | 2011-11-24 23:47:54 +0100 |
commit | b90c8995428a95728d62ad0f1b477d2486654212 (patch) | |
tree | 9e62286a0ef81ba01d2d140cf39becc3c8ba23ec /redhat/kdelibs/trinity-kdelibs-3.5.12.spec | |
parent | 4d26b3bc3984739d812f22d751e3089de35293a0 (diff) | |
download | tde-packaging-b90c8995428a95728d62ad0f1b477d2486654212.tar.gz tde-packaging-b90c8995428a95728d62ad0f1b477d2486654212.zip |
RHEL/Fedora: TDE fixes, add applications, etc ....
Diffstat (limited to 'redhat/kdelibs/trinity-kdelibs-3.5.12.spec')
-rwxr-xr-x | redhat/kdelibs/trinity-kdelibs-3.5.12.spec | 46 |
1 files changed, 39 insertions, 7 deletions
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec index 6207fc5c1..30cb449a1 100755 --- a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec +++ b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec @@ -2,7 +2,7 @@ %if "%{?version}" == "" %define version 3.5.12 %endif -%define release 8 +%define release 9 # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". %if "%{?_prefix}" != "/usr" @@ -37,6 +37,7 @@ Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: kdelibs-%{version}.tar.gz +Patch0: kdelibs-3.5.13-maxlinelength.patch BuildRequires: libtool BuildRequires: tqtinterface-devel @@ -52,6 +53,11 @@ BuildRequires: alsa-lib-devel BuildRequires: libidn-devel BuildRequires: qt%{?_qt_suffix}-devel BuildRequires: avahi-qt3-devel +BuildRequires: jasper-devel +BuildRequires: libtiff-devel +BuildRequires: OpenEXR-devel +BuildRequires: libtool-ltdl-devel +BuildRequires: glib2-devel Requires: tqtinterface Requires: trinity-arts @@ -59,8 +65,10 @@ Requires: avahi Requires: qt%{?_qt_suffix} Requires: avahi-qt3 + +Provides: kdelibs%{?_qt_suffix} = %{version} %if "%{?_prefix}" == "/usr" -Obsoletes: kdelibs%{?_qt_suffix} +Obsoletes: kdelibs%{?_qt_suffix} <= 3.5.10 %endif %description @@ -75,8 +83,9 @@ kimgio (image manipulation). Summary: %{name} - Development files Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Provides: kdelibs%{?_qt_suffix}-devel = %{version} %if "%{?_prefix}" == "/usr" -Obsoletes: kdelibs%{?_qt_suffix}-devel +Obsoletes: kdelibs%{?_qt_suffix}-devel <= 3.5.10 %endif %description devel @@ -87,19 +96,22 @@ applications for TDE. Group: Development/Libraries Summary: %{name} - API documentation Requires: %{name} = %{version}-%{release} +Provides: kdelibs%{?_qt_suffix}-apidocs = %{version} %if "%{?_prefix}" == "/usr" -Obsoletes: kdelibs%{?_qt_suffix}-apidocs-devel +Obsoletes: kdelibs%{?_qt_suffix}-apidocs <= 3.5.10 %endif %description apidocs This package includes the TDE API documentation in HTML format for easy browsing + %prep %setup -q -n kdelibs +%patch0 -p1 %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" -%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" %__make -f "admin/Makefile.common" @@ -155,6 +167,16 @@ cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf %{tde_libdir} EOF +# Moves the XDG configuration files to TDE directory +%if "%{_prefix}" != "/usr" +%__install -p -D -m644 \ + "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" \ + "%{?buildroot}%{_prefix}/etc/xdg/menus/kde-applications.menu" +%__rm -rf "%{?buildroot}%{_sysconfdir}/xdg" +%else +%__mv -f "%{?buildroot}%{_sysconfdir}/xdg/menus/applications.menu" "%{?buildroot}%{_sysconfdir}/xdg/menus/kde-applications.menu" +%endif + %clean %__rm -rf %{?buildroot} @@ -268,8 +290,12 @@ EOF %endif %{_sysconfdir}/ld.so.conf.d/trinity.conf -# Provided by 'redhat-menus' package -%exclude %{_sysconfdir}/xdg/menus/applications.menu +# Avoid conflict with 'redhat-menus' package +%if "%{_prefix}" == "/usr" +%{_sysconfdir}/xdg/menus/kde-applications.menu +%else +%{_prefix}/etc/xdg/menus/kde-applications.menu +%endif %files devel %defattr(-,root,root,-) @@ -289,6 +315,12 @@ EOF %changelog +* Sun Nov 29 2911 Francois Andriot <francois.andriot@free.fr> - 3.5.12-9 +- Moves XDG files in TDE prefix to avoid conflict with distro-provided KDE +- Disable 'max line length' detection +- Add missing BuildRequires +- Disable 'max line length' detection + * Fri Sep 16 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-8 - Add support for RHEL 5. |