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