From b305e792617cf4e09abe8c1f1a9521f75b885a134a2acc84760020c700e7564b Mon Sep 17 00:00:00 2001 From: Anna Maresova Date: Mon, 3 Apr 2023 08:53:33 +0000 Subject: [PATCH] Accepting request 1074788 from home:mcepl Required by new TeXLive. OBS-URL: https://build.opensuse.org/request/show/1074788 OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/snobol4?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + snobol4-2.3.1-configure-no-opt.patch | 12 +++ snobol4-2.3.1.tar.gz | 3 + snobol4.changes | 9 +++ snobol4.spec | 105 +++++++++++++++++++++++++++ 6 files changed, 153 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 snobol4-2.3.1-configure-no-opt.patch create mode 100644 snobol4-2.3.1.tar.gz create mode 100644 snobol4.changes create mode 100644 snobol4.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc 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..fdc8ca3 --- /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-2.3.1.tar.gz b/snobol4-2.3.1.tar.gz new file mode 100644 index 0000000..0c30c04 --- /dev/null +++ b/snobol4-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91244d67d4e29d2aadce5655bd4382ffab44c624a7ea4ad6411427f3abf17535 +size 986906 diff --git a/snobol4.changes b/snobol4.changes new file mode 100644 index 0000000..7167e04 --- /dev/null +++ b/snobol4.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 27 22:18:08 UTC 2023 - Matej Cepl + +- Port to openSUSE + +------------------------------------------------------------------- +Sun Mar 26 00:00:00 UTC 2023 - Tom Callaway + +- initial package diff --git a/snobol4.spec b/snobol4.spec new file mode 100644 index 0000000..6d665ed --- /dev/null +++ b/snobol4.spec @@ -0,0 +1,105 @@ +# +# spec file for package snobol4 +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%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: 0 +Summary: A port of Macro SNOBOL4 +License: BSD-2-Clause +URL: https://www.regressive.org/snobol4/csnobol4/curr/ +Source0: https://ftp.regressive.org/snobol4/%{name}-%{version}.tar.gz +# Do not hardcode -O3. +Patch1: snobol4-2.3.1-configure-no-opt.patch +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gdbm-devel +BuildRequires: libbz2-devel +BuildRequires: libedit-devel +BuildRequires: m4 +BuildRequires: make +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 +%autosetup -p1 + +# Remove version control files +rm -r doc/CVS doc/.cvsignore + +%build +# This isn't a real configure script, hence, no macro. +./configure --add-cflags="%{optflags}" --add-cppflags="%{optflags}" --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 + +# We rather install doc/ ourselves +rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version} +rm -rf %{buildroot}%{_libdir}/%{name}/%{version}/CHANGES %{buildroot}%{_libdir}/%{name}/%{version}/README + +%files +%doc CHANGES README doc/ +%license COPYRIGHT +%{_bindir}/sdb* +%{_bindir}/snobol4 +%{_bindir}/snopea* +%{_libdir}/snobol4* +%exclude %{_libdir}/snobol4/%{version}/include +%{_mandir}/man1/sdb.1%{?ext_man} +%{_mandir}/man1/snobol4*.1%{?ext_man} +%{_mandir}/man1/snopea.1%{?ext_man} +%{_mandir}/man3/snolib.3%{?ext_man} +%{_mandir}/man3/snobol4*.3%{?ext_man} +%{_mandir}/man7/snopea.7%{?ext_man} + +%files devel +%{_includedir}/%{name} +%{_libdir}/snobol4/%{version}/include + +%changelog