SPECS: php4-pecl-tidy.spec (NEW) - based on php-pecl-tidy.spec
glen
glen at pld-linux.org
Mon Aug 29 01:39:35 CEST 2005
Author: glen Date: Sun Aug 28 23:39:35 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- based on php-pecl-tidy.spec
---- Files affected:
SPECS:
php4-pecl-tidy.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/php4-pecl-tidy.spec
diff -u /dev/null SPECS/php4-pecl-tidy.spec:1.1
--- /dev/null Mon Aug 29 01:39:35 2005
+++ SPECS/php4-pecl-tidy.spec Mon Aug 29 01:39:28 2005
@@ -0,0 +1,91 @@
+# $Revision$, $Date$
+%define _modname tidy
+%define _status stable
+%define _sysconfdir /etc/php4
+%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: php4-pecl-%{_modname}
+Version: 1.1
+Release: 0.1
+License: PHP
+Group: Development/Languages/PHP
+Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
+# Source0-md5: ecb2d3c62e1d720265a65dfb7e00e081
+URL: http://pecl.php.net/package/tidy/
+BuildRequires: libtool
+BuildRequires: php4-devel
+BuildRequires: tidy-devel
+BuildRequires: rpmbuild(macros) >= 1.230
+Requires: %{_sysconfdir}/conf.d
+%requires_eq_to php4-common php4-devel
+Obsoletes: php-pear-%{_modname}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tidy is a binding for the Tidy HTML clean and repair utility which
+allows you to not only clean and otherwise manipluate HTML documents,
+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ą zorientowanej
+obiektowo semantyki silnika Zend Engine 2.
+
+To rozszerzenie ma w PECL status: %{_status}.
+
+%prep
+%setup -q -c
+
+%build
+cd %{_modname}-%{version}
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
+
+cd %{_modname}-%{version}
+%{__make} install \
+ INSTALL_ROOT=$RPM_BUILD_ROOT
+
+cat <<'EOF' > $RPM_BUILD_ROOT%{_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_php4.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+
+%postun
+if [ "$1" = 0 ]; then
+ [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
+ [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/%{_modname}.ini
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2005/08/28 23:39:28 glen
+- based on php-pecl-tidy.spec
+
================================================================
More information about the pld-cvs-commit
mailing list