diff --git a/whatmask-1.2-configure-c99.patch b/whatmask-1.2-configure-c99.patch new file mode 100644 index 0000000..757988f --- /dev/null +++ b/whatmask-1.2-configure-c99.patch @@ -0,0 +1,70 @@ +--- whatmask-1.2/configure 2003-11-14 23:16:29.000000000 +0000 ++++ new/configure 2022-12-23 07:50:46.354399118 +0000 +@@ -907,7 +907,7 @@ + #line 908 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(){return(0);} + EOF + if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes +@@ -1221,8 +1221,8 @@ + #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) + int main () { int i; for (i = 0; i < 256; i++) +-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); +-exit (0); } ++if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; ++return 0; } + + EOF + if { (eval echo configure:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +@@ -1324,12 +1324,12 @@ + #line 1325 "configure" + #include "confdefs.h" + #include +-main() ++int main() + { + FILE *f=fopen("conftestval", "w"); +- if (!f) exit(1); ++ if (!f) return 1; + fprintf(f, "%d\n", sizeof(unsigned short)); +- exit(0); ++ return 0; + } + EOF + if { (eval echo configure:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +@@ -1363,12 +1363,12 @@ + #line 1364 "configure" + #include "confdefs.h" + #include +-main() ++int main() + { + FILE *f=fopen("conftestval", "w"); +- if (!f) exit(1); ++ if (!f) return 1; + fprintf(f, "%d\n", sizeof(unsigned int)); +- exit(0); ++ return 0; + } + EOF + if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +@@ -1402,12 +1402,12 @@ + #line 1403 "configure" + #include "confdefs.h" + #include +-main() ++int main() + { + FILE *f=fopen("conftestval", "w"); +- if (!f) exit(1); ++ if (!f) return 1; + fprintf(f, "%d\n", sizeof(unsigned long)); +- exit(0); ++ return 0; + } + EOF + if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null diff --git a/whatmask.spec b/whatmask.spec index d1818c3..c24108a 100644 --- a/whatmask.spec +++ b/whatmask.spec @@ -1,12 +1,14 @@ Name: whatmask Version: 1.2 -Release: 26%{?dist} +Release: 40%{?dist} Summary: Convert between different netmask types and show information -License: GPLv2+ +# Automatically converted from old format: GPLv2+ - review is highly recommended. +License: GPL-2.0-or-later URL: http://www.laffeycomputer.com/whatmask.html Source0: http://downloads.laffeycomputer.com/current_builds/whatmask/whatmask-1.2.tar.gz - +Patch0: whatmask-1.2-configure-c99.patch +BuildRequires: make BuildRequires: gcc %description @@ -17,6 +19,7 @@ interface. %prep %setup -q +%patch -P0 -p1 %build %configure @@ -35,6 +38,48 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/* %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 1.2-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 1.2-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 1.2-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 1.2-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Jul 26 2024 Miroslav Suchý - 1.2-36 +- convert license to SPDX + +* Sat Jul 20 2024 Fedora Release Engineering - 1.2-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 1.2-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 1.2-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 1.2-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Dec 23 2022 Peter Fordham - 1.2-31 +- Port configure script to C99. + +* Sat Jul 23 2022 Fedora Release Engineering - 1.2-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 1.2-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.2-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Wed Jul 29 2020 Fedora Release Engineering - 1.2-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild