From de302471eebd977e7d05427797885418f99233688ab4ee797f99ad93fb84dae0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 11 Sep 2023 10:31:38 +0000 Subject: [PATCH] Accepting request 1110269 from home:jubalh ifnarch %ix86 %arm ppc change :) OBS-URL: https://build.opensuse.org/request/show/1110269 OBS-URL: https://build.opensuse.org/package/show/Base:System/eza?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + _service | 25 +++++++++ cargo_config | 5 ++ exa.changes | 33 ++++++++++++ eza-0.11.1~0.tar.zst | 3 ++ eza.spec | 118 +++++++++++++++++++++++++++++++++++++++++++ vendor.tar.zst | 3 ++ 8 files changed, 211 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 cargo_config create mode 100644 exa.changes create mode 100644 eza-0.11.1~0.tar.zst create mode 100644 eza.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..9dae49c --- /dev/null +++ b/_service @@ -0,0 +1,25 @@ + + + https://github.com/eza-community/eza.git + @PARENT_TAG@~@TAG_OFFSET@ + git + v0.11.1 + * + v(\d+\.\d+\.\d+) + \1 + + + + *.tar + zst + + + + eza + zst + true + + + eza + + 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/exa.changes b/exa.changes new file mode 100644 index 0000000..e616f92 --- /dev/null +++ b/exa.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Mon Sep 11 09:10:57 UTC 2023 - Michael Vetter + +- Update to 0.11.1: + Bug Fixes: + * Add vendored-libgit2 feature to git2 dependency + * Filename escaping (last character lost sometimes, no hyperlink) + * Build for Windows with chrono + Documentation: + * Explain vendored-libgit2 + * Add homebrew, misc fixes + * Fix code of conduct link + * Update archlinux + * Add star history + * Add informaton about lazy_static + * Remove broken dependabot link + * Add bright color options in man pages + * Add bright color support in readme changelog + Features: + * Add highlighting of mounted directories (Linux only) + * Add backlog of icons from various exa pull requests and others + * Mark .git as ignored, which hides it when using --git-ignore + * Add backlog of icons from various exa issues + * Expose git2 feature vendored-libgit2 + * Add build commands to deb-package.sh + * Support the MSRV of Rust (1.65.0) + * Add bright colour options, change punctuation default + * Use chrono crate to handle datetime-related features + +------------------------------------------------------------------- +Thu Sep 7 17:42:59 UTC 2023 - Michael Vetter + +- Initial package for eza 0.11.0 for openSUSE diff --git a/eza-0.11.1~0.tar.zst b/eza-0.11.1~0.tar.zst new file mode 100644 index 0000000..082e951 --- /dev/null +++ b/eza-0.11.1~0.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0667e570b289a3aa4504d96d104c61cdfb987b89c55eff1a53d244c3ccccb329 +size 1197749 diff --git a/eza.spec b/eza.spec new file mode 100644 index 0000000..06f507f --- /dev/null +++ b/eza.spec @@ -0,0 +1,118 @@ +# +# spec file for package eza +# +# 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/ +# + + +Name: eza +Version: 0.11.1~0 +Release: 0 +Summary: Replacement for ls written in Rust +License: MIT +Group: System/Base +URL: https://github.com/eza-community/eza +Source0: %{name}-%{version}.tar.zst +Source1: vendor.tar.zst +Source2: cargo_config +BuildRequires: bash-completion +BuildRequires: cargo-packaging +BuildRequires: fish +BuildRequires: zsh +%ifnarch %ix86 %arm ppc +BuildRequires: pandoc +%endif + +%description +eza is a modern, maintained replacement for ls, built on exa. + +%package bash-completion +Summary: Bash Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description bash-completion +Bash command line completion support for %{name}. + +%package zsh-completion +Summary: Zsh Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description zsh-completion +Zsh command line completion support for %{name}. + +%package fish-completion +Summary: Fish completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and fish) +BuildArch: noarch + +%description fish-completion +Fish command line completion support for %{name}. + +%prep +%autosetup -a1 +install -D -m 644 %{SOURCE2} .cargo/config + +%build +%{cargo_build} + +%install +%{cargo_install} + +# Manpage +# pandoc isnt available everywhere +%ifnarch %ix86 %arm ppc +install -d -m 0755 %{buildroot}%{_mandir}/man1/ +pandoc --standalone -f markdown -t man man/eza.1.md > %{buildroot}%{_mandir}/man1/eza.1 + +install -d -m 0755 %{buildroot}%{_mandir}/man5/ +pandoc --standalone -f markdown -t man man/eza_colors.5.md > %{buildroot}%{_mandir}/man5/eza_colors.5 +pandoc --standalone -f markdown -t man man/eza_colors-explanation.5.md > %{buildroot}%{_mandir}/man5/eza_colors-explanation.5 +%endif + +# Completion files +install -Dm0644 completions/bash/eza "%{buildroot}%{_datadir}/bash-completion/completions/%{name}" +install -Dm0644 completions/zsh/_eza "%{buildroot}%{_datadir}/zsh/site-functions/_%{name}" +install -Dm0644 completions/fish/eza.fish "%{buildroot}/%{_datadir}/fish/vendor_completions.d/%{name}.fish" + +%check +%{cargo_test} + +%files +%license LICENCE +%doc README.md +%{_bindir}/eza +%ifnarch %ix86 %arm ppc +%{_mandir}/man1/eza.1%{?ext_man} +%{_mandir}/man5/eza_colors.5%{?ext_man} +%{_mandir}/man5/eza_colors-explanation.5%{?ext_man} +%endif + +%files bash-completion +%{_datadir}/bash-completion/completions/%{name} + +%files zsh-completion +%{_datadir}/zsh/site-functions/_%{name} + +%files fish-completion +%{_datadir}/fish/vendor_completions.d/%{name}.fish + +%changelog diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..99858e0 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5ad57e797e9d8570e5c9d0b48efe47b0ae95b63e06136c408f5951d3826723b +size 31094712