File libfm-qt.spec of Package libfm-qt

#
# spec file for package libfm-qt
#
# Copyright (c) 2018 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           libfm-qt
Version:        1.4.0+git17.a82a682
Release:        0
Summary:        Library providing components to build desktop file managers
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://lxqt.org
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake >= 3.1.0
# Needs private headers, see xdndworkaround.cpp
BuildRequires:  qt6-gui-private-devel
BuildRequires:  qt6-tools-devel
BuildRequires:  pkgconfig
BuildRequires:  cmake(lxqt-menu-data)
BuildRequires:  cmake(lxqt2-build-tools) >= 0.13.0
BuildRequires:  cmake(KF6WindowSystem)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libexif)
BuildRequires:  pkgconfig(libmenu-cache)
BuildRequires:  pkgconfig(Qt6Xdg)
BuildRequires:  pkgconfig(x11)
Provides:       libfm-qt

%description
libfm-qt is the Qt port of libfm, a library providing components to
build desktop file managers.

%lang_package

%package -n %{name}-14
Summary:        Library providing components to build desktop file managers
Group:          System/Libraries
Recommends:     %{name}-lang
Conflicts:      pcmanfm <= 0.10.0

%description -n %{name}-14
libfm-qt is the Qt port of libfm, a library providing components to
build desktop file managers.

%package -n libfm-qt-devel
Summary:        Development files for libfm-qt
Group:          Development/Libraries/C and C++
Requires:       %{name}-14 >= %{version}
Requires:       pkgconfig
# libfm-qt has an -I on a path from menu-cache-devel
Requires:       pkgconfig(libmenu-cache) >= 0.4.0

%description -n libfm-qt-devel
Libfm-Qt libraries for development

%prep
%autosetup -p1

%build
%cmake_qt6
%{qt6_build}

%install
%{qt6_install}

%find_lang %{name} --with-qt

%post -n %{name}-14 -p /sbin/ldconfig
%postun -n %{name}-14 -p /sbin/ldconfig

%files -n %{name}-14
%license LICENSE
%doc README.md
%{_qt6_libdir}/%{name}6.so.*
%dir %{_datadir}/%{name}6
%{_datadir}/%{name}6/*.list
%{_datadir}/mime/packages/%{name}6*.xml

%files -n libfm-qt-devel
%dir %{_includedir}/%{name}6
%dir %{_datadir}/cmake/fm-qt6
%{_includedir}/%{name}6/*
%{_libdir}/%{name}6.so
%{_datadir}/cmake/fm-qt6/*.cmake
%{_libdir}/pkgconfig/*.pc

%files lang -f %{name}.lang
%dir %{_datadir}/%{name}6
%dir %{_datadir}/%{name}6/translations

%changelog
openSUSE Build Service is sponsored by