diff --git a/whatmask-1.2-configure-c99.patch b/whatmask-1.2-configure-c99.patch deleted file mode 100644 index 757988f..0000000 --- a/whatmask-1.2-configure-c99.patch +++ /dev/null @@ -1,70 +0,0 @@ ---- 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 c24108a..047596c 100644 --- a/whatmask.spec +++ b/whatmask.spec @@ -1,13 +1,12 @@ Name: whatmask Version: 1.2 -Release: 40%{?dist} +Release: 30%{?dist} Summary: Convert between different netmask types and show information -# Automatically converted from old format: GPLv2+ - review is highly recommended. -License: GPL-2.0-or-later +License: GPLv2+ 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 @@ -19,7 +18,6 @@ interface. %prep %setup -q -%patch -P0 -p1 %build %configure @@ -38,36 +36,6 @@ 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