File liri-files.spec of Package liri-files
#
# spec file for package liri-files
#
# 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/
#
%define _name io.liri.Files
Name: liri-files
Version: @SERVICE@
Release: 0
Summary: File manager
License: GPL-3.0-or-later
Group: Productivity/File utilities
URL: https://github.com/lirios/files
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5QuickControls2)
BuildRequires: pkgconfig(taglib)
BuildRequires: update-desktop-files
BuildRequires: liri-cmake-shared
Requires: liri-fluid
Requires: qt5-qtgsettings
%description
File manager.
%lang_package
%prep
%autosetup
%build
%cmake \
-DINSTALL_QMLDIR=%{_libqt5_archdatadir}/qml
%cmake_build
%install
%cmake_install
#rm -rf %%{buildroot}%%{_datadir}/icons/hicolor/{1024x1024,2048x2048}
%find_lang %{name} --with-qt --all-name
%files
%doc AUTHORS.md README.md
%{_bindir}/%{name}
%{_datadir}/metainfo/%{_name}.appdata.xml
%{_datadir}/applications/%{_name}.desktop
#%%{_datadir}/icons/hicolor/*/apps/%%{_name}.??g
%dir %{_libqt5_archdatadir}/qml
%dir %{_libqt5_archdatadir}/qml/Liri
%dir %{_libqt5_archdatadir}/qml/Liri/Files
%dir %{_libqt5_archdatadir}/qml/Liri/Files/Archives
%{_libqt5_archdatadir}/qml/Liri/Files/Archives/qmldir
%{_libqt5_archdatadir}/qml/Liri/Files/Archives/libarchivesplugin.so
%dir %{_libqt5_archdatadir}/qml/Liri/Files/FolderListModel
%{_libqt5_archdatadir}/qml/Liri/Files/FolderListModel/qmldir
%{_libqt5_archdatadir}/qml/Liri/Files/FolderListModel/libfolderlistmodelplugin.so
%dir %{_libqt5_archdatadir}/qml/Liri/Files/PlacesModel
%{_libqt5_archdatadir}/qml/Liri/Files/PlacesModel/qmldir
%{_libqt5_archdatadir}/qml/Liri/Files/PlacesModel/libplacesmodelplugin.so
%license LICENSE.GPLv3
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations
%changelog