#
# Conditional build:
-%bcond_with extra # with additional, maybe useful, but unmaintained features
-%bcond_without ldap # disable LDAP auth
-%bcond_without mysql # disable MySQL auth but disables PAM auth
-%bcond_without pgsql # disable PostgreSQL support
-%bcond_without puredb # disable pure-db support
-%bcond_without tls # support SSL/TLS
+%bcond_with longusername # with username length = 128 (default 32)
+%bcond_with extra # with additional, maybe useful, but unmaintained features
+%bcond_without ldap # disable LDAP auth
+%bcond_without mysql # disable MySQL auth but disables PAM auth
+%bcond_without pgsql # disable PostgreSQL support
+%bcond_without puredb # disable pure-db support
+%bcond_without tls # support SSL/TLS
#
Summary: Small, fast and secure FTP server
Summary(pl): Ma³y, szybki i bezpieczny serwer FTP
# This patch is broken and changes default pureftpd behaviour
Patch1: %{name}-path_to_ssl_cert_in_config.patch
Patch2: %{name}-pure-pw_passwd.patch
+%{?with_longusername:Patch3: %{name}-userlength.patch}
URL: http://www.pureftpd.org/
BuildRequires: libcap-devel
%{?with_ldap:BuildRequires: openldap-devel}
%prep
%setup -q
%patch0 -p0
+%{?with_longusername:%patch3 -p1}
%{?with_extra:%patch1 -p1}
%{?with_extra:%patch2 -p1}