diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-08-03 13:59:43 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-08-03 13:59:43 +0200 |
commit | be9f9f70d960e0789e024c8285dc681302c3c3f1 (patch) | |
tree | bc4c568eb13a62af120ba51f9145337541b35be3 /redhat/kdesdk/trinity-kdesdk-3.5.13.spec | |
parent | 1f76bf54b70463addf27bc503bb58af60dc8ae58 (diff) | |
download | tde-packaging-be9f9f70d960e0789e024c8285dc681302c3c3f1.tar.gz tde-packaging-be9f9f70d960e0789e024c8285dc681302c3c3f1.zip |
RHEL/Fedora: adds support for Mandriva 2011 in packaging
Diffstat (limited to 'redhat/kdesdk/trinity-kdesdk-3.5.13.spec')
-rw-r--r-- | redhat/kdesdk/trinity-kdesdk-3.5.13.spec | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/redhat/kdesdk/trinity-kdesdk-3.5.13.spec b/redhat/kdesdk/trinity-kdesdk-3.5.13.spec index 6bb248eb3..6d5ee5cde 100644 --- a/redhat/kdesdk/trinity-kdesdk-3.5.13.spec +++ b/redhat/kdesdk/trinity-kdesdk-3.5.13.spec @@ -1,14 +1,14 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif # TDE 3.5.13 specific building variables -%define tde_bindir %{_prefix}/bin -%define tde_datadir %{_prefix}/share +%define tde_bindir %{tde_prefix}/bin +%define tde_datadir %{tde_prefix}/share %define tde_docdir %{tde_datadir}/doc -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} %define tde_mandir %{tde_datadir}/man %define tde_tdeappdir %{tde_datadir}/applications/kde @@ -28,7 +28,7 @@ URL: http://www.trinitydesktop.org/ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source: kdesdk-%{version}.tar.gz @@ -51,7 +51,11 @@ BuildRequires: pcre-devel BuildRequires: trinity-tdelibs-devel # for kbugbuster/libkcal BuildRequires: trinity-tdepim-devel +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}db5.1-devel +%else BuildRequires: db4-devel +%endif BuildRequires: desktop-file-utils # kbabel, F-7+: flex >= 2.5.33-9 BuildRequires: flex @@ -60,7 +64,7 @@ BuildRequires: libxslt-devel libxml2-devel BuildRequires: perl BuildRequires: subversion-devel neon-devel -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}ltdl-devel BuildRequires: %{_lib}binutils-devel %else @@ -613,7 +617,7 @@ This package is part of Trinity, and a component of the TDE SDK module. #debian/desktop-i18n/findfiles /opt/trinity/lib/kubuntu-desktop-i18n/ #debian/desktop-i18n/msgsplit /opt/trinity/lib/kubuntu-desktop-i18n/ -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %{tde_bindir}/licensecheck %else %exclude %{tde_bindir}/licensecheck @@ -1042,7 +1046,11 @@ export LD_LIBRARY_PATH="%{tde_libdir}" export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt" -%{?!mgaversion:%__mkdir build; cd build} +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif + %cmake \ -DBIN_INSTALL_DIR=%{tde_bindir} \ -DINCLUDE_INSTALL_DIR=%{tde_includedir} \ |