From 0f6030581d18b06b9e953ee68cb625fff39f4bfe9c10e48f5055bdee6845e9b6 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 11 Oct 2023 13:38:49 +0000 Subject: [PATCH] Accepting request 1116558 from home:ojkastl_buildservice:Branch_devel_tools_scm new package jujutsu: A Git-compatible DVCS that is both simple and powerful OBS-URL: https://build.opensuse.org/request/show/1116558 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/jujutsu?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + _service | 25 ++++++++++++++++++ _servicedata | 4 +++ cargo_config | 5 ++++ jj-0.10.0.obscpio | 3 +++ jj.obsinfo | 4 +++ jujutsu.changes | 5 ++++ jujutsu.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++ vendor.tar.zst | 3 +++ 10 files changed, 140 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 cargo_config create mode 100644 jj-0.10.0.obscpio create mode 100644 jj.obsinfo create mode 100644 jujutsu.changes create mode 100644 jujutsu.spec create mode 100644 vendor.tar.zst 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/_service b/_service new file mode 100644 index 0000000..38b28b0 --- /dev/null +++ b/_service @@ -0,0 +1,25 @@ + + + https://github.com/martinvonz/jj + git + .git + @PARENT_TAG@ + v0.10.0 + enable + v(.*) + + + + *.tar + gz + + + + + true + jj + + + jj + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..54640d8 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/martinvonz/jj + ce933507df6eb51286cb7c7e3f1aaa53e581a3ef \ No newline at end of file diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/jj-0.10.0.obscpio b/jj-0.10.0.obscpio new file mode 100644 index 0000000..8721abf --- /dev/null +++ b/jj-0.10.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27df117dae5c1b8cd103dee0480f312d4fd8ac590c12b9c69970eb03fdf692f3 +size 4163084 diff --git a/jj.obsinfo b/jj.obsinfo new file mode 100644 index 0000000..a02a943 --- /dev/null +++ b/jj.obsinfo @@ -0,0 +1,4 @@ +name: jj +version: 0.10.0 +mtime: 1696463145 +commit: ce933507df6eb51286cb7c7e3f1aaa53e581a3ef diff --git a/jujutsu.changes b/jujutsu.changes new file mode 100644 index 0000000..975a038 --- /dev/null +++ b/jujutsu.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Oct 9 15:49:09 UTC 2023 - Johannes Kastl + +- new package jujutsu: A Git-compatible DVCS that is both simple + and powerful diff --git a/jujutsu.spec b/jujutsu.spec new file mode 100644 index 0000000..44a280f --- /dev/null +++ b/jujutsu.spec @@ -0,0 +1,67 @@ +# +# spec file for package jujutsu +# +# Copyright (c) 2022 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 binary_name jj + +Name: jujutsu +Version: 0.10.0 +Release: 0 +Summary: Git-compatible DVCS that is both simple and powerful +License: MIT +URL: https://github.com/martinvonz/jj +Source0: jj-%{version}.tar.gz +Source1: vendor.tar.zst +Source2: cargo_config +BuildRequires: cargo >= 1.70 +BuildRequires: cargo-packaging +BuildRequires: openssl-devel +BuildRequires: zstd + +%description +Jujutsu is a Git-compatible DVCS. It combines features from Git (data model, speed), Mercurial (anonymous branching, simple CLI free from "the index", revsets, powerful history-rewriting), and Pijul/Darcs (first-class conflicts), with features not found in most of them (working-copy-as-a-commit, undo functionality, automatic rebase, safe replication via rsync, Dropbox, or distributed file system). + +The command-line tool is called jj for now because it's easy to type and easy to replace (rare in English). The project is called "Jujutsu" because it matches "jj". + +Jujutsu is relatively young, with lots of work to still be done. If you have any questions, or want to talk about future plans, please join us on Discord Discord or start a GitHub Discussion; the developers monitor both channels. + +Important +Jujutsu is an experimental version control system. While Git compatibility is stable, and most developers use it daily for all their needs, there may still be work-in-progress features, suboptimal UX, and workflow gaps that make it unusable for your particular use. + +%prep +%autosetup -p 1 -a 1 -n jj-%{version} +mkdir -p .cargo +rm -vf .cargo/config.toml +cp %{SOURCE2} .cargo/config + +%build +%{cargo_build} + +%install +install -D -d -m 0755 %{buildroot}%{_bindir} +ls -lh %{_builddir}/ +install -m 0755 %{_builddir}/%{binary_name}-%{version}/target/release/%{binary_name} %{buildroot}%{_bindir}/%{binary_name} + +%check +%{cargo_test} + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{binary_name} + +%changelog diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..1a2efba --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f24981da4e4108e0dd713482a425ea206e1a7809be146014b7e1bf89944f94e1 +size 43333746