Skip to content

Commit fa1533e

Browse files
committed
Some clean-ups.
1 parent 98b9fe7 commit fa1533e

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

debian/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Vcs-Git: https://github.com/dreibh/subnetcalc.git
77
Vcs-Browser: https://github.com/dreibh/subnetcalc
88
Build-Depends: cmake,
99
debhelper (>= 12),
10-
libgeoip-dev,
11-
pkgconf | pkg-config
10+
gettext,
11+
libgeoip-dev
1212
Standards-Version: 4.7.0
1313
Rules-Requires-Root: no
1414

po/nb/subnetcalc.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ msgstr "ikke nødvendig på punkt-til-punkt-lenker"
263263

264264
#: src/subnetcalc.cc:894
265265
msgid "Wildcard Mask"
266-
msgstr "Wildcard Mask"
266+
msgstr "Wildcardmaske"
267267

268268
#: src/subnetcalc.cc:899
269269
msgid "Hex. Address"

rpm/subnetcalc.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Version: 2.5.2~rc0
33
Release: 1
44
Summary: IPv4/IPv6 Subnet Calculator
55
Group: Applications/Internet
6-
License: GPL-3+
6+
License: GPL-3.0-or-later
77
URL: https://www.nntb.no/~dreibh/subnetcalc/
88
Source: https://www.nntb.no/~dreibh/subnetcalc/download/%{name}-%{version}.tar.xz
99

1010
AutoReqProv: on
1111
BuildRequires: cmake
1212
BuildRequires: gcc
1313
BuildRequires: gcc-c++
14+
BuildRequires: gettext
1415
BuildRequires: GeoIP-devel
1516
Requires: GeoIP
1617
BuildRoot: %{_tmppath}/%{name}-%{version}-build
1718

18-
%define _unpackaged_files_terminate_build 0
1919

2020
%description
2121
SubNetCalc is an IPv4/IPv6 subnet address calculator. For given IPv4 or IPv6
@@ -39,8 +39,11 @@ interface ID, etc.). Finally, it can generate IPv6 unique local prefixes.
3939

4040
%files
4141
%{_bindir}/subnetcalc
42+
%{_datadir}/bash-completion/completions/subnetcalc
43+
%{_datadir}/locale/*/LC_MESSAGES/subnetcalc.mo
4244
%{_mandir}/man1/subnetcalc.1.gz
4345

46+
4447
%doc
4548

4649
%changelog

src/subnetcalc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,12 +699,12 @@ void printAddressProperties(std::ostream& os,
699699

700700
// ------ 6to4 Address ---------------------------------------------
701701
if((a & 0x2002) == 0x2002) {
702-
os << " + " << gettext("6to4 address = ");
703702
sockaddr_union sixToFour;
704703
sixToFour.sa.sa_family = AF_INET;
705704
const uint32_t u = ntohs(((const uint16_t*)&ipv6address.s6_addr)[1]);
706705
const uint32_t l = ntohs(((const uint16_t*)&ipv6address.s6_addr)[2]);
707706
sixToFour.in.sin_addr.s_addr = htonl((u << 16) | l);
707+
os << " + " << gettext("6to4 address") << " = ";
708708
printAddress(std::cout, &sixToFour.sa, false);
709709
os << "\n";
710710
}

0 commit comments

Comments
 (0)