]> git.pld-linux.org Git - packages/GeoIP-db-Country.git/blob - GeoIP-db-Country.spec
up to 2014.02.05
[packages/GeoIP-db-Country.git] / GeoIP-db-Country.spec
1 Summary:        GeoLite Country - Country database for GeoIP
2 Summary(pl.UTF-8):      GeoLite Country - baza danych krajów dla GeoIP
3 Name:           GeoIP-db-Country
4 # Updated every month:
5 Version:        2014.02.05
6 Release:        1
7 License:        CC 3.0 BY-SA
8 Group:          Applications/Databases
9 Source0:        http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
10 # Source0-md5:  a551a8f2044c3e6e364c1aa82fe183b3
11 URL:            http://dev.maxmind.com/geoip/legacy/geolite/
12 Requires:       GeoIP-libs >= 1.4.5-2
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 GeoLite Country is similar to the GeoIP Country database, but is not
18 as accurate. Should you require greater accuracy, GeoIP Country is a
19 drop-in replacement for GeoLite Country.
20
21 License disclaimer: this product includes GeoLite data created by
22 MaxMind, available from <http://www.maxmind.com/>.
23
24 %description -l pl.UTF-8
25 GeoLite Country jest podobna do bazy danych GeoIP Country, ale nie
26 jest tak dokładna. Jeśli wymagana jest większa dokładność, GeoIP
27 Country jest zamiennikiem GeoLite Country.
28
29 Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone
30 przez MaxWind, dostępne z <http://www.maxwind.com/>.
31
32 %prep
33 %setup -qcT
34 cp -p %{SOURCE0} .
35
36 gunzip GeoIP.dat.gz
37
38 ver=$(TZ=GMT stat -c '%y' GeoIP.dat | awk '{print $1}' | tr - .)
39 if [ "$ver" != %{version} ]; then
40         exit 1
41 fi
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
46 cp -p GeoIP.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %{_datadir}/GeoIP/*.dat
This page took 0.031533 seconds and 4 git commands to generate.