Moving to devel project

OBS-URL: https://build.opensuse.org/package/show/devel:languages:hare/rc?expand=0&rev=1
This commit is contained in:
Matej Cepl 2024-12-04 08:56:14 +00:00 committed by Git OBS Bridge
commit 373e43c745
8 changed files with 208 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://git.sr.ht/~sircmpwn/rc</param>
<param name="versionprefix">0+git</param>
<param name="scm">git</param>
<param name="revision">master</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">mcepl@cepl.eu</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">zst</param>
</service>
<service name="set_version" mode="manual" />
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://git.sr.ht/~sircmpwn/rc</param>
<param name="changesrevision">2b2d211026a5025e9aab30c2000a54a29cdf5ef3</param></service></servicedata>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf54a89c644d4cd0415a9b86dbed2d90d7f421feaead2d243de23f5c8f108fbe
size 161291

94
rc.changes Normal file
View File

@ -0,0 +1,94 @@
-------------------------------------------------------------------
Wed Oct 23 10:54:19 UTC 2024 - mcepl@cepl.eu
- Update to version 0+git.1725436050.2b2d211:
* Makefile: accept HAREFLAGS
* interp: update for iterator changes upstream
-------------------------------------------------------------------
Mon May 13 09:22:49 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Shell belongs to /bin.
-------------------------------------------------------------------
Sun May 12 22:40:38 UTC 2024 - mcepl@cepl.eu
- Update to version 0+git.1710699033.2e5495e:
* test: add (some of) builtin.rc
* test: add switch test
* interp: use buffered write on builtin_read
* interp: skip empty tokens on splitting
* interp: fix read builtin printing to stdout
* rc/interactive: update to latest madeline
* Implement `"ifs"{...}
* interp::value: disallow nested lists
* exec_assign: return $status
* interp: add read built-in
* lex::lexarg: remove @ from nonarg list
* interp: drop obsolete TODO
* Source /etc/profile.rc if running as login shell
* Use parent interpreter context in interactive mode
* README.md: add prefix note
* all (scripts): replace dc with expr
* set builtin: add new flags
* Implement simple pipefail equivalent
* parse: Allow whitespace in assignments
* parse: remove unreachable abort
* parse: Accept whitespace in variable sub-list access
* rc(1): Escape backticks
* rc(1): document $'var
* all: use dupflags in io::dup{,2}
* interp: implement exec built-in
* rc: move istty after initialization
* all: port to +gaia
* doc/grammar.txt: add index
* Implement variable sub-list access using other variables
* interp: implement ~user
* rc(1): document rcstart
* rc(1): fix error and typos
* Implement the variable sub-list operator
* rc(1): fix formatting
* lex: allow dots in function names
* interp: fix assertion failure
* lib/getopt.rc: fix no-option case
* all: fix argument storage in loop contexts
* lib/getopt.rc: initial commit
* interp/exec: special-case ~
* interp: fix use-after-free
* lex: fix unterminated heredoc
* Parse semicolons in command lists
* Implement >> append redirects
* Finish basic heredoc implementation
* lex: lex simple here-docs
* harness.rc: detect unpaired begin/end
* test/loops: fix unmatched begin/end
* doc/grammar.txt: add heredoc grammar
* interp: correct comment
* doc/grammar.txt: remove arithmetic & logic
* Preserve exit status on command expansion
* interp: return 0 from if
* implement break, continue
* test: add loops.rc
* Implement return
* (basic) implementation of rc -x/set -x
* rc: set -e by default for non-interactive shell
* Implement set -e (and rc -e)
* interp: expand tilde
* Various updates per upstream Hare changes
* update to bufio changes upstream
* @noreturn -> never
-------------------------------------------------------------------
Wed Aug 09 16:03:51 UTC 2023 - mcepl@cepl.eu
- Update to version 0+git.1691405423.28c3a67:
* all: updates per upstream hare changes
* interp: don't use NOCHECK on globs
* lex: remove & from non-arg list
* parse: remove temporary import
* Add basic test suite
* Implement ! commands
* Remove = from non-arg list
* cd: implement cd -
* cd: set $PWD and $OLDPWD
* fix ui for ^C

4
rc.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: rc
version: 0+git.1725436050.2b2d211
mtime: 1725436050
commit: 2b2d211026a5025e9aab30c2000a54a29cdf5ef3

62
rc.spec Normal file
View File

@ -0,0 +1,62 @@
#
# spec file for package harec
#
# 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/
#
%define haredir %{_usrsrc}/hare
Name: rc
Release: 0
Version: 0+git.1725436050.2b2d211
Summary: A simple shell
URL: https://git.sr.ht/~sircmpwn/rc
Source0: %{name}-%{version}.tar.zst
BuildRequires: make
BuildRequires: hare
BuildRequires: madeline
BuildRequires: scdoc
BuildRequires: zstd
# For testing
BuildRequires: bc
License: GPL-3.0-only
%description
rc is an experimental shell for Unix inspired by Plan 9's rc.
More information on the original rc is at
https://doc.cat-v.org/plan_9/4th_edition/papers/rc, or
https://en.wikipedia.org/wiki/Rc.
%prep
%autosetup -p1
%build
%make_build
%install
# Shells should go to /bin
%make_install BINDIR="%{_bindir}" PREFIX=/ MANDIR="%{_mandir}"
%check
make check
%files
/bin/%{name}
%license COPYING
%doc README.md
%{_mandir}/man1/rc.1%{?ext_man}
%changelog