geoip/geoip.spec

changeset 750
0e7016e69724
parent 153
b9de35d46e4e
child 787
f0da6998c61a
equal deleted inserted replaced
1:b88d5b2d91a0 2:4863cbdce565
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_api_c 1.4.6 25 %define V_api_c 1.4.8
26 %define V_api_pl 1.37 26 %define V_api_pl 1.40
27 27
28 # package information 28 # package information
29 Name: geoip 29 Name: geoip
30 Summary: Geographic IP Resolution 30 Summary: Geographic IP Resolution
31 URL: http://www.maxmind.com/app/ip-location 31 URL: http://www.maxmind.com/app/ip-location
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: PLUS 35 Class: PLUS
36 Group: Mapping 36 Group: Mapping
37 License: GPL 37 License: GPL
38 Version: %{V_api_c} 38 Version: %{V_api_c}
39 Release: 20090408 39 Release: 20120208
40 40
41 # package options 41 # package options
42 %option with_perl no 42 %option with_perl no
43 43
44 # list of sources 44 # list of sources
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

mercurial