packages: php-pecl-tidy/php-pecl-tidy.spec - modernize .spec; utf8

glen glen at pld-linux.org
Thu Mar 1 21:10:26 CET 2012


Author: glen                         Date: Thu Mar  1 20:10:26 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- modernize .spec; utf8

---- Files affected:
packages/php-pecl-tidy:
   php-pecl-tidy.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: packages/php-pecl-tidy/php-pecl-tidy.spec
diff -u packages/php-pecl-tidy/php-pecl-tidy.spec:1.17 packages/php-pecl-tidy/php-pecl-tidy.spec:1.18
--- packages/php-pecl-tidy/php-pecl-tidy.spec:1.17	Thu Mar  1 21:06:29 2012
+++ packages/php-pecl-tidy/php-pecl-tidy.spec	Thu Mar  1 21:10:21 2012
@@ -1,24 +1,22 @@
 # $Revision$, $Date$
-%define		_modname	tidy
-%define		_status		stable
-%define		_sysconfdir	/etc/php
+%define		modname	tidy
+%define		php_sysconfdir	/etc/php
 %define		extensionsdir	%(php-config --extension-dir 2>/dev/null)
-Summary:	%{_modname} - Tidy HTML Repairing and Parsing
-Summary(pl):	%{_modname} - Czyszczenie, naprawa oraz parsowanie HTML
-Name:		php-pecl-%{_modname}
+Summary:	%{modname} - Tidy HTML Repairing and Parsing
+Summary(pl.UTF-8):	%{modname} - Czyszczenie, naprawa oraz parsowanie HTML
+Name:		php-pecl-%{modname}
 Version:	1.1
 Release:	4
 License:	PHP
 Group:		Development/Languages/PHP
-Source0:	http://pecl.php.net/get/%{_modname}-%{version}.tgz
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	ecb2d3c62e1d720265a65dfb7e00e081
 URL:		http://pecl.php.net/package/tidy/
-BuildRequires:	php-devel >= 3:5.0.0
-BuildRequires:	rpmbuild(macros) >= 1.254
+BuildRequires:	php-devel >= 4:5.0.4
+BuildRequires:	rpmbuild(macros) >= 1.519
 BuildRequires:	tidy-devel
 %{?requires_php_extension}
-Requires:	%{_sysconfdir}/conf.d
-Obsoletes:	php-pear-%{_modname}
+Obsoletes:	php-pear-%{modname}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -27,54 +25,48 @@
 but also traverse the document tree using the Zend Engine 2 OO
 semantics.
 
-In PECL status of this package is: %{_status}.
-
-%description -l pl
-Tidy jest dowi±zaniem do narzêdzia "Tidy HTML clean and repair", które
-pozwala nie tylko na czyszczenie oraz manipulacjê dokumentami HTML,
-ale tak¿e na przemierzanie przez strukturê dokumentu za pomoc±
+%description -l pl.UTF-8
+Tidy jest dowiązaniem do narzędzia "Tidy HTML clean and repair", które
+pozwala nie tylko na czyszczenie oraz manipulacjÄ™ dokumentami HTML,
+ale także na przemierzanie przez strukturę dokumentu za pomocą
 zorientowanej obiektowo semantyki silnika Zend Engine 2.
 
-To rozszerzenie ma w PECL status: %{_status}.
-
 %prep
-%setup -q -c
+%setup -qc
+mv %{modname}-%{version}/* .
 
 %build
-cd %{_modname}-%{version}
 phpize
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
-%{__make} -C %{_modname}-%{version} install \
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+%{__make} install \
+	EXTENSION_DIR=%{php_extensiondir} \
 	INSTALL_ROOT=$RPM_BUILD_ROOT
-cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
 EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+%php_webserver_restart
 
 %postun
 if [ "$1" = 0 ]; then
-	[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
-	[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+	%php_webserver_restart
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc %{_modname}-%{version}/{CREDITS,TODO,README}
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{extensionsdir}/%{_modname}.so
+%doc CREDITS TODO README
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{extensionsdir}/%{modname}.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -82,6 +74,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2012/03/01 20:10:21  glen
+- modernize .spec; utf8
+
 Revision 1.17  2012/03/01 20:06:29  glen
 - restore
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-tidy/php-pecl-tidy.spec?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list