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

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
Url: https://github.com/linuxdeepin/dtkgui
Packager: Leontiy Volodin <lvol at altlinux.org>

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
%else
BuildRequires: gcc-c++ libgomp-devel
%endif
BuildRequires: cmake dtk5-core-devel dtk5-common librsvg-devel libgtest-devel libgmock-devel libqtxdg-devel libfreeimage-devel

%description
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.

%prep
%setup
%patch -p1
sed -i '/*build-*/d' .gitignore
# Fix broken configs.
sed -i '/libdir=/s/${prefix}//' \
 misc/dtkgui.pc.in
sed -i -e '/.tools/s/ at CMAKE_INSTALL_PREFIX at //; /.libs/s/ at CMAKE_INSTALL_PREFIX at //;' \
 misc/qt_lib_dtkgui.pri.in

%build
%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"
%endif
export PATH=%_qt5_bindir:$PATH
%cmake \
 -GNinja \
 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
 -DMKSPECS_INSTALL_DIR=%_qt5_archdatadir/mkspecs/modules/ \
 -DCMAKE_INSTALL_LIBDIR=%_libdir \
 -DDTK_VERSION=%version \
 -DVERSION=%version \
 -DLIB_INSTALL_DIR=%_libdir \
 -DBUILD_DOCS=OFF \
 %if_enabled clang
 -DLLVM_USE_LINKER=lld \
 %endif
#
cmake --build %_cmake__builddir -j%__nprocs

%install
%cmake_install

%files -n libdtk5-gui
%doc README.md
%doc LICENSE
%_libdir/libdtkgui.so.5*
%dir %_libdir/dtk5/
%_libdir/dtk5/DGui/

%files -n dtk5-gui-devel
%dir %_includedir/dtk5/
%_includedir/dtk5/DGui/
%_qt5_archdatadir/mkspecs/modules/qt_lib_dtkgui.pri
%dir %_libdir/cmake/DtkGui/
%_libdir/cmake/DtkGui/DtkGuiConfig.cmake
%_libdir/cmake/DtkGui/DtkGuiConfigVersion.cmake
%_libdir/cmake/DtkGui/DtkGuiTargets*.cmake
%_pkgconfigdir/dtkgui.pc
%_libdir/libdtkgui.so

%changelog

Full changelog you can see here

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