Package spacefm: Specfile

%define gtkver 2

Name: spacefm
Version: 1.0.6
Release: alt4
Summary: Multi-panel tabbed file and desktop manager
License: GPLv3+ and LGPLv3+
Group: File tools
Source0: %name-%version.tar
Source1: %name.conf
Source2: session
Patch0: spacefm-1.0.6-major-glibc228.patch
# Patch to compile with gcc10 -fno-common
Patch1: spacefm-1.0.6-gcc10-fno-common.patch

BuildRequires: intltool libgtk+%gtkver-devel libudev-devel

Requires: unzip zip
# Mount without root requirement.
Requires: udisks2

SpaceFM is a multi-panel tabbed file and desktop manager for GNU/Linux
with built-in VFS, udev-based device manager, customizable menu system
and bash integration. SpaceFM is popular among novice and power users
alike for its stability, speed, convenience and flexibility.

%patch -p1
%patch1 -p1

%configure \
  --with-preferable-sudo=%_bindir/xdg-su \
  --htmldir=%_docdir/%name-%version \
  --disable-video-thumbnails \

make DESTDIR=%buildroot install
install -Dp -m 0644 %SOURCE1 %buildroot/%_sysconfdir/%name/%name.conf
install -Dp -m 0644 %SOURCE2 %buildroot/%_sysconfdir/xdg/%name/session

%find_lang %name

%files -f %name.lang
%exclude %_bindir/%name-installer
%config(noreplace) %_sysconfdir/%name/%name.conf

* Thu Dec 10 2020 Anton Midyukov <> 1.0.6-alt4
- Fix build with gcc10 -fno-common

* Mon Nov 11 2019 Anton Midyukov <> 1.0.6-alt3
- Fix FTBFS with glibc >= 2.28

* Sun Sep 30 2018 Anton Midyukov <> 1.0.6-alt2
- Added support for zip archives

* Fri Apr 06 2018 Anton Midyukov <> 1.0.6-alt1
- New version 1.0.6 (Closes: 34754)

* Thu Apr 30 2015 Motsyo Gennadi <> 1.0.0-alt1
- build for ALT Linux