]> git.pld-linux.org Git - packages/ipcalc.git/blame - ipcalc.spec
- install to /bin as replacement for the program bundled with rc-scripts, rel 2
[packages/ipcalc.git] / ipcalc.spec
CommitLineData
b45b36a9 1Summary: Address format change and calculation utility
3e5c8a60 2Summary(pl.UTF-8): Narzędzie do zmiany formatu i przeliczania adresów
b45b36a9 3Name: ipcalc
b39835e0 4Version: 1.0.1
9aef360f 5Release: 2
42db4d21 6License: GPL v2+
b45b36a9 7Group: Networking/Utilities
b39835e0
KM
8Source0: https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/%{name}-%{version}.tar.bz2
9# Source0-md5: d4ea985eff73bcaa49e85a81b12f544c
10URL: https://gitlab.com/ipcalc/ipcalc
11BuildRequires: libmaxminddb-devel
12BuildRequires: meson >= 0.49
13BuildRequires: pkgconfig
14BuildRequires: ronn
15BuildRequires: rpmbuild(macros) >= 1.726
b45b36a9
PG
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19ipcalc takes an IP address and netmask and calculates the resulting
20broadcast, network, Cisco wildcard mask, and host range. By giving a
21second netmask, you can design sub- and supernetworks. It is also
22intended to be a teaching tool and presents the results as
23easy-to-understand binary values.
24
d75831ee
JR
25%description -l pl.UTF-8
26ipcalc pobiera adres IP oraz maskę sieci i oblicza wynikający z nich
27adres sieci, broadcastu, maskę wildcard dla Cisco i zakres hostów.
28Podając drugą maskę, możesz projektować pod- i nadsieci. Program ten
29ma być także narzędziem do nauki i prezentuje wyniki w łatwej do
1f0d5395
JB
30zrozumienia 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
40rm -rf $RPM_BUILD_ROOT
9aef360f
JR
41install -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
48rm -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*
This page took 0.060176 seconds and 4 git commands to generate.