]>
Commit | Line | Data |
---|---|---|
4b10347f | 1 | Summary: geotool - convert IP adress to country name using GeoIP |
8c957137 | 2 | Summary(pl.UTF-8): geotool - zamiana adresu IP na nazwę kraju przy użyciu GeoIP |
c008f965 | 3 | Name: geotool |
4 | Version: 0.9.1 | |
92a68ea0 | 5 | Release: 2 |
c008f965 | 6 | License: GPL |
7 | Group: Applications/Text | |
8 | Source0: http://download.berlios.de/rsstool/%{name}-%{version}-src.tar.gz | |
9 | # Source0-md5: abe22863b4ba5061683cd3db660a82d8 | |
41a74ebf | 10 | Patch0: %{name}-lib64.patch |
92a68ea0 ER |
11 | Patch1: %{name}-dbpath.patch |
12 | Patch2: %{name}-optflags.patch | |
f318bdd9 | 13 | URL: http://rsstool.y7.ath.cx/ |
c008f965 | 14 | BuildRequires: GeoIP-devel |
15 | Requires: GeoIP | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | geotool inserts countries into the output of numerous command line | |
20 | network tools, and reverses GeoIP.dat into a list of countries with | |
4b10347f | 21 | their IP ranges (guarding.p2p). |
c008f965 | 22 | |
9b3800fd JR |
23 | %description -l pl.UTF-8 |
24 | geotool wstawia nazwy krajów w wyjście wielu narzędzi sieciowych | |
25 | działających z linii poleceń oraz potrafi zamienić GeoIP.dat na listę | |
26 | krajów wraz z ich zakresami IP (guarding.p2p). | |
c008f965 | 27 | |
28 | %prep | |
29 | %setup -q -n %{name}-%{version}-src | |
41a74ebf | 30 | %patch0 -p1 |
92a68ea0 ER |
31 | %patch1 -p1 |
32 | %patch2 -p1 | |
c008f965 | 33 | |
34 | %build | |
35 | cd src | |
36 | %configure | |
92a68ea0 ER |
37 | %{__make} \ |
38 | CC="%{__cc}" \ | |
39 | CFLAGS="%{rpmcflags}" \ | |
40 | LDFLAGS="%{rpmldflags}" | |
c008f965 | 41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -D src/geotool $RPM_BUILD_ROOT%{_bindir}/%{name} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc changes.html readme.html | |
52 | %attr(755,root,root) %{_bindir}/* |