diff options
author | François Andriot <[email protected]> | 2021-08-03 10:53:56 +0200 |
---|---|---|
committer | François Andriot <[email protected]> | 2021-08-03 10:57:44 +0200 |
commit | 1367f1a4e2f3c1641e8ae3f694813a1a4d9420ee (patch) | |
tree | 5ba159b4a7f6be51e53ab2eac3a9de2130d48b50 /redhat/applications/kdbg | |
parent | 5ae5cb66ad5bb2d60335c66bf8d87b70cd2454bd (diff) | |
download | tde-packaging-1367f1a4e2f3c1641e8ae3f694813a1a4d9420ee.tar.gz tde-packaging-1367f1a4e2f3c1641e8ae3f694813a1a4d9420ee.zip |
RPM: various updates for TDE 14.0.11
Signed-off-by: François Andriot <[email protected]>
Diffstat (limited to 'redhat/applications/kdbg')
-rw-r--r-- | redhat/applications/kdbg/kdbg.spec | 53 |
1 files changed, 29 insertions, 24 deletions
diff --git a/redhat/applications/kdbg/kdbg.spec b/redhat/applications/kdbg/kdbg.spec index bec1628a6..7f50e09e3 100644 --- a/redhat/applications/kdbg/kdbg.spec +++ b/redhat/applications/kdbg/kdbg.spec @@ -63,7 +63,7 @@ BuildRequires: desktop-file-utils BuildRequires: gettext -BuildRequires: autoconf automake libtool m4 +BuildRequires: cmake libtool m4 BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -113,33 +113,37 @@ Features include the following: %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/"*"/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}" -export kde_confdir="%{tde_confdir}" - -# Warning: --enable-final causes FTBFS -%configure \ - --prefix=%{tde_prefix} \ - --exec-prefix=%{tde_prefix} \ - --bindir=%{tde_bindir} \ - --datadir=%{tde_datadir} \ - --includedir=%{tde_tdeincludedir} \ - --docdir=%{tde_tdedocdir} \ - --libdir=%{tde_libdir} \ +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" + +if ! rpm -E %%cmake|grep -q "cd 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_INSTALL_RPATH="%{tde_libdir}" \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DWITH_GCC_VISIBILITY=OFF \ + \ + -DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \ + -DSHARE_INSTALL_PREFIX="%{tde_datadir}" \ + -DCONFIG_INSTALL_DIR="%{tde_confdir}" \ + \ + -DWITH_ALL_OPTIONS=ON \ + -DWITH_GCC_VISIBILITY=ON \ \ - --disable-dependency-tracking \ - --disable-debug \ - --enable-new-ldflags \ - --disable-final \ - --enable-closure \ - --enable-rpath \ - --disable-gcc-hidden-visibility + -DBUILD_ALL=ON \ + -DBUILD_DOC=ON \ + -DBUILD_TRANSLATIONS=ON \ + .. %__make %{?_smp_mflags} || %__make @@ -147,7 +151,7 @@ export kde_confdir="%{tde_confdir}" %install export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} -%__make install DESTDIR=%{buildroot} +%__make install DESTDIR=%{buildroot} -C build %find_lang %{tde_pkg} @@ -167,6 +171,7 @@ export PATH="%{tde_bindir}:${PATH}" %lang(ru) %{tde_tdedocdir}/HTML/ru/kdbg/ %{tde_datadir}/icons/hicolor/*/apps/kdbg.png %{tde_datadir}/icons/locolor/*/apps/kdbg.png +%{tde_mandir}/man1/kdbg.* %changelog |