* Documentation update * Fixed broken libGeoIP detection in CMakeLists.txt * Fix for IPv6 scope handling OBS-URL: https://build.opensuse.org/package/show/network:utilities/subnetcalc?expand=0&rev=24
91 lines
2.5 KiB
RPMSpec
91 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package subnetcalc
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: subnetcalc
|
|
Version: 2.6.5
|
|
Release: 0
|
|
Summary: IPv4/IPv6 Subnet Calculator
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Networking/Routing
|
|
URL: https://www.nntb.no/~dreibh/subnetcalc/
|
|
Source: https://github.com/dreibh/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
|
|
%description
|
|
SubNetCalc is an IPv4/IPv6 subnet address calculator. For a given IPv4 or IPv6
|
|
address and netmask or prefix length, it calculates network address, broadcast
|
|
address, maximum number of hosts and host address range. It also prints the
|
|
addresses in binary format for better understandability. Furthermore, it
|
|
prints information on specific address types (e.g. type, scope,
|
|
interface ID, etc.).
|
|
|
|
%lang_package
|
|
|
|
%package bash-completion
|
|
Summary: Bash Completion for %{name}
|
|
Group: System/Shells
|
|
Requires: bash-completion
|
|
Supplements: (%{name} and bash)
|
|
BuildArch: noarch
|
|
|
|
%description bash-completion
|
|
The bash completion script for %{name}, generated during the build.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Group: Documentation/HTML
|
|
Recommends: %{name} = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
SubNetCalc is an IPv4/IPv6 subnet address calculator.
|
|
This packages provides documentation and help files for subnetcalc.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{name}-%{version}
|
|
|
|
%build
|
|
%cmake
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%find_lang %{name}
|
|
|
|
%check
|
|
%{buildroot}%{_bindir}/%{name} 192.168.1.0/255.255.0.0
|
|
|
|
%files
|
|
%license COPYING
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%files bash-completion
|
|
%{_datadir}/bash-completion
|
|
|
|
%files lang -f %{name}.lang
|
|
%{_datadir}/locale/de/LC_MESSAGES/subnetcalc*
|
|
%{_datadir}/locale/nb/LC_MESSAGES/subnetcalc*
|
|
|
|
%files doc
|
|
%doc AUTHORS ChangeLog README.md
|
|
|
|
%changelog
|