Compare commits

...
Sign in to create a new pull request.

27 commits

Author SHA1 Message Date
Fedora Release Engineering
e86a80403b Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:05:21 +00:00
Fedora Release Engineering
ee8bbe0f43 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:31:44 +00:00
Joshua J. Cogliati
96133ce90e Fix failure to build errors 2025-08-25 21:21:22 -06:00
Fedora Release Engineering
2ecba35e5e Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:41:46 +00:00
Joshua J. Cogliati
62bd588642 Updating to ucblogo 6.2.5 2025-02-14 06:10:53 -07:00
Joshua J. Cogliati
753ee32587 Fix Bug 2341473 FTBS in rawhide 2025-01-24 17:27:40 -07:00
Joshua J. Cogliati
65fc31e30e Merge branch 'pr7' into rawhide 2025-01-24 14:53:02 -07:00
Fedora Release Engineering
dbc106081a Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 13:34:46 +00:00
Benson Muite
1ae79242c3 Update to 6.2.4 2024-11-30 20:12:32 +03:00
Miroslav Suchý
dafa815ca9 convert GPLv3+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-25 13:27:15 +02:00
Fedora Release Engineering
e8ce8be9df Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:06:23 +00:00
Fedora Release Engineering
1079ae2a17 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 06:56:59 +00:00
Florian Weimer
5cceaf29a2 Backport upstream patches for GCC 14 compatibility 2024-01-22 10:01:28 +01:00
Fedora Release Engineering
d64e4ad7a6 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 16:57:45 +00:00
Florian Weimer
dc47d79b01 Fix some C99 compatibility issues
Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2023-02-07 14:52:16 +01:00
Fedora Release Engineering
a00afac237 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 05:39:03 +00:00
Joshua J. Cogliati
c9429a549f Updating to version 6.2.3 2023-01-17 18:00:18 -07:00
Scott Talbert
ce9e1556bf Rebuild with wxWidgets 3.2 2022-08-04 14:22:27 -04:00
Fedora Release Engineering
a3f50be302 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 11:14:15 +00:00
Fedora Release Engineering
d066dcd002 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 03:22:43 +00:00
Joshua J. Cogliati
629c44e4dc Updating to 6.2.2 2021-12-29 10:20:31 -07:00
Fedora Release Engineering
64789c7aaf - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 19:53:41 +00:00
Fedora Release Engineering
bca5177975 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 22:32:26 +00:00
Tom Stellard
93a6dbae0f Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 00:16:50 +00:00
Joshua J. Cogliati
28418f567e Updating to 6.2.1 (fixes manpage) 2020-12-31 09:52:53 -07:00
Joshua J. Cogliati
5290fffbcf Adding new source file. 2020-12-30 14:50:29 -07:00
Joshua J. Cogliati
2322d38d14 Updating to ucblogo 6.2 2020-12-30 14:50:26 -07:00
6 changed files with 223 additions and 46 deletions

6
.gitignore vendored
View file

@ -1,3 +1,9 @@
ucblogo-6.0.tar.gz
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

21
compile-flags.patch Normal file
View file

@ -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])

View file

@ -1 +1 @@
SHA512 (version_6.1.tar.gz) = 449fde8f5e200aa4ba712fe5af67e814c820f1b3beffb35f19244f34864c3fc0f73db8f1e25dfb11919081cee01319a6df2592644270e2fdd4137fd2f907ee82
SHA512 (ucblogo-6.2.5.tar.gz) = 4b77faeeed696b08488ae34f2f4d774f58a701f9b31473b35fdb228d45e9f6e9e253662c1d552320759efb4b6054030de1c869902fe3b71a98b6dedba807d230

79
termios.patch Normal file
View file

@ -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 <console.h>
#endif
-#ifdef HAVE_TERMIO_H
-#ifdef HAVE_WX
+#ifdef HAVE_TERMIOS_H
#include <termios.h>
-#else
+#elif defined(HAVE_TERMIO_H)
#include <termio.h>
#endif
-#else
-#ifdef HAVE_SGTTY_H
-#include <sgtty.h>
-#endif
+
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
#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));

View file

@ -1,8 +0,0 @@
[Desktop Entry]
Name=UCBLogo
GenericName=Logo Programming Language
Exec=logo-wx
Icon=ucblogo
Terminal=false
Type=Application
Categories=Education

View file

