]> git.pld-linux.org Git - packages/ipcalc.git/blob - ipcalc.spec
d39e1aec0321f6f9f3bc18bb034bccbc92d22aaa
[packages/ipcalc.git] / ipcalc.spec
1 Summary:        Address format change and calculation utility
2 Summary(pl.UTF-8):      Narzędzie do zmiany formatu i przeliczania adresów
3 Name:           ipcalc
4 Version:        1.0.1
5 Release:        1
6 License:        GPL v2+
7 Group:          Networking/Utilities
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
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
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
30 zrozumienia binarnej postaci.
31
32 %prep
33 %setup -q
34
35 %build
36 %meson build
37 %ninja_build -C build
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 %ninja_install -C build
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc README.md NEWS
49 %attr(755,root,root) %{_bindir}/ipcalc
50 %{_mandir}/man1/ipcalc.1*
This page took 0.046538 seconds and 2 git commands to generate.