File dtkcore.spec of Package dtkcore

# spec file for package dtkcore
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017-2018 Hillwood Yang <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define libver 2

Name:           dtkcore
Version:        2.1.1
Release:        0
Summary:        Deepin Tool Kit Core
License:        GPL-3.0-or-later
Group:          System/GUI/Other
BuildRequires:  fdupes
BuildRequires:  libqt5-linguist
BuildRequires:  libqt5-qtbase-private-headers-devel
BuildRequires:  libqt5-qtdeclarative-devel
BuildRequires:  libqt5-qtmultimedia-devel
BuildRequires:  libqt5-qtx11extras-devel
BuildRequires:  pkgconfig(gsettings-qt)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Deepint Tool Kit (Dtk) is the base devlopment tool of all C++/Qt Developer work 
on Deepin.

You shoud read the [Deepin Application Specification](doc/Specification) firstly.

%package -n lib%{name}%{libver}
Summary:        Deepin Toolkit Core libraries
Group:          System/Libraries

%description -n lib%{name}%{libver}
Deepint Tool Kit (Dtk) is the base devlopment tool of all C++/Qt Developer work 
on Deepin.

%package devel
Summary:        Development tools for dtkcore
Group:          Development/Languages/C and C++
Requires:       lib%{name}%{libver} = %{version}

%description devel
The dtkcore-devel package contains the header files and developer
docs for dtkcore.

You shoud firstly read the "Deepin Application Specification".

%setup -q
sed -i 's/system(lrelease/system(lrelease-qt5/g' src/dtk_translation.prf

        PREFIX=%{_prefix} \
make %{?_smp_mflags}

# mkdir -p %{buildroot}%{_libdir}/qt5
# mv %{buildroot}/mkspecs %{buildroot}%{_libdir}/qt5/
# Remove useless files
rm -rf %{buildroot}/usr/tests

%post -n lib%{name}%{libver} -p /sbin/ldconfig
%postun -n lib%{name}%{libver} -p /sbin/ldconfig

%license LICENSE
# %dir %{_libexecdir}/dtk2
# %{_libexecdir}/dtk2/*

%files -n lib%{name}%{libver}

%files devel
%dir %{_libdir}/qt5
%dir %{_libdir}/qt5/mkspecs
%dir %{_libdir}/cmake

openSUSE Build Service is sponsored by