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.13.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.13.spec')
-rwxr-xr-x | redhat/kdelibs/trinity-kdelibs-3.5.13.spec | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec index abbb9a047..faea11948 100755 --- a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec +++ b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec @@ -2,7 +2,7 @@ %if "%{?version}" == "" %define version 3.5.13 %endif -%define release 3 +%define release 4 # 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 @@ -64,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 @@ -80,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 @@ -92,8 +96,9 @@ 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 @@ -103,6 +108,8 @@ format for easy browsing %prep %setup -q -n kdelibs +%patch0 -p1 + %build unset QTDIR || : ; . /etc/profile.d/qt.sh @@ -146,11 +153,14 @@ cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf 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 @@ -266,7 +276,11 @@ EOF %{_sysconfdir}/ld.so.conf.d/trinity.conf # Avoid conflict with 'redhat-menus' package +%if "%{_prefix}" == "/usr" +%{_sysconfdir}/xdg/menus/kde-applications.menu +%else %{_prefix}/etc/xdg/menus/kde-applications.menu +%endif # New in TDE 3.5.13 %{_bindir}/kdetcompmgr @@ -292,6 +306,10 @@ EOF %changelog +* Sun Nov 20 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-4 +- Add 'Provides: kdelibs3' to avoid installing distro-provided KDE3 libraries +- Disable 'max line length' detection + * Sat Nov 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-3 - Moves XDG files in TDE prefix to avoid conflict with distro-provided KDE |