]> git.pld-linux.org Git - packages/GeoIP-db-City.git/blob - GeoIP-db-City.spec
up to 2013.08.07
[packages/GeoIP-db-City.git] / GeoIP-db-City.spec
1 Summary:        GeoLite City - City database for GeoIP
2 Summary(pl.UTF-8):      GeoLite City - baza danych miast dla GeoIP
3 Name:           GeoIP-db-City
4 # Updated every month:
5 Version:        2013.08.07
6 Release:        1
7 License:        OPEN DATA LICENSE (see LICENSE.txt)
8 Group:          Applications/Databases
9 Source0:        http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
10 # Source0-md5:  efc5986cf807e2be857c39a5753bae9d
11 Source1:        http://www.maxmind.com/download/geoip/database/LICENSE.txt
12 # Source1-md5:  a1381bd1aa0a0c91dc31b3f1e847cf4a
13 URL:            http://www.maxmind.com/app/geolitecity
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Determine country, state/region, city, US postal code, US area code,
19 metro code, latitude, and longitude information for IP addresses
20 worldwide.
21
22 License disclaimer: this product includes GeoLite data created by
23 MaxMind, available from <http://www.maxmind.com/>.
24
25 %description -l pl.UTF-8
26 Znajdź państwo, stan/region, miasto, kod pocztowy, kod regionu, kod
27 miejski, szerokość i wysokość geograficzną dla adresów IP z całego
28 świata.
29
30 Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone
31 przez MaxWind, dostępne z <http://www.maxwind.com/>.
32
33 %prep
34 %setup -qcT
35 cp -p %{SOURCE0} .
36 cp -p %{SOURCE1} .
37
38 gunzip GeoLiteCity.dat.gz
39
40 ver=$(TZ=GMT stat -c '%y' GeoLiteCity.dat | awk '{print $1}' | tr - .)
41 if [ "$ver" != %{version} ]; then
42         exit 1
43 fi
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
48 cp -p GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
49 ln -s GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIPCity.dat
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc *.txt
57 %{_datadir}/GeoIP/*.dat
This page took 0.081991 seconds and 3 git commands to generate.