File qt5-qtudev.spec of Package qt5-qtudev

#
# spec file for package qt5-qtudev
#
# Copyright (c) 2021 SUSE LLC
#
# 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:           qt5-qtudev
Version:        @SERVICE@
Release:        0
Summary:        Qt-style wrapper around udev
License:        LGPL-3.0-or-later
Group:          Development/Libraries/C and C++
URL:            https://github.com/lirios/qtudev
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  liri-cmake-shared
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(umockdev-1.0)

%description
Qt Udev - Qt-style API to use udev.

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}-%{release}

%description devel
The package contains libraries and header files for developing applications
that use %{name}.

%prep
%autosetup

%build
%cmake
%cmake_build

%install
%cmake_install

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%doc AUTHORS.md README.md
%{_libdir}/libQt5Udev.so.*
%license LICENSE.LGPLv3

%files devel
%{_includedir}/Qt5Udev/
%{_libdir}/libQt5Udev.so
%{_libdir}/cmake/Qt5Udev/
%{_libdir}/pkgconfig/Qt5Udev.pc

%changelog
openSUSE Build Service is sponsored by