Sisyphus repository
Last update: 6 february 2023 | SRPMs: 18175 | Visits: 26658843
en ru br
ALT Linux repos

Group :: Graphical desktop/Other
RPM: dtkgui

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable clang

Name: dtkgui
Version: 5.6.4
Release: alt2
Summary: Deepin Toolkit, gui module for DDE look and feel
License: LGPL-3.0
Group: Graphical desktop/Other
Packager: Leontiy Volodin <lvol at>

Source: %url/archive/%version/%name-%version.tar.gz
Patch: dtkgui-alt-fix-gcc-build.patch

BuildRequires(pre): rpm-build-ninja
%if_enabled clang
BuildRequires: clang-devel
BuildRequires: gcc-c++ libgomp-devel
BuildRequires: cmake dtk5-core-devel dtk5-common librsvg-devel libgtest-devel libgmock-devel libqtxdg-devel libfreeimage-devel

Deepin Toolkit, gui module for DDE look and feel.

%package -n libdtk5-gui
Summary: Library for %name
Group: Graphical desktop/Other

%description -n libdtk5-gui
DtkGui is used for DDE look and feel.
This package contains the shared libraries.

%package -n dtk5-gui-devel
Summary: Development package for %name
Group: Graphical desktop/Other

%description -n dtk5-gui-devel
Header files and libraries for %name.

%patch -p1
sed -i '/*build-*/d' .gitignore
# Fix broken configs.
sed -i '/libdir=/s/${prefix}//' \
sed -i -e '/.tools/s/ at CMAKE_INSTALL_PREFIX at //; /.libs/s/ at CMAKE_INSTALL_PREFIX at //;' \

%add_optflags -I/usr/lib/gcc/%{_target_alias}/%{get_version libgomp-devel}/include
%if_enabled clang
export CC="clang"
export CXX="clang++"
export AR="llvm-ar"
export NM="llvm-nm"
export READELF="llvm-readelf"
export PATH=%_qt5_bindir:$PATH
%cmake \
 -GNinja \
 -DMKSPECS_INSTALL_DIR=%_qt5_archdatadir/mkspecs/modules/ \
 -DDTK_VERSION=%version \
 -DVERSION=%version \
 -DLIB_INSTALL_DIR=%_libdir \
 %if_enabled clang
cmake --build %_cmake__builddir -j%__nprocs


%files -n libdtk5-gui
%dir %_libdir/dtk5/

%files -n dtk5-gui-devel
%dir %_includedir/dtk5/
%dir %_libdir/cmake/DtkGui/


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin