dtkcore/dtkcore.spec
Hillwood Yang 7e002f4fe6 Accepting request 681573 from X11:Deepin:Factory
- Update version to 2.0.9.11
  * Fix include unistd.h instead of sys/unistd.h
  * Fix url encoding
  * Fix compatibility with Qt 5.6
  * Fix can't get correct disk size in some case
  * add DRecentManager class

- Update version to 2.0.9.5
  * update version number for expermimental 
  * remove qt symbols
  * non array type value is wrong on parse josn file
  * update symbols
  * add LIBDTKCORESHARED_EXPORT for windows
  * add symbols 

- Split cmake-dtkcore
- Update version to 2.0.7.1
  * reset short cut not show
  * cmake link depends
  * better static lib support
  * read settings value failed
  * set default should not use
  * fix dtk-settings install path
  * develop package no install the "version.pri" file
  * awk script failed
  * set default build version for debian changelog
  * set its value only if VERSION is empty
  * add hide support for group
  * add get option interface
  * add group interface for DSettingsGroup

OBS-URL: https://build.opensuse.org/request/show/681573
OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/dtkcore?expand=0&rev=12
2019-03-05 02:22:16 +00:00

108 lines
3.1 KiB
RPMSpec

#
# spec file for package dtkcore
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017-2018 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 http://bugs.opensuse.org/
#
%define libver 2
Name: dtkcore
Version: 2.0.9.11
Release: 0
Summary: Deepin Tool Kit Core
License: GPL-3.0-or-later
Group: System/GUI/Other
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
BuildRequires: pkgconfig(gsettings-qt)
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}
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".
%prep
%setup -q
sed -i 's/system(lrelease/system(lrelease-qt5/g' src/dtk_translation.prf
%build
%qmake5 DEFINES+=QT_NO_DEBUG_OUTPUT \
PREFIX=%{_prefix} \
LIB_INSTALL_DIR=%{_libdir}
make %{?_smp_mflags}
%install
%qmake5_install
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
%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%dir %{_libexecdir}/dtk2
%{_libexecdir}/dtk2/*
%{_libdir}/libdtk-2.0.6
%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
%{_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/*
%changelog