- BuildRequire /usr/bin/ronn instead of rubygem(ronn): there are
alternatives around and the build does not care wich one is used. OBS-URL: https://build.opensuse.org/package/show/network:utilities/ipcalc?expand=0&rev=13
This commit is contained in:
commit
a0c60d04bc
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
BIN
ipcalc-1.0.3.tar.bz2
(Stored with Git LFS)
Normal file
BIN
ipcalc-1.0.3.tar.bz2
(Stored with Git LFS)
Normal file
Binary file not shown.
50
ipcalc-disable-network-tests.patch
Normal file
50
ipcalc-disable-network-tests.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
Index: ipcalc-1.0.0/tests/meson.build
|
||||||
|
===================================================================
|
||||||
|
--- ipcalc-1.0.0.orig/tests/meson.build
|
||||||
|
+++ ipcalc-1.0.0/tests/meson.build
|
||||||
|
@@ -64,14 +64,6 @@ test('RandomIPv6Explicit',
|
||||||
|
ipcalc.full_path() + ' -6 -r 24' + '|grep Address'
|
||||||
|
]
|
||||||
|
)
|
||||||
|
-test('HostnameIPv6Localhost',
|
||||||
|
- testrunner,
|
||||||
|
- args : [
|
||||||
|
- '--test-outfile',
|
||||||
|
- ipcalc.full_path() + ' -6 -o localhost',
|
||||||
|
- files('hostname-localhost-ipv6')
|
||||||
|
- ]
|
||||||
|
-)
|
||||||
|
test('HostnameIPv4Localhost',
|
||||||
|
testrunner,
|
||||||
|
args : [
|
||||||
|
@@ -88,30 +80,6 @@ test('HostnameIPv4LocalhostJson',
|
||||||
|
files('hostname-localhost-ipv4-json')
|
||||||
|
]
|
||||||
|
)
|
||||||
|
-test('IPIPv6Localhost',
|
||||||
|
- testrunner,
|
||||||
|
- args : [
|
||||||
|
- '--test-outfile',
|
||||||
|
- ipcalc.full_path() + ' -h ::1',
|
||||||
|
- files('ip-localhost-ipv6')
|
||||||
|
- ]
|
||||||
|
-)
|
||||||
|
-test('IPIPv4Localhost',
|
||||||
|
- testrunner,
|
||||||
|
- args : [
|
||||||
|
- '--test-outfile',
|
||||||
|
- ipcalc.full_path() + ' -h 127.0.0.1',
|
||||||
|
- files('ip-localhost-ipv4')
|
||||||
|
- ]
|
||||||
|
-)
|
||||||
|
-test('IPIPv4LocalhostJson',
|
||||||
|
- testrunner,
|
||||||
|
- args : [
|
||||||
|
- '--test-outfile',
|
||||||
|
- ipcalc.full_path() + ' -j -h 127.0.0.1',
|
||||||
|
- files('ip-localhost-ipv4-json')
|
||||||
|
- ]
|
||||||
|
-)
|
||||||
|
# --class-prefix tests
|
||||||
|
test('AssignClassPrefix12',
|
||||||
|
testrunner,
|
70
ipcalc.changes
Normal file
70
ipcalc.changes
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 23 15:07:05 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- BuildRequire /usr/bin/ronn instead of rubygem(ronn): there are
|
||||||
|
alternatives around and the build does not care wich one is used.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 27 15:11:20 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.0.3:
|
||||||
|
* When --no-decorate is given the default output will
|
||||||
|
* include no colors
|
||||||
|
* Correctly split networks with /31
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 2 20:43:13 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.0.2:
|
||||||
|
* Fix ULA prefix generator to use only defined ULA range
|
||||||
|
* Corrected manpage generation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 16 15:16:34 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.0.1:
|
||||||
|
- The application will now build even without ronn
|
||||||
|
- Improved JSON output on single host input
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 3 20:54:10 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 1.0.0:
|
||||||
|
* Manpage was converted to markdown.
|
||||||
|
- Switch to using meson for building; BuildRequires: meson >=
|
||||||
|
0.49.
|
||||||
|
- Addtional BuildRequires now needed: pkgconfig(libmaxminddb),
|
||||||
|
rubygem(ronn).
|
||||||
|
- Add ipcalc-disable-network-tests.patch: Disable tests requiring
|
||||||
|
network.
|
||||||
|
- Run tests as part of %check section.
|
||||||
|
- New upstream URL and Source URL.
|
||||||
|
- Drop patch patch-queue: no longer needed.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 4 10:07:35 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Cleanup spec file with spec-clenaer
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 26 22:24:37 UTC 2011 - lazy.kent@opensuse.org
|
||||||
|
|
||||||
|
- refreshed patch to fix build in openSUSE >= 11.3
|
||||||
|
- splitted off rpm changelog to changes
|
||||||
|
- corrected License tag
|
||||||
|
- added Authors
|
||||||
|
- formatted spec
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 18 00:00:00 UTC 2007 - guru@unixtech.be
|
||||||
|
|
||||||
|
- moved to openSUSE Build Service
|
||||||
|
- added minor patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 22 00:00:00 UTC 2006 - guru@unixtech.be
|
||||||
|
|
||||||
|
- new upstream version
|
||||||
|
- rewrote spec file
|
||||||
|
|
||||||
|
|
63
ipcalc.spec
Normal file
63
ipcalc.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
#
|
||||||
|
# spec file for package ipcalc
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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: ipcalc
|
||||||
|
Version: 1.0.3
|
||||||
|
Release: 0
|
||||||
|
Summary: IPv4/IPv6 tool assisting in network calculations on the command line
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: Productivity/Networking/System
|
||||||
|
URL: https://gitlab.com/ipcalc/ipcalc
|
||||||
|
Source0: https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
||||||
|
# PATCH-FEATURE-OPENSUSE ipcalc-disable-network-tests.patch badshah400@gmail.com -- Disable tests requiring network
|
||||||
|
Patch0: ipcalc-disable-network-tests.patch
|
||||||
|
BuildRequires: /usr/bin/ronn
|
||||||
|
BuildRequires: meson >= 0.49
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(libmaxminddb)
|
||||||
|
Conflicts: netcalc
|
||||||
|
|
||||||
|
%description
|
||||||
|
ipcalc is a modern tool to assist in network address calculations for IPv4 and
|
||||||
|
IPv6. It acts both as a tool to output human readable information about a
|
||||||
|
network or address, as well as a tool suitable to be used by scripts or other
|
||||||
|
programs. It supports printing a summary about the provided network address,
|
||||||
|
multiple command line options per information to be printed, transparent IPv6
|
||||||
|
support, and in addition it will use libGeoIP if available to provide
|
||||||
|
geographic information.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%meson
|
||||||
|
%meson_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%meson_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
%meson_test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md NEWS
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/ipcalc
|
||||||
|
%{_mandir}/man1/ipcalc.1%{?ext_man}
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user