File Qt5Feedback.spec of Package libqt5-qtfeedback

# spec file for libQt5Feedback0
#
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.

%define _soname libQt5Feedback0
%define _sover 0

Name:           Qt5Feedback
Version:        5.0.0.beta1.32
Release:        0
License:        LGPL-3.0
Summary:        Qt5 Tactile Feedback
Url:            https://code.qt.io/cgit/qt/qtfeedback.git/
Source0:        qtfeedback-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  cmake(Qt5Quick)
BuildRequires:  cmake(Qt5Qml)
#BuildRequires:  cmake(Qt5Multimedia)
#Multimedia is broken right now
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Qt5 tactile feedback libraries. This enables
capabilities like vibrator feedback for virtual 
keyboards.

%package        devel
Summary:        Qt5 Tactile Feedback development packages
Requires:       %{_soname} = %{version}
%description    devel
Provides headers and configuration files for
the Qt5 Tactile Feedback library.

%package        -n %{_soname}
Summary:        Qt5 Tactile Feedback library
%description    -n %{_soname}
Qt5 tactile feedback libraries. This enables
capabilities like vibrator feedback for virtual 
keyboards.

%prep
%autosetup -n qtfeedback-%{version}
touch .git # To make sure syncqt is used

%build
%qmake5 CONFIG+=package multimedia_disabled=yes immersion_enabled=no meegotouchfeedback_enabled=no
%{__make} %{?_smp_mflags} VERBOSE=1

%install
%qmake5_install
%{__rm} -f %{buildroot}/%{_libdir}/*.la
%fdupes %{buildroot}

%ldconfig_scriptlets -n %{_soname}

%files devel
%license LICENSE* LGPL_EXCEPTION.txt
%{_libdir}/libQt5Feedback.so
%{_libdir}/libQt5Feedback.prl
%{_libdir}/pkgconfig/*
%{_includedir}/qt5/*
%{_prefix}/*/qt5/mkspecs/
%{_libdir}/cmake/

%files -n %{_soname}
%defattr(-,root,root,-)
%license LICENSE* LGPL_EXCEPTION.txt
%{_libdir}/libQt5Feedback.so.%{_sover}*
%{_libdir}/qt5/qml/
%changelog
openSUSE Build Service is sponsored by