File liri-fluid.spec of Package liri-fluid

#
# spec file for package liri-fluid
#
# 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:           liri-fluid
Version:        @SERVICE@
Release:        0
Summary:        Library for QtQuick apps with Material Design
License:        GFDL-1.3-only AND MPL-2.0
Group:          Development/Tools/Other
URL:            https://github.com/lirios/fluid
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  liri-cmake-shared
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5QuickControls2)
BuildRequires:  pkgconfig(Qt5QuickTest)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5WaylandClient)
%requires_eq    libQt5Svg5

%description
Fluid is a collection of cross-platform QtQuick components for building
fluid and dynamic applications, using the Material Design guidelines.

%prep
%autosetup

%build
%cmake \
    -DINSTALL_QMLDIR=%{_libqt5_archdatadir}/qml \
    -DFLUID_USE_SYSTEM_LCS:BOOL=ON \
    -DFLUID_WITH_DOCUMENTATION:BOOL=OFF \
    -DFLUID_WITH_DEMO:BOOL=OFF \
    -DFLUID_WITH_QML_MODULES:BOOL=ON \
    -DFLUID_INSTALL_ICONS:BOOL=ON \
    -DFLUID_ENABLE_QTQUICK_COMPILER:BOOL=OFF
%make_build

%install
%cmake_install
%fdupes -s %{buildroot}%{_libqt5_archdatadir}/qml/Fluid/Controls/icons/

%files
%doc README.md
%dir %{_libqt5_archdatadir}/qml
%dir %{_libqt5_archdatadir}/qml/Fluid
%{_libqt5_archdatadir}/qml/Fluid/Controls/
%{_libqt5_archdatadir}/qml/Fluid/Core/
%{_libqt5_archdatadir}/qml/Fluid/Effects/
%{_libqt5_archdatadir}/qml/Fluid/Layouts/
%{_libqt5_archdatadir}/qml/Fluid/Templates/
%license LICENSE.FDL LICENSE.MPL2

%changelog
openSUSE Build Service is sponsored by