- Update version to 5.5.23
* use $${TARGET} for QRC_PATH
* modify dconfig's file install path
OBS-URL: https://build.opensuse.org/request/show/999736
OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/dtkcommon?expand=0&rev=9
61 lines
1.9 KiB
RPMSpec
61 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package dtkcommon
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
# Copyright (c) 2021 Hillwood Yang <hillwood@opensuse.org>
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: dtkcommon
|
|
Version: 5.5.23
|
|
Release: 0
|
|
Summary: The DTK Tools
|
|
License: GPL-3.0+
|
|
Group: System/GUI/Other
|
|
URL: https://github.com/linuxdeepin/dtkcommon
|
|
Source0: https://github.com/linuxdeepin/dtkcommon/archive/%{version}/%{name}-%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: glib2-tools
|
|
BuildRequires: libQt5Core-private-headers-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
A public project for building DTK Library
|
|
|
|
%prep
|
|
%setup -q
|
|
sed -i 's|$$PREFIX/lib|$$LIB_INSTALL_DIR|g' dtkcommon.pro
|
|
sed -i 's|lrelease|lrelease-qt5|g' features/dtk_translation.prf
|
|
|
|
%build
|
|
%qmake5 DEFINES+=QT_NO_DEBUG_OUTPUT \
|
|
PREFIX=%{_prefix} \
|
|
LIB_INSTALL_DIR=%{_libdir}
|
|
%make_build
|
|
|
|
%install
|
|
%qmake5_install
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.md
|
|
%license LICENSE
|
|
%dir %{_libdir}/cmake/Dtk
|
|
%{_libdir}/cmake/Dtk/DtkConfig.cmake
|
|
%{_libdir}/cmake/Dtk/DtkInstallDConfigConfig.cmake
|
|
%{_libdir}/qt5/mkspecs/features/*.prf
|
|
%{_libdir}/qt5/mkspecs/modules/qt_lib_dtkcommon.pri
|
|
%{_datadir}/glib-2.0/schemas/com.deepin.dtk.gschema.xml
|
|
|
|
%changelog
|