]> git.pld-linux.org Git - packages/php4-pecl-tidy.git/commitdiff
- based on php-pecl-tidy.spec
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 28 Aug 2005 23:39:28 +0000 (23:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php4-pecl-tidy.spec -> 1.1

php4-pecl-tidy.spec [new file with mode: 0644]

diff --git a/php4-pecl-tidy.spec b/php4-pecl-tidy.spec
new file mode 100644 (file)
index 0000000..25f57c1
--- /dev/null
@@ -0,0 +1,80 @@
+%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
This page took 0.151454 seconds and 4 git commands to generate.