%bcond_without samba # without samba passwords support
%bcond_without squid # without squid passwords support
-#TODO
+# TODO
# - move cgi binary to /usr/share/changepassword
# - write changepassword.conf for apache redirection + execution
# - get sources for libdes and compile then instead of using
# Source0-md5: 7449a80c65db2e37c0aa3bb709926127
Source1: pldlogo.png
URL: http://changepassword.sourceforge.net/
-Requires: apache
+Requires: webserver = apache
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _cgidir /home/services/httpd/cgi-bin
--enable-logo=pldlogo.png \
--enable-smbpasswd=%{_sysconfdir}/smbpasswd \
--enable-squidpasswd=%{_sysconfdir}/squid/passwd \
-%if %{without samba}
+%if !%{with samba}
--disable-smbpasswd \
%endif
-%if %{without squid}
+%if !%{with squid}
--disable-squidpasswd
%endif
%doc BUGS CHANGELOG README TODO
%lang(pt_BR) %doc README.brazilian
%attr(755,root,root) %{_cgidir}/changepassword.cgi
-%attr(644,root,root) /home/services/httpd/html/pldlogo.png
+/home/services/httpd/html/pldlogo.png