summaryrefslogtreecommitdiffstats
path: root/redhat/applications/development
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/development')
-rw-r--r--redhat/applications/development/kdbg/kdbg.spec4
-rw-r--r--redhat/applications/development/kdiff3/kdiff3.spec4
-rw-r--r--redhat/applications/development/kpicosim/kpicosim.spec4
-rw-r--r--redhat/applications/development/kscope/kscope.spec4
-rw-r--r--redhat/applications/development/ktechlab/ktechlab.spec4
-rw-r--r--redhat/applications/development/kxmleditor/kxmleditor.spec4
-rw-r--r--redhat/applications/development/piklab/piklab.spec68
-rw-r--r--redhat/applications/development/tdesvn/tdesvn.spec4
8 files changed, 46 insertions, 50 deletions
diff --git a/redhat/applications/development/kdbg/kdbg.spec b/redhat/applications/development/kdbg/kdbg.spec
index 9d5d9d766..a9d26e026 100644
--- a/redhat/applications/development/kdbg/kdbg.spec
+++ b/redhat/applications/development/kdbg/kdbg.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.1.3
+%define tde_version 14.1.4
%endif
%define tde_pkg kdbg
%define tde_prefix /opt/trinity
@@ -105,7 +105,7 @@ Features include the following:
##########
-%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
+%if 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif
diff --git a/redhat/applications/development/kdiff3/kdiff3.spec b/redhat/applications/development/kdiff3/kdiff3.spec
index 8fe3eb463..67cc2a32c 100644
--- a/redhat/applications/development/kdiff3/kdiff3.spec
+++ b/redhat/applications/development/kdiff3/kdiff3.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.1.3
+%define tde_version 14.1.4
%endif
%define tde_pkg kdiff3
%define tde_prefix /opt/trinity
@@ -98,7 +98,7 @@ Unicode & UTF-8 support
##########
-%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
+%if 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif
diff --git a/redhat/applications/development/kpicosim/kpicosim.spec b/redhat/applications/development/kpicosim/kpicosim.spec
index 666763abd..24ba5d984 100644
--- a/redhat/applications/development/kpicosim/kpicosim.spec
+++ b/redhat/applications/development/kpicosim/kpicosim.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.1.3
+%define tde_version 14.1.4
%endif
%define tde_pkg kpicosim
%define tde_prefix /opt/trinity
@@ -103,7 +103,7 @@ simulator and export functions to VHDL, HEX and MEM files.
##########
-%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
+%if 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif
diff --git a/redhat/applications/development/kscope/kscope.spec b/redhat/applications/development/kscope/kscope.spec
index 76436fcf4..c1f8f27e0 100644
--- a/redhat/applications/development/kscope/kscope.spec
+++ b/redhat/applications/development/kscope/kscope.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.1.3
+%define tde_version 14.1.4
%endif
%define tde_pkg kscope
%define tde_prefix /opt/trinity
@@ -113,7 +113,7 @@ Main Features:
##########
-%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
+%if 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif
diff --git a/redhat/applications/development/ktechlab/ktechlab.spec b/redhat/applications/development/ktechlab/ktechlab.spec
index 6e07faaec..93bdc0d11 100644
--- a/redhat/applications/development/ktechlab/ktechlab.spec
+++ b/redhat/applications/development/ktechlab/ktechlab.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.1.3
+%define tde_version 14.1.4
%endif
%define tde_pkg ktechlab
%define tde_prefix /opt/trinity
@@ -91,7 +91,7 @@ Homepage: http://ktechlab.org/
##########
-%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
+%if 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif
diff --git a/redhat/applications/development/kxmleditor/kxmleditor.spec b/redhat/applications/development/kxmleditor/kxmleditor.spec
index 722bf7148..3d66d9006 100644
--- a/redhat/applications/development/kxmleditor/kxmleditor.spec
+++ b/redhat/applications/development/kxmleditor/kxmleditor.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.1.3
+%define tde_version 14.1.4
%endif
%define tde_pkg kxmleditor
%define tde_prefix /opt/trinity
@@ -102,7 +102,7 @@ Development files for KXMLEditor.
##########
-%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
+%if 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif
diff --git a/redhat/applications/development/piklab/piklab.spec b/redhat/applications/development/piklab/piklab.spec
index 7d9a9ff0a..7aa506032 100644
--- a/redhat/applications/development/piklab/piklab.spec
+++ b/redhat/applications/development/piklab/piklab.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.1.3
+%define tde_version 14.1.4
%endif
%define tde_pkg piklab
%define tde_prefix /opt/trinity
@@ -61,7 +61,7 @@ BuildRequires: trinity-tdebase-devel >= %{tde_version}
BuildRequires: desktop-file-utils
BuildRequires: gettext
-BuildRequires: autoconf automake libtool m4
+BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: fdupes
@@ -105,7 +105,7 @@ are supported. A command-line programmer and debugger are also available.
##########
-%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
+%if 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif
@@ -115,51 +115,47 @@ are supported. A command-line programmer and debugger are also available.
%prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
-%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
-%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
-%__make -f "admin/Makefile.common"
%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
-
-# Warning: --enable-final causes FTBFS
-# Warning: RHEL5 FTBFS: https://bugzilla.redhat.com/show_bug.cgi?id=499837
-%configure \
- --prefix=%{tde_prefix} \
- --exec-prefix=%{tde_prefix} \
- --bindir=%{tde_bindir} \
- --datadir=%{tde_datadir} \
- --libdir=%{tde_libdir} \
- --mandir=%{tde_mandir} \
- --includedir=%{tde_tdeincludedir} \
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+
+if ! rpm -E %%cmake|grep -e 'cd build\|cd ${CMAKE_BUILD_DIR:-build}'; then
+ %__mkdir_p build
+ cd build
+fi
+
+%cmake \
+ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
+ -DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \
+ -DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
+ -DCMAKE_SKIP_RPATH=OFF \
+ -DCMAKE_SKIP_INSTALL_RPATH=OFF \
+ -DCMAKE_INSTALL_RPATH="%{tde_libdir}" \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DWITH_GCC_VISIBILITY=OFF \
\
- --disable-dependency-tracking \
- --disable-debug \
- --disable-final \
- --enable-new-ldflags \
- --enable-closure \
- --enable-rpath \
- --disable-gcc-hidden-visibility \
-%if 0%{?rhel} == 5
- --disable-libreadline \
-%endif
-
-%if 0%{?mgaversion} >= 6 || 0%{?pclinuxos} >= 2018
-touch "src/devices/pic/xml_data/Makefile.in" "src/devices/mem24/xml_data/Makefile.in"
-%endif
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DDATA_INSTALL_DIR=%{tde_datadir}/apps \
+ -DMIME_INSTALL_DIR=%{tde_datadir}/mimelnk \
+ -DXDG_APPS_INSTALL_DIR=%{tde_tdeappdir} \
+ -DSHARE_INSTALL_PREFIX="%{tde_datadir}"\
+ -DDOC_INSTALL_DIR=%{tde_tdedocdir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ \
+ -DBUILD_ALL=ON \
+ -DWITH_ALL_OPTIONS=ON \
+ ..
%__make %{?_smp_mflags}
-%if 0%{?mgaversion} >= 6 || 0%{?pclinuxos} >= 2018
-touch "src/devices/pic/xml_data/Makefile.in" "src/devices/mem24/xml_data/Makefile.in"
-%endif
-
%install
export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot}
-%__make install DESTDIR=%{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
%find_lang %{tde_pkg}
diff --git a/redhat/applications/development/tdesvn/tdesvn.spec b/redhat/applications/development/tdesvn/tdesvn.spec
index 83c08ce66..7ee1b4307 100644
--- a/redhat/applications/development/tdesvn/tdesvn.spec
+++ b/redhat/applications/development/tdesvn/tdesvn.spec
@@ -18,7 +18,7 @@
# TDE variables
%define tde_epoch 2
%if "%{?tde_version}" == ""
-%define tde_version 14.1.3
+%define tde_version 14.1.4
%endif
%define tde_pkg tdesvn
%define tde_prefix /opt/trinity
@@ -251,7 +251,7 @@ fi
##########
-%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
+%if 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package
%endif