]> git.pld-linux.org Git - packages/php4-pecl-tidy.git/blame - php4-pecl-tidy.spec
- tabs in preamble
[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
e1749d04 16BuildRequires: rpmbuild(macros) >= 1.322
991527ca 17BuildRequires: tidy-devel
65256cec 18%{?requires_php_extension}
82a5628f 19Requires: %{_sysconfdir}/conf.d
15a9c3ff 20Provides: php(tidy)
da256b06
ER
21Obsoletes: php-pear-%{_modname}
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
66[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
67[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
68
69%postun
70if [ "$1" = 0 ]; then
71 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
72 [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
73fi
74
75%files
76%defattr(644,root,root,755)
94a41b80 77%doc %{_modname}-%{version}/{CREDITS,TODO,README}
991527ca 78%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
da256b06 79%attr(755,root,root) %{extensionsdir}/%{_modname}.so
This page took 0.073297 seconds and 4 git commands to generate.