File dtkbluetooth.spec of Package dtkbluetooth

#
# spec file for package dtkbluetooth
#
# Copyright (c) 2022 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2022 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/
#

%define  sover  1

Name:           dtkbluetooth
Version:        1.0.1
Release:        0
Summary:        Development Tool Kit Bluetooth Module 
License:        LGPL-3.0+
Group:          System/GUI/Other
Url:            https://github.com/linuxdeepin/dtkbluetooth
Source0:        https://github.com/linuxdeepin/dtkbluetooth/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  gmock
BuildRequires:  gtest
BuildRequires:  pkgconfig(dtkcore)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Bluetooth)
BuildRequires:  pkgconfig(Qt5Xml)

%description
Development Tool Kit Bluetooth Module, Qt wrapper for BlueZ DBus API.

%package -n lib%{name}%{sover}
Summary:        Libraries for dtkbluetooth
Group:          System/Libraries
Recommends:     %{name}-lang

%description -n lib%{name}%{sover}
Development Tool Kit Bluetooth Module, Qt wrapper for BlueZ DBus API.

The package contains the Libraries for dtkbluetooth.

%package devel
Summary:        Development tools for dtkwidget
Group:          Development/Libraries/C and C++
Requires:       lib%{name}%{sover} = %{version}

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

%prep
%autosetup -p1

%build
%cmake
%cmake_build

%install
%cmake_install

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

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

%files -n lib%{name}%{sover}
%{_libdir}/lib%{name}.so.*

%files devel
%doc README.md README.zh_CN.md
%license LICENSE
%{_libdir}/lib%{name}.so
%dir %{_includedir}/dtk1
%{_includedir}/dtk1/DBluetooth
%{_libdir}/cmake/DtkBluetooth
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/qt5/mkspecs/modules/qt_lib_dtkbluetooth.pri

%changelog

openSUSE Build Service is sponsored by