]> git.pld-linux.org Git - packages/php-pecl-idn.git/blame - php-pecl-idn.spec
- drop obsoletes that never existed, modernize spec
[packages/php-pecl-idn.git] / php-pecl-idn.spec
CommitLineData
c6b4c83b
ER
1%define modname idn
2%define status beta
3Summary: %{modname} - binding to the GNU libidn
4Summary(pl.UTF-8): %{modname} - wiązanie do GNU libidn
40224e8c
ER
5Name: php-pecl-idn
6Version: 0.2.0
c6b4c83b 7Release: 2
40224e8c
ER
8License: PHP 3.0
9Group: Development/Languages/PHP
c6b4c83b 10Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
40224e8c
ER
11# Source0-md5: f42dadf9b15bfc897458ff8735f05f78
12URL: http://pecl.php.net/package/idn/
13BuildRequires: libidn-devel
14BuildRequires: php-devel >= 3:5.0.0
15BuildRequires: rpmbuild(macros) >= 1.344
16%{?requires_php_extension}
17Requires: php-common >= 4:5.0.4
40224e8c
ER
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Binding to the GNU libidn for using Internationalized Domain Names.
22
c6b4c83b 23In PECL status of this package is: %{status}.
40224e8c
ER
24
25%description -l pl.UTF-8
26Wiązanie do GNU libidn do używania umiędzynarodowionych nazw domen
27(Internationalized Domain Names).
28
c6b4c83b 29To rozszerzenie ma w PECL status: %{status}.
40224e8c
ER
30
31%prep
c6b4c83b
ER
32%setup -qc
33mv %{modname}-%{version}/* .
40224e8c
ER
34
35%build
40224e8c
ER
36phpize
37%configure
38%{__make}
39
40%install
41rm -rf $RPM_BUILD_ROOT
c6b4c83b 42install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
40224e8c 43
c6b4c83b
ER
44%{__make} install \
45 EXTENSION_DIR=%{php_extensiondir} \
46 INSTALL_ROOT=$RPM_BUILD_ROOT
47cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
48; Enable %{modname} extension module
49extension=%{modname}.so
40224e8c
ER
50EOF
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
56%php_webserver_restart
57
58%postun
59if [ "$1" = 0 ]; then
60 %php_webserver_restart
61fi
62
63%files
64%defattr(644,root,root,755)
c6b4c83b
ER
65%doc CREDITS
66%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
67%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.108612 seconds and 4 git commands to generate.