2017-09-28 03:09:32 +02:00
|
|
|
#
|
2017-11-04 09:06:29 +01:00
|
|
|
# spec file for package dtkcore
|
2017-09-28 03:09:32 +02:00
|
|
|
#
|
2019-04-25 03:45:50 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-03-05 03:22:16 +01:00
|
|
|
# Copyright (c) 2017-2018 Hillwood Yang <hillwood@opensuse.org>
|
2017-09-28 03:09:32 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2017-11-04 09:06:29 +01:00
|
|
|
|
2017-09-28 03:09:32 +02:00
|
|
|
%define libver 2
|
|
|
|
|
|
|
|
Name: dtkcore
|
2019-04-25 03:45:50 +02:00
|
|
|
Version: 2.0.12.1
|
2017-09-28 03:09:32 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Deepin Tool Kit Core
|
2019-03-05 03:22:16 +01:00
|
|
|
License: GPL-3.0-or-later
|
2017-10-29 14:29:58 +01:00
|
|
|
Group: System/GUI/Other
|
2017-09-28 03:09:32 +02:00
|
|
|
Url: https://github.com/linuxdeepin/dtkcore
|
|
|
|
Source0: https://github.com/linuxdeepin/dtkcore/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: libqt5-linguist
|
|
|
|
BuildRequires: libqt5-qtbase-private-headers-devel
|
|
|
|
BuildRequires: libqt5-qtdeclarative-devel
|
|
|
|
BuildRequires: libqt5-qtmultimedia-devel
|
|
|
|
BuildRequires: libqt5-qtx11extras-devel
|
2017-11-30 09:52:42 +01:00
|
|
|
BuildRequires: pkgconfig(gsettings-qt)
|
2017-09-28 03:09:32 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
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}
|
2017-11-04 09:06:29 +01:00
|
|
|
Summary: Deepin Toolkit Core libraries
|
2017-11-03 02:44:07 +01:00
|
|
|
Group: System/Libraries
|
2017-09-28 03:09:32 +02:00
|
|
|
|
|
|
|
%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
|
2017-10-29 14:29:58 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2017-09-28 03:09:32 +02:00
|
|
|
Requires: lib%{name}%{libver} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The dtkcore-devel package contains the header files and developer
|
|
|
|
docs for dtkcore.
|
|
|
|
|
2017-11-04 09:06:29 +01:00
|
|
|
You shoud firstly read the "Deepin Application Specification".
|
|
|
|
|
2017-09-28 03:09:32 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2019-03-05 03:22:16 +01:00
|
|
|
sed -i 's/system(lrelease/system(lrelease-qt5/g' src/dtk_translation.prf
|
2017-09-28 03:09:32 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%qmake5 DEFINES+=QT_NO_DEBUG_OUTPUT \
|
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
LIB_INSTALL_DIR=%{_libdir}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%qmake5_install
|
2019-04-25 03:45:50 +02:00
|
|
|
# mkdir -p %{buildroot}%{_libdir}/qt5
|
|
|
|
# mv %{buildroot}/mkspecs %{buildroot}%{_libdir}/qt5/
|
2017-09-28 03:09:32 +02:00
|
|
|
# Remove useless files
|
|
|
|
rm -rf %{buildroot}/usr/tests
|
|
|
|
|
2019-03-05 03:22:16 +01:00
|
|
|
%post -n lib%{name}%{libver} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name}%{libver} -p /sbin/ldconfig
|
|
|
|
|
2017-09-28 03:09:32 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE README.md
|
|
|
|
%dir %{_libexecdir}/dtk2
|
2019-03-05 03:22:16 +01:00
|
|
|
%{_libexecdir}/dtk2/*
|
|
|
|
%{_libdir}/libdtk-2.0.6
|
2017-09-28 03:09:32 +02:00
|
|
|
|
|
|
|
%files -n lib%{name}%{libver}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/dtkcore.pc
|
2019-03-05 03:22:16 +01:00
|
|
|
%{_includedir}/libdtk-2.0.6
|
|
|
|
%dir %{_libdir}/qt5
|
|
|
|
%dir %{_libdir}/qt5/mkspecs
|
|
|
|
%{_libdir}/qt5/mkspecs/features
|
|
|
|
%{_libdir}/qt5/mkspecs/modules
|
|
|
|
%dir %{_libdir}/cmake
|
|
|
|
%{_libdir}/cmake/*
|
2017-09-28 03:09:32 +02:00
|
|
|
|
|
|
|
%changelog
|