1 | %define geoipupadte_ver 2.2.1 |
---|
2 | |
---|
3 | Name: GeoIP |
---|
4 | Summary: C library for country/city/organization to IP address or hostname mapping |
---|
5 | Summary(ja): 国/都市/組織と IP アドレス/ホスト名とのマッピングを取るための C ライブラリ |
---|
6 | Version: 1.6.7 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: GPLv2+ and LGPLv2+ |
---|
11 | URL: http://www.maxmind.com/app/c |
---|
12 | |
---|
13 | Source0: https://github.com/maxmind/geoip-api-c/releases/download/v%{version}/GeoIP-%{version}.tar.gz |
---|
14 | Source1: https://github.com/maxmind/geoipupdate/releases/download/v%{geoipupadte_ver}/geoipupdate-%{geoipupadte_ver}.tar.gz |
---|
15 | Source2: LICENSE.txt |
---|
16 | Source3: fetch-geoipdata-city.pl |
---|
17 | Source4: fetch-geoipdata.pl |
---|
18 | Source5: README.Fedora |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
21 | BuildRequires: curl-devel |
---|
22 | BuildRequires: zlib-devel |
---|
23 | Obsoletes: geoip < %{version}-%{release} |
---|
24 | Provides: geoip = %{version}-%{release} |
---|
25 | |
---|
26 | Vendor: Project Vine |
---|
27 | Distribution: Vine Linux |
---|
28 | Packager: tomop |
---|
29 | |
---|
30 | %description |
---|
31 | GeoIP is a C library that enables the user to find the country that any IP |
---|
32 | address or hostname originates from. It uses a file based database that is |
---|
33 | accurate as of March 2003. This database simply contains IP blocks as keys, and |
---|
34 | countries as values. This database should be more complete and accurate than |
---|
35 | using reverse DNS lookups. |
---|
36 | |
---|
37 | %package devel |
---|
38 | Summary: Development headers and libraries for GeoIP |
---|
39 | Summary(ja): GeoIP の開発用ヘッダファイル及びライブラリ |
---|
40 | Group: Development/Libraries |
---|
41 | Requires: %{name} = %{version}-%{release} |
---|
42 | Provides: geoip-devel = %{version}-%{release} |
---|
43 | Obsoletes: geoip-devel < %{version}-%{release} |
---|
44 | |
---|
45 | %description devel |
---|
46 | Development headers and libraries for building GeoIP-based applications |
---|
47 | |
---|
48 | %prep |
---|
49 | %setup -q -a 1 |
---|
50 | install -D -m644 %{SOURCE2} LICENSE.txt |
---|
51 | install -D -m644 %{SOURCE3} fetch-geoipdata-city.pl |
---|
52 | install -D -m644 %{SOURCE4} fetch-geoipdata.pl |
---|
53 | install -D -m644 %{SOURCE5} README.fedora |
---|
54 | |
---|
55 | %build |
---|
56 | autoreconf -ivf |
---|
57 | %configure --disable-static --disable-dependency-tracking |
---|
58 | make %{?_smp_mflags} |
---|
59 | |
---|
60 | pushd geoipupdate-%{geoipupadte_ver} |
---|
61 | ./bootstrap |
---|
62 | %configure |
---|
63 | make %{?_smp_mflags} |
---|
64 | popd |
---|
65 | |
---|
66 | %install |
---|
67 | rm -rf %{buildroot} |
---|
68 | make DESTDIR=%{buildroot} install |
---|
69 | |
---|
70 | # nix the stuff we don't need like .la files. |
---|
71 | rm -f %{buildroot}%{_libdir}/*.la |
---|
72 | |
---|
73 | mkdir -p %{buildroot}%{_datadir}/GeoIP |
---|
74 | |
---|
75 | |
---|
76 | pushd geoipupdate-%{geoipupadte_ver} |
---|
77 | make DESTDIR=%{buildroot} install |
---|
78 | popd |
---|
79 | |
---|
80 | mkdir -p geoipupdate |
---|
81 | cp -f geoipupdate-%{geoipupadte_ver}/{ChangeLog.md,LICENSE,README.*} ./geoipupdate/ |
---|
82 | |
---|
83 | %clean |
---|
84 | rm -rf %{buildroot} |
---|
85 | |
---|
86 | %post -p /sbin/ldconfig |
---|
87 | |
---|
88 | %postun -p /sbin/ldconfig |
---|
89 | |
---|
90 | %files |
---|
91 | %defattr(-,root,root,-) |
---|
92 | %doc AUTHORS COPYING ChangeLog NEWS.md README.* INSTALL LICENSE* geoipupdate |
---|
93 | %{_libdir}/libGeoIP.so.* |
---|
94 | %{_bindir}/geoiplookup6 |
---|
95 | %{_bindir}/geoiplookup |
---|
96 | %{_bindir}/geoipupdate |
---|
97 | %config(noreplace) %{_sysconfdir}/GeoIP.conf.default |
---|
98 | %config(noreplace) %{_sysconfdir}/GeoIP.conf |
---|
99 | %{_datadir}/GeoIP |
---|
100 | %{_mandir}/man1/geoiplookup.1* |
---|
101 | %{_mandir}/man1/geoiplookup6.1* |
---|
102 | %{_mandir}/man1/geoipupdate.1* |
---|
103 | %{_mandir}/man5/GeoIP.conf.5.* |
---|
104 | |
---|
105 | %files devel |
---|
106 | %defattr(-,root,root,-) |
---|
107 | %{_libdir}/pkgconfig/geoip.pc |
---|
108 | %{_includedir}/GeoIP.h |
---|
109 | %{_includedir}/GeoIPCity.h |
---|
110 | %{_libdir}/libGeoIP.so |
---|
111 | |
---|
112 | %changelog |
---|
113 | * Thu Nov 5 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.6.7-1 |
---|
114 | - new upstream release. |
---|
115 | - updated geoipupdate to 2.2.1. |
---|
116 | |
---|
117 | * Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.6.0-2 |
---|
118 | - added Japanese summary |
---|
119 | - moved main package to System Environment/Libraries |
---|
120 | |
---|
121 | * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.6.0-1 |
---|
122 | - new upstream release. |
---|
123 | |
---|
124 | * Mon Oct 08 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-3 |
---|
125 | - initial build for Vine Linux. |
---|
126 | |
---|
127 | * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2.1 |
---|
128 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
129 | |
---|
130 | * Tue Sep 6 2011 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 1.4.8-1.1 |
---|
131 | - Remove -ipv6 path |
---|
132 | - Bump to 1.4.8 release |
---|
133 | |
---|
134 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-0.2.20090931cvs |
---|
135 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
136 | |
---|
137 | * Mon Aug 31 2009 Matt Domsch <mdomsch@fedoraproject.org> - 1.4.7.0.1.20090931 |
---|
138 | - apply CVS HEAD 20090931 which includes IPv6 functions |
---|
139 | |
---|
140 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-2 |
---|
141 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
142 | |
---|
143 | * Sun Mar 08 2009 Michael Fleming <mfleming+rpm@enlartenment.com> - 1.4.6-1 |
---|
144 | - Add geoiplookup6 man page |
---|
145 | - Update to 1.4.6 |
---|
146 | |
---|
147 | * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-3 |
---|
148 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
149 | |
---|
150 | * Sat Nov 29 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.5-2 |
---|
151 | - Update to 1.4.5 |
---|
152 | - Fix database URL locations in Perl helper scripts |
---|
153 | |
---|
154 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-2 |
---|
155 | - Autorebuild for GCC 4.3 |
---|
156 | |
---|
157 | * Mon Jan 28 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.4-1 |
---|
158 | - New upstream release. |
---|
159 | |
---|
160 | * Wed Sep 5 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.3-1 |
---|
161 | - New upstream release. |
---|
162 | - Fix GeoIPCity fetcher script |
---|
163 | - Update License tag |
---|
164 | |
---|
165 | * Mon Feb 12 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.2-1 |
---|
166 | - New upstream release. |
---|
167 | |
---|
168 | * Mon Jan 8 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.1-2 |
---|
169 | - License is actually LGPL now. |
---|
170 | |
---|
171 | * Sun Jan 7 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.1-1 |
---|
172 | - New upstream release |
---|
173 | - Add fetch-geoipdata* scripts to pull free databases automatically if |
---|
174 | desired (bz #198137) |
---|
175 | - README.fedora added to briefly explain above. |
---|
176 | |
---|
177 | * Mon Nov 27 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.0-4 |
---|
178 | - Fix %%install scripts to satisfy newer mock builds |
---|
179 | |
---|
180 | * Sun Sep 3 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.0-3 |
---|
181 | - Upstream upgrade |
---|
182 | - Added LICENSE.txt file to %%doc, covering GeoIP country/city data license |
---|
183 | (bz #198137) |
---|
184 | |
---|
185 | * Mon May 15 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.17-1 |
---|
186 | - New upstream release (minor fixes) |
---|
187 | |
---|
188 | * Mon May 1 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.16-1 |
---|
189 | - New upstream release |
---|
190 | - Add INSTALL document to package. |
---|
191 | |
---|
192 | * Sat Feb 18 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-3 |
---|
193 | - Fix Obsoletes/Provides for old "geoip"-convention packages |
---|
194 | - Move .so symlinks to -devel where they should be |
---|
195 | |
---|
196 | * Fri Feb 10 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-2 |
---|
197 | - Remamed to match upstream tarball name |
---|
198 | - Removed static libraries |
---|
199 | - Added symlinks to packages |
---|
200 | - Mark config file noreplace |
---|
201 | |
---|
202 | * Sun Feb 5 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-1 |
---|
203 | - Initial review package for Extras |
---|