Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37046881
en ru br
ALT Linux repos
S:5.6.9-alt1

Group :: System/Configuration/Other
RPM: dtkcommon

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable clang

Name: dtkcommon
Version: 5.6.9
Release: alt1

Summary: Deepin desktop schemas

License: BSD-3-Clause and CC0-1.0
Group: System/Configuration/Other
Url: https://github.com/linuxdeepin/dtkcommon

Packager: Leontiy Volodin <lvol at altlinux.org>

Source: %url/archive/%version/%name-%version.tar.gz

%if_enabled clang
BuildRequires(pre): clang-devel
%else
BuildRequires(pre): gcc-c++
%endif
BuildRequires(pre): rpm-build-ninja
BuildRequires: cmake
BuildRequires: glibc-core
BuildRequires: qt5-base-devel
BuildRequires: qt5-tools

%description
%summary.

%package -n dtk5-common-schemas
Summary: Deepin desktop schemas
Group: System/Configuration/Other
BuildArch: noarch

%description -n dtk5-common-schemas
%summary.

%package -n dtk5-common-devel
Summary: Development files for %name
Group: Development/Other
Provides: dtk5-common

%description -n dtk5-common-devel
The package provides development files for %name.

%prep
%setup

%build
export QTDIR=%_qt5_prefix
export PATH=%_qt5_bindir:$PATH
%if_enabled clang
export CC="clang"
export CXX="clang++"
export AR="llvm-ar"
%endif

%cmake \
 -GNinja \
 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
 -DDVERSION=%version \
 -DDTK_VERSION=%version \
 -DLIB_INSTALL_DIR=%_libdir \
 -DMKSPECS_INSTALL_DIR=%_qt5_archdatadir/mkspecs \
 -DARCH=%_arch \
#
cmake --build "%_cmake__builddir" -j%__nprocs

%install
%cmake_install

%files -n dtk5-common-schemas
%doc LICENSE README.md
%_datadir/glib-2.0/schemas/com.deepin.dtk.gschema.xml

%files -n dtk5-common-devel
%_libdir/cmake/Dtk/DtkConfig.cmake
%_qt5_archdatadir/mkspecs/features/*.prf
%_qt5_archdatadir/mkspecs/modules/qt_lib_dtkcommon.pri

%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