]> git.pld-linux.org Git - packages/php4-pecl-tidy.git/blame - php4-pecl-tidy.spec
- use %php4_webserver_restart; unify
[packages/php4-pecl-tidy.git] / php4-pecl-tidy.spec
CommitLineData
da256b06
ER
1%define _modname tidy
2%define _status stable
3%define _sysconfdir /etc/php4
4%define extensionsdir %(php-config --extension-dir 2>/dev/null)
da256b06 5Summary: %{_modname} - Tidy HTML Repairing and Parsing
546b1d0b 6Summary(pl.UTF-8): %{_modname} - Czyszczenie, naprawa oraz parsowanie HTML
da256b06 7Name: php4-pecl-%{_modname}
fdb3ab97 8Version: 1.2
15a9c3ff 9Release: 3
da256b06
ER
10License: PHP
11Group: Development/Languages/PHP
12Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
fdb3ab97 13# Source0-md5: 8c1c92d9386c56d483b1115d207c0293
da256b06 14URL: http://pecl.php.net/package/tidy/
da256b06 15BuildRequires: php4-devel
6d348838 16BuildRequires: rpmbuild(macros) >= 1.344
991527ca 17BuildRequires: tidy-devel
6d348838 18Requires: php4-common >= 3:4.4.0-3
15a9c3ff 19Provides: php(tidy)
da256b06 20Obsoletes: php-pear-%{_modname}
6d348838 21%{?requires_php_extension}
da256b06
ER
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Tidy is a binding for the Tidy HTML clean and repair utility which
26allows you to not only clean and otherwise manipluate HTML documents,
27but also traverse the document tree using the Zend Engine 2 OO
28semantics.
29
30In PECL status of this package is: %{_status}.
31
845ddaf0
JR
32%description -l pl.UTF-8
33Tidy jest dowiązaniem do narzędzia "Tidy HTML clean and repair", które
34pozwala nie tylko na czyszczenie oraz manipulację dokumentami HTML,
35ale także na przemierzanie przez strukturę dokumentu za pomocą
991527ca 36zorientowanej obiektowo semantyki silnika Zend Engine 2.
da256b06
ER
37
38To rozszerzenie ma w PECL status: %{_status}.
39
40%prep
41%setup -q -c
42
43%build
44cd %{_modname}-%{version}
45phpize
46%configure
47%{__make}
48
49%install
50rm -rf $RPM_BUILD_ROOT
51
52install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
53
82a5628f 54%{__make} -C %{_modname}-%{version} install \
da256b06
ER
55 INSTALL_ROOT=$RPM_BUILD_ROOT
56
57cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
58; Enable %{_modname} extension module
59extension=%{_modname}.so
60EOF
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post
6d348838 66%php4_webserver_restart
da256b06
ER
67
68%postun
69if [ "$1" = 0 ]; then
6d348838 70 %php4_webserver_restart
da256b06
ER
71fi
72
73%files
74%defattr(644,root,root,755)
94a41b80 75%doc %{_modname}-%{version}/{CREDITS,TODO,README}
991527ca 76%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
da256b06 77%attr(755,root,root) %{extensionsdir}/%{_modname}.so
This page took 0.1159 seconds and 4 git commands to generate.