diff --git a/.gitignore b/.gitignore index 0371816..31544f3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,7 @@ logo-mode.tar.gz /version_6.1.tar.gz /ucblogo-6.2.tar.gz /ucblogo-6.2.1.tar.gz +/ucblogo-6.2.2.tar.gz +/ucblogo-6.2.3.tar.gz +/ucblogo-6.2.4.tar.gz +/ucblogo-6.2.5.tar.gz diff --git a/compile-flags.patch b/compile-flags.patch new file mode 100644 index 0000000..6d53b0e --- /dev/null +++ b/compile-flags.patch @@ -0,0 +1,21 @@ +diff -ruN ucblogo-code-version_6.2.4/configure.ac ucblogo-code-version_6.2.4-mod/configure.ac +--- ucblogo-code-version_6.2.4/configure.ac 2023-03-28 04:05:59.000000000 +0300 ++++ ucblogo-code-version_6.2.4-mod/configure.ac 2024-11-30 18:24:29.793856326 +0300 +@@ -72,17 +72,6 @@ + AC_MSG_RESULT([$enable_docs]) + AM_CONDITIONAL([DOCS], [test x${enable_docs} = xyes]) + +-dnl Enable Compiler Warnings +-AX_CFLAGS_WARN_ALL +-dnl Disable a warning with many false positives; perhaps rethink later +-AX_CHECK_COMPILE_FLAG([-Wno-write-strings], +-[CFLAGS="$CFLAGS -Wno-write-strings" +-CXXFLAGS="$CXXFLAGS -Wno-write-strings"]) +-dnl Disable voluminous cloud of rather harmless warnings +-AX_CHECK_COMPILE_FLAG([-Wno-unused-variable], +-[CFLAGS="$CFLAGS -Wno-unused-variable" +-CXXFLAGS="$CXXFLAGS -Wno-unused-variable"]) +- + dnl Checks for libraries. + AC_SEARCH_LIBS(sqrt,[m]) + AC_SEARCH_LIBS(atan,[m]) diff --git a/sources b/sources index 2a78465..3eb6b8b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ucblogo-6.2.1.tar.gz) = f6c42f5f97984717a39498f1fd050ba84371aee57fb234dc3b9101eab33f9013f3aaa7a8bcc9c4efef3603e4a11b2990b322837c0f0ce633e5070ba7b4b903fb +SHA512 (ucblogo-6.2.5.tar.gz) = 4b77faeeed696b08488ae34f2f4d774f58a701f9b31473b35fdb228d45e9f6e9e253662c1d552320759efb4b6054030de1c869902fe3b71a98b6dedba807d230 diff --git a/termios.patch b/termios.patch new file mode 100644 index 0000000..beefc8c --- /dev/null +++ b/termios.patch @@ -0,0 +1,79 @@ +diff --git a/configure.ac b/configure.ac +index 749bf6f..e233b53 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -104,9 +104,7 @@ AM_COND_IF([X11], + [AC_SEARCH_LIBS(XOpenDisplay, [X11])]) + + dnl Checks for header files. +-AC_CHECK_HEADERS([unistd.h string.h]) +-AM_COND_IF([WX],, +- [AC_CHECK_HEADERS([sgtty.h termio.h termcap.h termlib.h curses.h])]) ++AC_CHECK_HEADERS([termios.h termio.h termcap.h termlib.h curses.h sys/ioctl.h unistd.h string.h]) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_TYPE_SIZE_T +diff --git a/term.c b/term.c +index c1f596e..e81c0b5 100644 +--- a/term.c ++++ b/term.c +@@ -33,16 +33,14 @@ + #include + #endif + +-#ifdef HAVE_TERMIO_H +-#ifdef HAVE_WX ++#ifdef HAVE_TERMIOS_H + #include +-#else ++#elif defined(HAVE_TERMIO_H) + #include + #endif +-#else +-#ifdef HAVE_SGTTY_H +-#include +-#endif ++ ++#ifdef HAVE_SYS_IOCTL_H ++#include + #endif + + #undef TRUE +@@ -81,7 +79,9 @@ char cm_arr[40]; + char so_arr[40]; + char se_arr[40]; + +-#ifdef HAVE_TERMIO_H ++#if defined(HAVE_TERMIOS_H) ++struct termios tty_cooked, tty_cbreak; ++#elif defined(HAVE_TERMIO_H) + struct termio tty_cooked, tty_cbreak; + #else + #ifdef HAVE_SGTTY_H +@@ -137,7 +137,7 @@ void term_init(void) { + #endif /* WIN32 */ + #else + if (interactive) { +-#ifdef HAVE_TERMIO_H ++#if defined(HAVE_TERMIO_H) || defined(HAVE_TERMIOS_H) + ioctl(0,TCGETA,(char *)(&tty_cooked)); + tty_cbreak = tty_cooked; + tty_cbreak.c_cc[VMIN] = '\01'; +@@ -200,7 +200,7 @@ void term_init(void) { + void charmode_on() { + #ifdef unix + if ((readstream == stdin) && interactive && !tty_charmode) { +-#ifdef HAVE_TERMIO_H ++#if defined(HAVE_TERMIO_H) || defined(HAVE_TERMIOS_H) + ioctl(0,TCSETA,(char *)(&tty_cbreak)); + #else /* !HAVE_TERMIO_H */ + ioctl(0,TIOCSETP,(char *)(&tty_cbreak)); +@@ -216,7 +216,7 @@ void charmode_on() { + void charmode_off() { + #ifdef unix + if (tty_charmode) { +-#ifdef HAVE_TERMIO_H ++#if defined(HAVE_TERMIO_H) || defined(HAVE_TERMIOS_H) + ioctl(0,TCSETA,(char *)(&tty_cooked)); + #else /* !HAVE_TERMIO_H */ + ioctl(0,TIOCSETP,(char *)(&tty_cooked)); diff --git a/ucblogo.spec b/ucblogo.spec index ac58bd7..4136697 100644 --- a/ucblogo.spec +++ b/ucblogo.spec @@ -1,11 +1,17 @@ Name: ucblogo -Version: 6.2.1 -Release: 1%{?dist} +Version: 6.2.5 +Release: 5%{?dist} Summary: An interpreter for the Logo programming language -License: GPLv3+ -Source: https://github.com/jrincayc/ucblogo-code/releases/download/version_%{version}/ucblogo-%{version}.tar.gz +License: GPL-3.0-or-later +Source: https://github.com/jrincayc/ucblogo-code/archive/version_%{version}/ucblogo-%{version}.tar.gz +Patch1: compile-flags.patch +Patch2: termios.patch + URL: https://people.eecs.berkeley.edu/~bh/logo.html +BuildRequires: make +BuildRequires: autoconf +BuildRequires: automake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: texinfo @@ -19,7 +25,7 @@ BuildRequires: libXt-devel BuildRequires: libSM-devel BuildRequires: libICE-devel BuildRequires: ncurses-devel -BuildRequires: wxGTK3-devel +BuildRequires: wxGTK-devel BuildRequires: ghostscript-tools-dvipdf BuildRequires: desktop-file-utils Requires(post): /sbin/install-info @@ -52,25 +58,19 @@ Requires: %{name} = %{version}-%{release} This package contains the x11 binary for ucblogo. %prep -%setup -q - - -# correct directories /usr/lib -> /usr/share and /usr/local -> /usr -sed -i 's|/local/lib/logo|/share/logo|g' *.c README.md -sed -i 's|/lib/logo|/share/logo|g' *.c makefile* -sed -i "s|/usr/local/bin/logo|%{_bindir}/logo|g" docs/ucblogo.texi -sed -i "s|/usr/local/bin/logo|%{_bindir}/logo|g" README.md -sed -i "s|/usr/local/info|%{_datadir}/info|g" README.md +%autosetup -p1 -n %{name}-%{version} %build +autoreconf -fi +autoconf # build traditional version %configure --x-includes=%{_includedir} --x-libraries=%{_libdir} --enable-x11 --with-wx-config=no %make_build ucblogo mv ucblogo ucblogo-x11 # build wx version make clean -%configure --with-wx-config=/usr/bin/wx-config-3.0 +%configure --with-wx-config=/usr/bin/wx-config-3.2 %make_build # build html docs make html @@ -120,6 +120,70 @@ fi %{_bindir}/ucblogo-x11 %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 6.2.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 6.2.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Mon Aug 25 2025 Joshua Cogliati - 6.2.5-3 +- Fix failure to build errors + +* Fri Jul 25 2025 Fedora Release Engineering - 6.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Feb 13 2025 Joshua Cogliati - 6.2.5-1 +- Update to release 6.2.5 + +* Fri Jan 24 2025 Benson Muite 6.2.4-1 +- Update to release 6.2.4 +- Fix failure to build errors + +* Sun Jan 19 2025 Fedora Release Engineering - 6.2.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Thu Jul 25 2024 Miroslav Suchý - 6.2.3-8 +- convert license to SPDX + +* Sat Jul 20 2024 Fedora Release Engineering - 6.2.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 6.2.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Florian Weimer - 6.2.3-5 +- Backport upstream patches for GCC 14 compatibility + +* Sat Jul 22 2023 Fedora Release Engineering - 6.2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Feb 07 2023 Florian Weimer - 6.2.3-3 +- Fix some C99 compatibility issues + +* Sat Jan 21 2023 Fedora Release Engineering - 6.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Jan 17 2023 Joshua Cogliati - 6.2.3-1 +- Updating to 6.2.3 release + +* Thu Aug 04 2022 Scott Talbert - 6.2.2-4 +- Rebuild with wxWidgets 3.2 + +* Sat Jul 23 2022 Fedora Release Engineering - 6.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 6.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Dec 29 2021 Joshua Cogliati - 6.2.2-1 +- Updating to 6.2.2 release + +* Fri Jul 23 2021 Fedora Release Engineering - 6.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 6.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Thu Dec 31 2020 Joshua Cogliati - 6.2.1-1 - Updating to 6.2.1 release