]>
Commit | Line | Data |
---|---|---|
b45b36a9 | 1 | Summary: Address format change and calculation utility |
3e5c8a60 | 2 | Summary(pl.UTF-8): Narzędzie do zmiany formatu i przeliczania adresów |
b45b36a9 | 3 | Name: ipcalc |
b39835e0 | 4 | Version: 1.0.1 |
9aef360f | 5 | Release: 2 |
42db4d21 | 6 | License: GPL v2+ |
b45b36a9 | 7 | Group: Networking/Utilities |
b39835e0 KM |
8 | Source0: https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: d4ea985eff73bcaa49e85a81b12f544c | |
10 | URL: https://gitlab.com/ipcalc/ipcalc | |
11 | BuildRequires: libmaxminddb-devel | |
12 | BuildRequires: meson >= 0.49 | |
13 | BuildRequires: pkgconfig | |
14 | BuildRequires: ronn | |
15 | BuildRequires: rpmbuild(macros) >= 1.726 | |
b45b36a9 PG |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | ipcalc takes an IP address and netmask and calculates the resulting | |
20 | broadcast, network, Cisco wildcard mask, and host range. By giving a | |
21 | second netmask, you can design sub- and supernetworks. It is also | |
22 | intended to be a teaching tool and presents the results as | |
23 | easy-to-understand binary values. | |
24 | ||
d75831ee JR |
25 | %description -l pl.UTF-8 |
26 | ipcalc pobiera adres IP oraz maskę sieci i oblicza wynikający z nich | |
27 | adres sieci, broadcastu, maskę wildcard dla Cisco i zakres hostów. | |
28 | Podając drugą maskę, możesz projektować pod- i nadsieci. Program ten | |
29 | ma być także narzędziem do nauki i prezentuje wyniki w łatwej do | |
1f0d5395 JB |
30 | zrozumienia binarnej postaci. |
31 | ||
b45b36a9 | 32 | %prep |
0446eff9 | 33 | %setup -q |
b45b36a9 | 34 | |
b39835e0 KM |
35 | %build |
36 | %meson build | |
37 | %ninja_build -C build | |
38 | ||
b45b36a9 PG |
39 | %install |
40 | rm -rf $RPM_BUILD_ROOT | |
9aef360f JR |
41 | install -d $RPM_BUILD_ROOT/bin |
42 | ||
b39835e0 | 43 | %ninja_install -C build |
b45b36a9 | 44 | |
9aef360f JR |
45 | %{__mv} $RPM_BUILD_ROOT{%{_bindir},/bin}/ipcalc |
46 | ||
b45b36a9 PG |
47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
b39835e0 | 52 | %doc README.md NEWS |
9aef360f | 53 | %attr(755,root,root) /bin/ipcalc |
b39835e0 | 54 | %{_mandir}/man1/ipcalc.1* |