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