File filezilla-server.spec of Package filezilla-server
#
# spec file for package filezilla-server
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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: filezilla-server
Version: 1.8.1
Release: 0
Summary: A simple FTP and FTPS (FTP over TLS) Server
License: GPL-3.0-only
Group: Productivity/Networking/Ftp/Servers
URL: https://filezilla-project.org/
#SVN-checkout: https://svn.filezilla-project.org/svn/FileZilla%20Server/trunk
Source: https://download.filezilla-project.org/server/FileZilla_Server_%{version}_src.tar.xz
Source1: filezilla-server.service
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-3_2-devel
BuildRequires: pkgconfig(libfilezilla) >= 0.45.0
BuildRequires: pkgconfig(pugixml) >= 1.9
%description
A simple FTP and FTPS (FTP over TLS) Server.
%package gui
Summary: FileZilla Server Administration Interface
Group: Hardware/Mobile
%description gui
A simple FTP and FTPS (FTP over TLS) Server.
This subpackage contains the FileZilla Server Administration Interface that
allows you to change server settings, manage users and groups and monitor
sessions and data flows.
%prep
%setup -q
%build
%configure
%make_build
%install
%make_install
rm -Rf %{buildroot}%{_datadir}/icons/hicolor/20x20
install -dm 0755 %{buildroot}%{_sysconfdir}/filezilla-server
install -Dm 0644 %{SOURCE1} %{buildroot}%{_unitdir}/filezilla-server.service
%suse_update_desktop_file -c %{name}-gui %{name}-gui "FileZilla Server Administration" %{name}-gui %{name}-gui Network FileTransfer
%pre
%service_add_pre %{name}.service
%preun
%service_del_preun %{name}.service
%post
%service_add_post %{name}.service
%postun
%service_del_postun %{name}.service
%files
%license COPYING
%doc NEWS
%dir %{_sysconfdir}/filezilla-server
%{_bindir}/filezilla-server
%{_bindir}/filezilla-server-config-converter
%{_bindir}/filezilla-server-crypt
%{_bindir}/filezilla-server-impersonator
%{_unitdir}/filezilla-server.service
%files gui
%{_bindir}/filezilla-server-gui
%{_datadir}/icons/hicolor/*/apps/filezilla-server-gui.*??g
%{_datadir}/applications/filezilla-server-gui.desktop
%changelog