]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.spec
- TODO updated,
[packages/apache.git] / apache.spec
index 401d2c3250ad7e5be836d30a674fb508a81eb86b..c45aec70584bbb90a859fdc0ccccb08807aeff4a 100644 (file)
@@ -15,6 +15,7 @@
 # - subpackages for MPMs
 # - check if all modules (*.so) are exactly the same for different MPMs
 # - install stage fails with distcc (make -jN)
+# - polish description and summary at package htpasswd
 #
 # Conditional build:
 %bcond_without ssl             # build without SSL support
@@ -34,7 +35,7 @@ Summary(ru):  
 Summary(tr):   Lider WWW tarayýcý
 Name:          apache
 Version:       2.0.53
-Release:       2
+Release:       3
 License:       Apache Group License
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
@@ -291,6 +292,7 @@ Summary(pl):        Modu
 Group:         Networking/Daemons
 Provides:      apache(mod_auth) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
+Requires:      htpasswd
 
 %description mod_auth
 This package contains mod_auth module. It provides for user
@@ -698,6 +700,31 @@ Caches a static list of files in memory.
 %description mod_file_cache -l pl
 Modu³ cache'uj±cy statyczn± listê plików w pamiêci.
 
+%package -n htpasswd-%{name}
+Summary:       Apache2 htpasswd utility
+Group:         Networking/Utilities
+Provides:      htpasswd
+Obsoletes:     htpasswd-apache1
+Obsoletes:     htpasswd-thttpd
+
+%description -n htpasswd-%{name}
+htpasswd from Apache2
+
+Usage:
+        htpasswd [-cmdpsD] passwordfile username
+        htpasswd -b[cmdpsD] passwordfile username password
+
+        htpasswd -n[mdps] username
+        htpasswd -nb[mdps] username password
+ -c  Create a new file.
+ -n  Don't update file; display results on stdout.
+ -m  Force MD5 encryption of the password.
+ -d  Force CRYPT encryption of the password (default).
+ -p  Do not encrypt the password (plaintext).
+ -s  Force SHA encryption of the password.
+ -b  Use the password from the command line rather than prompting for it.
+ -D  Delete the specified user.
+
 %prep
 %setup -q -n httpd-%{version}
 %patch0 -p1
@@ -925,6 +952,10 @@ find $RPM_BUILD_ROOT%{_datadir}/manual -type f \
        -name '*.xml' -o -name '*.xml.*' -o -name '*.html' \
        | xargs rm -f
 
+# htpasswd goes to %{_bindir}
+mv $RPM_BUILD_ROOT%{_sbindir}/htpasswd $RPM_BUILD_ROOT%{_bindir}/
+ln -sf %{_bindir}/htpasswd $RPM_BUILD_ROOT%{_sbindir}/
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -1578,8 +1609,6 @@ fi
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth.so
-%attr(755,root,root) %{_sbindir}/htpasswd
-%{_mandir}/man1/htpasswd.1*
 
 %files mod_auth_anon
 %defattr(644,root,root,755)
@@ -1713,3 +1742,9 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_vhost_alias.conf
+
+%files -n htpasswd-%{name}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/htpasswd
+%{_sbindir}/htpasswd
+%{_mandir}/man1/htpasswd.1*
This page took 0.187235 seconds and 4 git commands to generate.