]> git.pld-linux.org Git - packages/php-pecl-geoip.git/blame - php-pecl-geoip.spec
- Licsen: PHP 3.0.1
[packages/php-pecl-geoip.git] / php-pecl-geoip.spec
CommitLineData
340a992b 1%define _modname geoip
61515c07 2%define _status status
340a992b 3Summary: %{_modname} - Map IP address to geographic places
69468aad 4Summary(pl.UTF-8): %{_modname} - odwzorowanie adresów IP w miejsca geograficzne
340a992b 5Name: php-pecl-%{_modname}
0ec27305
AG
6Version: 1.0.3
7Release: 1
c4605439 8License: PHP 3.0.1
340a992b
AG
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
0ec27305 11# Source0-md5: 7c534b67f4eb0fe38f0f0f46a8b2ab52
340a992b
AG
12URL: http://pecl.php.net/package/geoip/
13BuildRequires: GeoIP-devel
14BuildRequires: php-devel >= 3:5.0.0
1bc96849 15BuildRequires: rpmbuild(macros) >= 1.344
340a992b 16%{?requires_php_extension}
1bc96849 17Requires: php-common >= 4:5.0.4
340a992b
AG
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21This PHP extension allows you to find the location of an IP address -
22City, State, Country, Longitude, Latitude, and other information as
23all, such as ISP and connection type.
24
25In PECL status of this extension is: %{_status}.
26
726c40a9
JR
27%description -l pl.UTF-8
28To rozszerzenie pozwala na znalezienie miejsca, któremu odpowiada dany
29adres IP - miasto, stan, kraj, szerokość i długość geograficzna czy
30inne informacje, takie jak ISP czy typ połączenia.
340a992b 31
340a992b
AG
32To rozszerzenie ma w PECL status: %{_status}.
33
34%prep
35%setup -q -c
36
37%build
38cd %{_modname}-%{version}
39phpize
40%configure
41%{__make}
42
43%install
44rm -rf $RPM_BUILD_ROOT
1bc96849 45install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
340a992b
AG
46
47%{__make} install \
48 -C %{_modname}-%{version} \
49 INSTALL_ROOT=$RPM_BUILD_ROOT \
1bc96849
ER
50 EXTENSION_DIR=%{php_extensiondir}
51cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
340a992b
AG
52; Enable %{_modname} extension module
53extension=%{_modname}.so
54EOF
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%post
1bc96849 60%php_webserver_restart
340a992b
AG
61
62%postun
63if [ "$1" = 0 ]; then
1bc96849 64 %php_webserver_restart
340a992b
AG
65fi
66
67%files
68%defattr(644,root,root,755)
69%doc %{_modname}-%{version}/{README,ChangeLog}
1bc96849
ER
70%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
71%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.080296 seconds and 4 git commands to generate.