Notification time stamped 2023-03-31 18:02:14 UTC
From 86679b68b3efbb0ca62759daebf53c3308a32ca0 Mon Sep 17 00:00:00 2001 From: Tom Callaway spot@fedoraproject.org Date: Mar 31 2023 16:47:21 +0000 Subject: Initial import (fedora#2182080).
---
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4521d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/snobol4-2.3.1.tar.gz diff --git a/snobol4-2.3.1-configure-no-opt.patch b/snobol4-2.3.1-configure-no-opt.patch new file mode 100644 index 0000000..11d3597 --- /dev/null +++ b/snobol4-2.3.1-configure-no-opt.patch @@ -0,0 +1,12 @@ +diff -up snobol4-2.3.1/configure.noopt snobol4-2.3.1/configure +--- snobol4-2.3.1/configure.noopt 2023-03-26 13:12:22.826650002 -0400 ++++ snobol4-2.3.1/configure 2023-03-26 13:12:33.679794072 -0400 +@@ -453,7 +453,7 @@ gcc|clang|icc) + CCVERS=-v + # was -M: -MM existed in gcc 3.4 + echo 'CCM=$(CC) -MM' >> $CONFIG_M4 +- OPT=-O3 ++ # OPT=-O3 + + # on by default in clang?? + echo 'ADD_CFLAGS([-Wall])' >> $CONFIG_M4 diff --git a/snobol4.spec b/snobol4.spec new file mode 100644 index 0000000..6d390ba --- /dev/null +++ b/snobol4.spec @@ -0,0 +1,94 @@ +# This thing cannot build fast. +%global _smp_mflags -j1 +%global optflags %{optflags} -Wno-error=unused-result -Wno-error=unused-but-set-variable -Wno-error=restrict -Wno-error=unused-variable -Wno-error=maybe-uninitialized -Wno-error=uninitialized + +Name: snobol4 +Version: 2.3.1 +Release: 2%{?dist} +# Majority: BSD-2-Clause +# BSD-3-Clause: modules/random/random.c +# BSD-4-Clause: lib/bsd/popen.c +# ISC: modules/base64/base64.c +License: BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC +URL: https://www.regressive.org/snobol4/csnobol4/curr/ +Source0: https://ftp.regressive.org/snobol4/%%7Bname%7D-%%7Bversion%7D.tar.gz +# Do not hardcode -O3. +Patch1: snobol4-2.3.1-configure-no-opt.patch +Summary: A port of Macro SNOBOL4 +BuildRequires: gcc, gcc-c++, m4, make +BuildRequires: bzip2-devel +BuildRequires: gdbm-devel +BuildRequires: libedit-devel +BuildRequires: openssl-devel +BuildRequires: readline-devel +BuildRequires: sqlite-devel +BuildRequires: tcl-devel +BuildRequires: xz-devel +BuildRequires: zlib-devel + +%description +This is a free port of the original SIL (SNOBOL4 Implementation +Language) "macro" version of SNOBOL4 (developed at Bell Labs) with the +`C' language as a target. + +SNOBOL4, while known primarily as a string language excels at any task +involving symbolic manipulations. It provides dynamic typing, garbage +collection, user data types, on the fly compilation. + +%package devel +Summary: Development files for snobol4 +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development files for snobol4. + +%prep +%setup -q +%patch -P1 -p1 -b .configure-no-opt + +%build +# This isn't a real configure script, hence, no macro. +./configure --add-cflags="%{build_cflags}" --add-cppflags="%{build_cxxflags}" --prefix=%{_prefix} --mandir=%{_mandir} --snolibdir=%{_libdir}/snobol4 --with-tcl=%{_libdir}/tclConfig.sh +%make_build + +%install +%make_install + +# all in libdir? What is this, 1985? Oh wait, this is SNOBOL, so maybe 1969. +mkdir -p %{buildroot}%{_includedir}/snobol4 +mv %{buildroot}%{_libdir}/%{name}/%{version}/include/* %{buildroot}%{_includedir}/snobol4 +pushd %{buildroot}%{_libdir}/%{name}/%{version}/ +rm -rf include +ln -s ../../../include/snobol4 include +popd + +rm -rf %{buildroot}%{_libdir}/%{name}/%{version}/CHANGES %{buildroot}%{_libdir}/%{name}/%{version}/README + +%files +%doc CHANGES README +%license COPYRIGHT +%{_bindir}/sdb* +%{_bindir}/snobol4* +%{_bindir}/snopea* +%{_libdir}/snobol4 +%exclude %{_libdir}/snobol4/%{version}/include +%{_defaultdocdir}/%{name}-%{version}/ +%{_mandir}/man1/sdb.1* +%{_mandir}/man1/snobol4*.1* +%{_mandir}/man1/snopea.1* +%{_mandir}/man3/snolib.3* +%{_mandir}/man3/snobol4*.3* +%{_mandir}/man7/snopea.7* + +%files devel +%{_includedir}/%{name} +%{_libdir}/snobol4/%{version}/include + +%changelog +* Thu Mar 30 2023 Tom Callaway spot@fedoraproject.org 2.3.1-2 +- fix URL to be https +- use build_cflags and build_cxxflags +- correct License tag + +* Sun Mar 26 2023 Tom Callaway spot@fedoraproject.org 2.3.1-1 +- initial package diff --git a/sources b/sources new file mode 100644 index 0000000..88c40d2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (snobol4-2.3.1.tar.gz) = 34201de2bc84c06f958ab525f249fcf343905fe153b40a4241f0367d60266f2e6a424fef327fcb38854aececca24a84e3253ed76e3d1e2eeacf86095cf19ec6c
https://src.fedoraproject.org/rpms/snobol4/c/86679b68b3efbb0ca62759daebf53c3...
scm-commits@lists.fedoraproject.org