@ -1,12 +1,17 @@
Name: ucblogo
Version: 6.1
Release: 3%{?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/archive/version_%{version}.tar.gz
Source1: %{name}.desktop
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
@ -20,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
@ -45,49 +50,45 @@ BuildArch: noarch
This package includes HTML and PDF documentation for ucblogo
and the Program Logic Manual (plm)
%package x11
Summary: X11 version for ucblogo
Requires: %{name} = %{version}-%{release}
%description x11
This package contains the x11 binary for ucblogo.
%prep
%setup -q -n ucblogo-code-version_%{version}
# 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/usermanual.texi
sed -i "s|/usr/local/bin/logo|%{_bindir}/logo|g" README.md
sed -i "s|/usr/local/info|%{_datadir}/info|g" README.md
find -name 'CVS' | xargs rm -rf
find -name '.svn' | xargs rm -rf
%autosetup -p1 -n %{name}-%{version}
%build
# build WX version
%configure --with-wx-config=/usr/bin/wx-config-3.0
make %{_smp_mflags} logo
mv logo logo-wx
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 --x-includes=%{_includedir} --x-libraries=%{_libdir} --with-x --with-wx-config=no
make %{_smp_mflags}
# build docs
make make-docs
%configure --with-wx-config=/usr/bin/wx-config-3.2
%make_build
# build html docs
make html
%install
#Note: makefile does not support DESTDIR
%makeinstall
%make_install
install -m0755 logo-wx ${RPM_BUILD_ROOT}%{_bindir}
install -m0755 ucblogo-x11 ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/info
mv -f ${RPM_BUILD_ROOT}%{_prefix}/info/* ${RPM_BUILD_ROOT}%{_datadir}/info
rm -fr ${RPM_BUILD_ROOT}%{_prefix}/info
rm -fr ${RPM_BUILD_ROOT}%{_datadir}/logo/docs
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps
install -p -m 644 ucblogo.png \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps
install -p -m 644 plm $RPM_BUILD_ROOT%{_datadir}/doc/ucblogo
rm -f ${RPM_BUILD_ROOT}%{_bindir}/install-logo-mode
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
%post
/sbin/install-info %{_infodir}/ucblogo.info --entry="* UCBLogo: (ucblogo). Berkeley Logo User Manual." --section="Programming Languages" %{_infodir}/dir 2>/dev/null || :
@ -100,17 +101,95 @@ fi
%files
%doc README.md changes.txt
%license LICENSE
%{_bindir}/*
%{_datadir}/logo
%{_infodir}/*
%{_mandir}/man1/logo*
%{_bindir}/ucblogo
%{_infodir}/*.info*
%{_mandir}/man1/ucblogo*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%{_datadir}/ucblogo/csls/*
%{_datadir}/ucblogo/helpfiles/*
%{_datadir}/ucblogo/logolib/*
%{_datadir}/pixmaps/ucblogo.xpm
%files doc
%doc docs/html docs/usermanual.pdf plm
%{_datadir}/doc/ucblogo/ucblogo.pdf
%{_datadir}/doc/ucblogo/ucblogo.html
%{_datadir}/doc/ucblogo/plm
%files x11
%{_bindir}/ucblogo-x11
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Mon Aug 25 2025 Joshua Cogliati <jrincayc@yahoo.com> - 6.2.5-3
- Fix failure to build errors
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Feb 13 2025 Joshua Cogliati <jrincayc@yahoo.com> - 6.2.5-1
- Update to release 6.2.5
* Fri Jan 24 2025 Benson Muite <benson_muite@emailplus.org> 6.2.4-1
- Update to release 6.2.4
- Fix failure to build errors
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 25 2024 Miroslav Suchý <msuchy@redhat.com> - 6.2.3-8
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Florian Weimer <fweimer@redhat.com> - 6.2.3-5
- Backport upstream patches for GCC 14 compatibility
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Feb 07 2023 Florian Weimer <fweimer@redhat.com> - 6.2.3-3
- Fix some C99 compatibility issues
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Jan 17 2023 Joshua Cogliati <jrincayc@yahoo.com> - 6.2.3-1
- Updating to 6.2.3 release
* Thu Aug 04 2022 Scott Talbert <swt@techie.net> - 6.2.2-4
- Rebuild with wxWidgets 3.2
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Dec 29 2021 Joshua Cogliati <jrincayc@yahoo.com> - 6.2.2-1
- Updating to 6.2.2 release
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Dec 31 2020 Joshua Cogliati <jrincayc@yahoo.com> - 6.2.1-1
- Updating to 6.2.1 release
* Wed Dec 30 2020 Joshua Cogliati <jrincayc@yahoo.com> - 6.2-1
- Updating to 6.2 release and splitting x11 binary to separate package
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild