File libfm-qt6.spec of Package libfm-qt
#
# spec file for package libfm-qt6
#
# Copyright (c) 2023 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 _ver 17
%define _name libfm-qt
Name: libfm-qt6
Version: @SERVICE@
Release: 0
Summary: Core library of PCManFM-Qt (Qt binding for libfm)
License: LGPL-2.1-or-later AND BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://lxqt.github.io
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake >= 3.18.0
BuildRequires: gcc-c++
BuildRequires: cmake(lxqt2-build-tools)
BuildRequires: pkgconfig
BuildRequires: qt6-gui-private-devel
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Widgets) >= 6.6.0
BuildRequires: cmake(lxqt-menu-data)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.50.0
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libmenu-cache) >= 1.1.0
BuildRequires: pkgconfig(xcb)
%description
Libfm-Qt is a companion library providing components to build desktop file managers
%lang_package -n %{name}-%{_ver}
%package -n %{name}-%{_ver}
Summary: Libfm-qt libraries
Group: System/Libraries
Requires: %{name}-data = %{version}-%{release}
Recommends: %{name}-%{_ver}-lang = %{version}-%{release}
Provides: %{_name}
%description -n %{name}-%{_ver}
Libfm-Qt is a companion library providing components to build desktop file managers
%package data
Summary: Data files for libfm library
Group: Development/Libraries/C and C++
BuildArch: noarch
%description data
Provides data to be read by libfm-qt
%package devel
Summary: Development files for libfm-qt
Group: Development/Libraries/C and C++
Requires: %{name}-%{_ver} = %{version}-%{release}
%description devel
Libfm-Qt libraries for development
%prep
%autosetup
%build
%cmake_qt6
%{qt6_build}
%install
%{qt6_install}
%find_lang %{_name} %{name}.lang --with-qt
%ldconfig_scriptlets -n %{name}-%{_ver}
%files -n %{name}-%{_ver}
%doc AUTHORS CHANGELOG README.md
%{_libdir}/%{name}.so.*
%license LICENSE
%files data
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/archivers.list
%{_datadir}/%{name}/terminals.list
%{_datadir}/mime/packages/%{name}-mimetypes.xml
%files devel
%dir %{_datadir}/cmake/fm-qt6
%{_includedir}/%{name}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/cmake/fm-qt6/fm-qt6-config-version.cmake
%{_datadir}/cmake/fm-qt6/fm-qt6-config.cmake
%{_datadir}/cmake/fm-qt6/fm-qt6-targets-*.cmake
%{_datadir}/cmake/fm-qt6/fm-qt6-targets.cmake
%license LICENSE.BSD-3-Clause
%files -n %{name}-%{_ver}-lang -f %{name}.lang
%dir %{_datadir}/%{name}/translations/
%if 0%{?sle_version}
%{_datadir}/%{name}/translations/%{_name}_???.qm
%endif
%changelog