SPECS: php-pecl-htscanner.spec - merged changes from php-htscanner...

adamg adamg at pld-linux.org
Sun Sep 2 00:20:11 CEST 2007


Author: adamg                        Date: Sat Sep  1 22:20:11 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- merged changes from php-htscanner.spec

---- Files affected:
SPECS:
   php-pecl-htscanner.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/php-pecl-htscanner.spec
diff -u SPECS/php-pecl-htscanner.spec:1.4 SPECS/php-pecl-htscanner.spec:1.5
--- SPECS/php-pecl-htscanner.spec:1.4	Mon Feb 12 23:09:12 2007
+++ SPECS/php-pecl-htscanner.spec	Sun Sep  2 00:20:06 2007
@@ -1,57 +1,75 @@
 # $Revision$, $Date$
 %define		_modname	htscanner
 %define		_status		alpha
-
-Summary:	%{_modname} - htaccess support for PHP
-Summary(pl.UTF-8):	%{_modname} - obsługa htaccess dla PHP
-Name:		php-pecl-%{_modname}
-Version:	0.6.2
-Release:	1
-License:	PHP 2.02
+Summary:	PHP Module to emulate .htaccess support in PHP engine
+Summary(pl.UTF-8):	Moduł PHP do emulacji obsługi .htaccess w silniku PHP
+Name:		php-htscanner
+Version:	0.8.1
+Release:	0.1
+License:	PHP 3.0
 Group:		Development/Languages/PHP
-Source0:	http://pecl.php.net/get/%{_modname}-%{version}.tgz
-# Source0-md5:	44e04cf7b396cbd48f7ccbe8e247a725
-URL:		http://pecl.php.net/package/htscanner/
-BuildRequires:	php-devel >= 3:5.0.0
+Source0:	http://pecl.php.net/get/htscanner-%{version}.tgz
+# Source0-md5:	8d3a4a63639c380b9268717a9a28dabe
+Patch0:		%{name}-whitespace.patch
+URL:		http://pecl.php.net/package/htscanner
+BuildRequires:	php-devel >= 3:5.0
 BuildRequires:	rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
 Requires:	php-common >= 4:5.0.4
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Allow one to use htaccess-like file to configure PHP per directory,
-just like Apache's htaccess. It is especially useful with fastcgi.
+When using a CGI version of PHP (plain old CGI or Fast-CGI) Apache
+can't pass any PHP settings from htaccess files it parses. This can be
+solved by giving each user it's own php.ini file, but I didn't like
+that solution.
+
+This extension parses these configuration files (in most cases
+.htaccess) and changes the settings. It will search all directories
+for a configuration file from the docroot until the directory where
+the request scripts is found.
 
 In PECL status of this extension is: %{_status}.
 
 %description -l pl.UTF-8
-Pakiet ten pozwala na wykorzystanie plików w stylu htaccess do
-konfiguracji PHP per katalog, w sposób podobny do plików htaccess
-Apache'a. Jest to szczególnie przydatne w przypadku korzystania z
-fastcgi.
+Przy używaniu PHP w wersji CGI (zwykłej CGI lub Fast-CGI) Apache nie
+może przekazać ustawień PHP z plików htaccess. Można to rozwiązać
+dając każdemu użytkownikowi własny plik php.ini, ale nie wszystkim to
+rozwiązanie odpowiada.
+
+To rozszerzenie analizuje wspomniane pliki konfiguracyjne (w
+większości przypadków .htaccess) i zmienia ustawienia. Szuka pliku
+konfiguracyjnego we kwszystkich katalogach od głównego (DocumentRoot)
+co katalogu zawierającego żadane skrypty.
 
 To rozszerzenie ma w PECL status: %{_status}.
 
 %prep
-%setup -q -c
+%setup -q -n htscanner-%{version}
+
+# whitespace parsing fix
+%patch0 -p1
 
 %build
-cd %{_modname}-%{version}
 phpize
-%configure
+%configure \
+	--enable-htscanner
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-
 %{__make} install \
-	-C %{_modname}-%{version} \
-	INSTALL_ROOT=$RPM_BUILD_ROOT \
-	EXTENSION_DIR=%{php_extensiondir}
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
 ; Enable %{_modname} extension module
 extension=%{_modname}.so
+
+;htscanner.config_file		= .htaccess
+;htscanner.default_docroot	= /
+;htscanner.default_ttl		= 300
+;htscanner.stop_on_error	= 0
 EOF
 
 %clean
@@ -67,7 +85,7 @@
 
 %files
 %defattr(644,root,root,755)
-%doc %{_modname}-%{version}/README
+%doc CREDITS README
 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so
 
@@ -77,6 +95,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2007/09/01 22:20:06  adamg
+- merged changes from php-htscanner.spec
+
 Revision 1.4  2007/02/12 22:09:12  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pecl-htscanner.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list