47 Source2: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz |
47 Source2: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz |
48 |
48 |
49 # build information |
49 # build information |
50 Prefix: %{l_prefix} |
50 Prefix: %{l_prefix} |
51 BuildRoot: %{l_buildroot} |
51 BuildRoot: %{l_buildroot} |
52 BuildPreReq: OpenPKG, openpkg >= 20040130, zlib, gcc |
52 BuildPreReq: OpenPKG, openpkg >= 20060823, gcc |
53 PreReq: OpenPKG, openpkg >= 20040130, zlib |
53 PreReq: OpenPKG, openpkg >= 20060823 |
|
54 BuildPreReq: zlib |
|
55 PreReq: zlib |
|
56 %if "%{with_perl}" == "yes" |
|
57 BuildPreReq: perl, perl-openpkg |
|
58 PreReq: perl |
|
59 %endif |
54 AutoReq: no |
60 AutoReq: no |
55 AutoReqProv: no |
61 AutoReqProv: no |
56 |
62 |
57 %description |
63 %description |
58 GeoIP is a C library that enables the user to find the country |
64 GeoIP is a C library that enables the user to find the country |
95 CC="%{l_cc}" \ |
101 CC="%{l_cc}" \ |
96 CFLAGS="%{l_cflags -O}" \ |
102 CFLAGS="%{l_cflags -O}" \ |
97 CPPFLAGS="%{l_cppflags}" \ |
103 CPPFLAGS="%{l_cppflags}" \ |
98 LDFLAGS="%{l_ldflags}" \ |
104 LDFLAGS="%{l_ldflags}" \ |
99 LIBS="-lz" \ |
105 LIBS="-lz" \ |
100 GREP="grep" \ |
106 AUTOCONF="true" \ |
|
107 AUTOMAKE="true" \ |
|
108 AUTOHEADER="true" \ |
|
109 ACLOCAL="true" \ |
101 ./configure \ |
110 ./configure \ |
102 --cache-file=./config.cache \ |
111 --cache-file=./config.cache \ |
103 --prefix=%{l_prefix} \ |
112 --prefix=%{l_prefix} \ |
104 --sysconfdir=%{l_prefix}/etc/geoip \ |
113 --sysconfdir=%{l_prefix}/etc/geoip \ |
105 --mandir=$RPM_BUILD_ROOT%{l_prefix}/man \ |
114 --mandir=$RPM_BUILD_ROOT%{l_prefix}/man \ |
116 %install |
125 %install |
117 rm -rf $RPM_BUILD_ROOT |
126 rm -rf $RPM_BUILD_ROOT |
118 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix} \ |
127 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix} \ |
119 $RPM_BUILD_ROOT%{l_prefix}/man \ |
128 $RPM_BUILD_ROOT%{l_prefix}/man \ |
120 $RPM_BUILD_ROOT%{l_prefix}/man/man1 |
129 $RPM_BUILD_ROOT%{l_prefix}/man/man1 |
121 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
130 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" |
122 %{l_shtool} install -c -m 644 \ |
131 %{l_shtool} install -c -m 644 \ |
123 data/GeoLiteCity.dat $RPM_BUILD_ROOT%{l_prefix}/share/GeoIP |
132 data/GeoLiteCity.dat $RPM_BUILD_ROOT%{l_prefix}/share/GeoIP |
124 %if "%{with_perl}" == "yes" |
133 %if "%{with_perl}" == "yes" |
125 %{l_prefix}/bin/perl-openpkg -d Geo-IP-%{V_api_pl} install |
134 %{l_prefix}/bin/perl-openpkg -d Geo-IP-%{V_api_pl} install |
126 %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup |
135 %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup |