# Run tests in check section
# disable for bootstrapping

%bcond_with check

%global with_debug 1
%if 0%{?with_debug}
%global debug_package   %{nil}
%endif

Name:           dde-clipboard
Version:        5.3.16
Release:        1
Summary:        Qt platform theme integration plugins for DDE
License:        GPLv3+
URL:            http://shuttle.corp.deepin.com/cache/repos/eagle/release-candidate/RERFNS4wLjAuNjU3NQ/pool/main/d/dde-clipboard/
Source0:        %{name}_%{version}.orig.tar.xz

BuildRequires:  qt5-qtbase-devel
BuildRequires:  qt5-linguist
BuildRequires:  dtkcore-devel
BuildRequires:  dtkwidget-devel
BuildRequires:  dtkwidget
BuildRequires:  libgio-qt
BuildRequires:  libgio-qt-devel
BuildRequires:  pkgconfig(dframeworkdbus) >= 2.0
BuildRequires:  gtest-devel
BuildRequires:  qt5-qtbase-private-devel

%description
Qt platform theme integration plugins for DDE
 Multiple Qt plugins to provide better Qt5 integration for DDE is included.


%prep
%autosetup

%build
export PATH=$PATH:/usr/lib64/qt5/bin
mkdir build && cd build
%{_libdir}/qt5/bin/qmake ..
%{__make}

%install
pushd %{_builddir}/%{name}-%{version}/build
%make_install INSTALL_ROOT=%{buildroot}
popd

%files
/etc/xdg/autostart/dde-clipboard.desktop
%{_bindir}/%{name}
%{_bindir}/%{name}loader
%{_datadir}/dbus-1/services/com.deepin.dde.Clipboard.service
%{_datadir}/%{name}/translations/
%{_datadir}/applications/dde-clipboard.desktop


%changelog
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.3.16-1
- Update to 5.3.16

* Tue Feb 08 2022 liweigang <liweiganga@uniontech.com> - 5.3.0.3-2
- fix build error

* Wed Jul 07 2021 weidong <weidong@uniontech.com> - 5.3.0.3-1
- Update to 5.3.0.3

* Thu Sep 3 2020 weidong <weidong@uniontech.com> - 5.0.0.3-3
- fix source url in spec

* Fri Aug 28 2020 chenbo pan <panchenbo@uniontech.com> - 5.0.0.3-2
- fix compile fail

* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.0.0.3-1
- Package init

