File doublecmd-qt.spec of Package doublecmd-qt
Name: doublecmd-qt
Summary: Twin-panel (commander-style) file manager (Qt5)
Version: 1.1.27
Release: 1
URL: https://doublecmd.sourceforge.io
Source0: https://prdownloads.sourceforge.net/doublecmd/doublecmd-%{version}-src.tar.gz
License: GPL
Group: Applications/File
BuildRequires: fpc >= 3.2.0 fpc-src glib2-devel lazarus >= 2.2.0 gcc
%if 0%{?fedora_version} >= 35
BuildRequires: qt5pas >= 2.6
%else
BuildRequires: libQt5Pas1-devel
%endif
%if 0%{?fedora_version} || 0%{?rhel}
BuildRequires: dbus-devel bzip2-devel
%endif
%if 0%{?fedora_version} >= 32
BuildRequires: boost-regex
%endif
%if 0%{?fedora_version} >= 39
BuildRequires: lazarus-lcl-qt5
%endif
%if 0%{?suse_version}
BuildRequires: dbus-1-devel libbz2-devel polkit
%endif
Provides: doublecmd
Conflicts: doublecmd-gtk doublecmd-qt6
Provides: doublecmd-qt5 = 1.0.0
Obsoletes: doublecmd-qt5 < 1.0.0
BuildRoot: %{_tmppath}/doublecmd-%{version}-build
%define debug_package %{nil}
%description
Double Commander is a cross platform open source file manager with two panels side by side.
It is inspired by Total Commander and features some new ideas.
%prep
%setup -q -n doublecmd-%{version}
%build
./build.sh release qt5
%install
install/linux/install.sh --install-prefix=%{buildroot}
%clean
[ %{buildroot} != "/" ] && ( rm -rf %{buildroot} )
%files
%defattr(-,root,root)
%{_libdir}/doublecmd
%{_bindir}/doublecmd
%{_datadir}/doublecmd
%{_datadir}/man/man1/doublecmd.*
%{_datadir}/pixmaps/doublecmd.*
%{_datadir}/applications/doublecmd.desktop
%{_datadir}/icons/hicolor/scalable/apps/doublecmd.svg
%{_datadir}/polkit-1/actions/org.doublecmd.root.policy
%changelog
* Sun Jan 01 2017 - Alexander Koblov <Alexx2000@mail.ru> - 0.8.0
- Initial package, version 0.8.0