Branch: master

638ac6d0 2016-10-15 04:28:59 François Andriot
RPM packaging: fix tdeutils, tdewebdev build on r14.0.x
M redhat/main/tdeutils/tdeutils-14.0.0.spec
M redhat/main/tdewebdev/tdewebdev-14.0.0.spec
diff --git a/redhat/main/tdeutils/tdeutils-14.0.0.spec b/redhat/main/tdeutils/tdeutils-14.0.0.spec
index 5dd981d..dfd46f8 100644
--- a/redhat/main/tdeutils/tdeutils-14.0.0.spec
+++ b/redhat/main/tdeutils/tdeutils-14.0.0.spec
@@ -156,6 +156,9 @@
 %define dont_relink 1
 %endif
 
+%if "%{?tde_version}" == "14.1.0"
+%define build_tdefilereplace 1
+%endif
 
 Requires: trinity-ark = %{version}-%{release}
 Requires: trinity-kcalc = %{version}-%{release}
@@ -176,8 +179,9 @@
 Requires: trinity-ktimer = %{version}-%{release}
 Requires: trinity-tdewalletmanager = %{version}-%{release}
 Requires: trinity-superkaramba = %{version}-%{release}
+%if 0%{?build_tdefilereplace}
 Requires: trinity-tdefilereplace = %{version}-%{release}
-
+%endif
 
 %description
 Utilities for the Trinity Desktop Environment, including:
@@ -761,6 +765,8 @@
 
 ##########
 
+%if 0%{?build_tdefilereplace}
+
 %package -n trinity-tdefilereplace
 Summary:	Batch search-and-replace component for TDE
 Group:		Applications/Utilities
@@ -785,6 +791,8 @@
 %{tde_tdedocdir}/HTML/en/tdefilereplace/
 %{tde_datadir}/icons/hicolor/*/apps/tdefilereplace.png
 %{tde_datadir}/services/tdefilereplacepart.desktop
+
+%endif
 
 ##########
 
@@ -957,8 +965,10 @@
 %suse_update_desktop_file thinkpad
 %suse_update_desktop_file kvaio
 %suse_update_desktop_file KFloppy            System  Filesystem
+%if 0%{?build_tdefilereplace}
 %suse_update_desktop_file -r tdefilereplace   System      FileManager
 %endif
+%endif
 
 # Icons from TDE Control Center should only be displayed in TDE
 for i in %{?buildroot}%{tde_tdeappdir}/*.desktop ; do
diff --git a/redhat/main/tdewebdev/tdewebdev-14.0.0.spec b/redhat/main/tdewebdev/tdewebdev-14.0.0.spec
index 557931d..3c13397 100644
--- a/redhat/main/tdewebdev/tdewebdev-14.0.0.spec
+++ b/redhat/main/tdewebdev/tdewebdev-14.0.0.spec
@@ -94,6 +94,9 @@
 BuildRequires:	libxml2-devel
 #endif
 
+%if "%{?tde_version}" != "14.1.0"
+%define build_tdefilereplace 1
+%endif
 
 Obsoletes:	trinity-kdewebdev-libs < %{version}-%{release}
 Provides:	trinity-kdewebdev-libs = %{version}-%{release}
@@ -367,6 +370,37 @@
 
 ##########
 
+%if 0%{?build_tdefilereplace}
+
+%package -n trinity-tdefilereplace
+Summary:	Batch search-and-replace component for TDE
+Group:		Applications/Utilities
+
+%description -n trinity-tdefilereplace
+TDEFileReplace is an embedded component for TDE that acts as a batch
+search-and-replace tool. It allows you to replace one expression with
+another in many files at once.
+
+Note that at the moment TDEFileReplace does not come as a standalone
+application.
+
+This package is part of Trinity, as a component of the TDE utilities module.
+
+%files -n trinity-tdefilereplace
+%{tde_bindir}/tdefilereplace
+%{tde_tdelibdir}/libtdefilereplacepart.la
+%{tde_tdelibdir}/libtdefilereplacepart.so
+%{tde_tdeappdir}/tdefilereplace.desktop
+%{tde_datadir}/apps/tdefilereplace/
+%{tde_datadir}/apps/tdefilereplacepart/
+%{tde_tdedocdir}/HTML/en/tdefilereplace/
+%{tde_datadir}/icons/hicolor/*/apps/tdefilereplace.png
+%{tde_datadir}/services/tdefilereplacepart.desktop
+
+%endif
+
+##########
+
 %package devel
 Group: Development/Libraries
 Summary:	Header files and documentation for %{name} 
@@ -470,6 +504,9 @@
 %suse_update_desktop_file    kmdr-editor      Development GUIDesigner
 %suse_update_desktop_file    kmdr-executor    Development GUIDesigner
 %suse_update_desktop_file -r quanta           Office WebDevelopment
+%if 0%{?build_tdefilereplace}
+%suse_update_desktop_file -r tdefilereplace   System      FileManager
+%endif
 %endif
 
 # Adds missing icons in 'hicolor' theme