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