libfm-qt/libfm-qt.spec
Michael Vetter 19c6a26977 - Update to 1.0.0:
* Added support for adding/removing of emblems with File Properties dialog.
  * Added mount, unmount and eject actions to file context menu under computer:/// or wherever possible.
  * Avoided a freeze on mounting encrypted volumes.
  * Workaround for a bug in GFileMonitor regarding folder symlinks.
  * Added "Empty Trash" action to Trash's folder menu.
  * Enabled Qt's alternating row colors for detailed list view.
  * Ensured a correct selection order with Shift+mouse in icon view.
  * Prevented self-overwriting in file prompt dialog.
  * Fixed Cyrillic case-insensitive regex search.
  * Enhancements and fixes to smooth scrolling from inside view.
  * Added an item to LXQt file dialog for showing hidden files.
  * Added an option to LXQt file dialog for disabling smooth scrolling (in list and compact modes).
  * Remember hidden columns of LXQt file dialog (in list mode).
  * Show the context menu of the current folder when the Menu key is pressed and there is no selection.
  * Fixed two small memory leaks.

OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/libfm-qt?expand=0&rev=35
2021-11-08 09:23:25 +00:00

131 lines
4.1 KiB
RPMSpec

#
# spec file for package libfm-qt
#
# 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: libfm-qt
Version: 1.0.0
Release: 0
Summary: Library providing components to build desktop file managers
License: LGPL-2.1-or-later AND BSD-3-Clause
Group: Development/Libraries/C and C++
URL: http://lxqt.org
Source: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
Source2: libfm-qt.keyring
BuildRequires: cmake >= 3.1.0
# Needs private headers, see xdndworkaround.cpp
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: libqt5-qttools-devel
BuildRequires: lxqt-build-tools-devel >= 0.10.0
BuildRequires: pkgconfig
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5Widgets) >= 5.15
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.15
BuildRequires: pkgconfig(Qt5Xdg)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.50.0
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libmenu-cache) >= 1.1.0
BuildRequires: pkgconfig(lxqt)
BuildRequires: pkgconfig(x11)
%description
libfm-qt is the Qt port of libfm, a library providing components to
build desktop file managers.
%{lang_package -r libfm-qt10}
%package -n libfm-qt10
Summary: Library providing components to build desktop file managers
# Require data files read by the library. For parallel installed library versions, the newest one wins
Group: System/Libraries
Requires: %{name}-data >= %{version}
Recommends: %{name}-lang
Conflicts: pcmanfm <= 0.10.0
Provides: libfm-qt
%description -n libfm-qt10
libfm-qt is the Qt port of libfm, a library providing components to
build desktop file managers.
%package data
Summary: Data files for libfm library
# libfm-qt6 wrongly shipped those files as part of the library package
# resulting in file conflicts when the soname changed
# No way to fix the old package, so we conflict it
Group: Development/Libraries/C and C++
Conflicts: libfm-qt6
%description data
Provides data to be read by libfm-qt
%package -n libfm-qt-devel
Summary: Development files for libfm-qt
Group: Development/Libraries/C and C++
Requires: libfm-qt10 >= %{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
%setup -q
%build
%cmake -DPULL_TRANSLATIONS=No
%make_build
%install
%cmake_install
%find_lang %{name} --with-qt
%post -n libfm-qt10 -p /sbin/ldconfig
%postun -n libfm-qt10 -p /sbin/ldconfig
%files -n libfm-qt10
%license LICENSE LICENSE.BSD-3-Clause
%doc README.md
%{_libdir}/libfm-qt.so.*
%files data
%dir %{_datadir}/libfm-qt/
%{_datadir}/libfm-qt/archivers.list
%{_datadir}/libfm-qt/terminals.list
%{_datadir}/mime/packages/libfm-qt-mimetypes.xml
%files -n libfm-qt-devel
%doc %{_datadir}/cmake/fm-qt
%{_includedir}/libfm-qt/
%{_libdir}/libfm-qt.so
%{_libdir}/pkgconfig/libfm-qt.pc
%{_datadir}/cmake/fm-qt/fm-qt-config-version.cmake
%{_datadir}/cmake/fm-qt/fm-qt-config.cmake
%{_datadir}/cmake/fm-qt/fm-qt-targets-*.cmake
%{_datadir}/cmake/fm-qt/fm-qt-targets.cmake
%files lang -f %{name}.lang
%dir %{_datadir}/libfm-qt
%dir %{_datadir}/libfm-qt/translations
%{_datadir}/libfm-qt/translations/*
%changelog