commit b269350f6f8a38647b7bc23f2130bea2d6c57a407548de0eb4122da83d1f839f Author: Michael Vetter Date: Tue Nov 8 06:52:35 2022 +0000 Accepting request 1034399 from home:uncomfyhalomacro I want to maintain git-cliff in utilities. OBS-URL: https://build.opensuse.org/request/show/1034399 OBS-URL: https://build.opensuse.org/package/show/utilities/git-cliff?expand=0&rev=1 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..cb3079e --- /dev/null +++ b/_service @@ -0,0 +1,8 @@ + + + v0.9.2.tar.gz + gz + true + + + 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/git-cliff.changes b/git-cliff.changes new file mode 100644 index 0000000..a844ad3 --- /dev/null +++ b/git-cliff.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Nov 7 23:09:43 UTC 2022 - Soc Virnyl Estela + +- Initial spec for git-cliff version 0.9.2 diff --git a/git-cliff.spec b/git-cliff.spec new file mode 100644 index 0000000..2ad4d47 --- /dev/null +++ b/git-cliff.spec @@ -0,0 +1,102 @@ +# +# spec file for package git-cliff +# +# 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/ +# + + +Name: git-cliff +Version: 0.9.2 +Release: 0 +Summary: Changelog generator for git repositories +URL: https://github.com/orhun/git-cliff +License: ( (MIT OR Apache-2.0) AND Unicode-DFS-2016 ) AND ( 0BSD OR MIT OR Apache-2.0 ) AND ( Apache-2.0 OR BSL-1.0 ) AND ( Apache-2.0 OR ISC OR MIT ) AND ( Apache-2.0 OR MIT ) AND ( Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT ) AND ( MIT OR Apache-2.0 OR Zlib ) AND ( MIT OR Zlib OR Apache-2.0 ) AND ( Unlicense OR MIT ) AND ( Zlib OR Apache-2.0 OR MIT ) AND Apache-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND GPL-3.0-only +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz +Source1: vendor.tar.gz +Source2: cargo_config +BuildRequires: cargo-packaging +BuildRequires: rust+cargo +ExclusiveArch: %{rust_arches} + +%description +git-cliff is a utility to generate changelogs that follows the +Conventional Commit Specifications. + +%package fish-completion +Summary: Fish Completion for %{name} +Group: System/Shells +Supplements: (%{name} and fish) +Requires: fish +BuildArch: noarch + +%description fish-completion +Fish command-line completion support for %{name}. + +%package zsh-completion +Summary: Zsh Completion for %{name} +Group: System/Shells +Supplements: (%{name} and zsh) +Requires: zsh +BuildArch: noarch + +%description zsh-completion +Zsh command-line completion support for %{name}. + +%package bash-completion +Summary: Bash Completion for %{name} +Group: System/Shells +Supplements: (%{name} and bash-completion) +Requires: bash-completion +BuildArch: noarch + +%description bash-completion +Bash command-line completion support for %{name}. + +%prep +%autosetup -a1 +mkdir .cargo +cp %{SOURCE2} .cargo/config + +%build +%{cargo_build} --all-features +mkdir -p target/completions/ +mkdir -p target/man/ +OUT_DIR=target/completions/ ./target/release/%{name}-completions +OUT_DIR=target/man/ ./target/release/%{name}-mangen + +%install +install -Dm755 -T ./target/release/%{name} %{buildroot}%{_bindir}/%{name} +install -Dm644 -T ./target/completions/%{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} +install -Dm644 -T ./target/completions/%{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish +install -Dm644 -T ./target/completions/_%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name} +install -Dm644 -T ./target/man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 + +%files +%{_bindir}/%{name} +%{_mandir}/man1/git-cliff.1%{?ext_man} +%license LICENSE +%doc README.md RELEASE.md CHANGELOG.md + +%files bash-completion +%{_datadir}/bash-completion/* + +%files fish-completion +%dir %{_datadir}/fish +%{_datadir}/fish/* + +%files zsh-completion +%dir %{_datadir}/zsh +%{_datadir}/zsh/* + +%changelog diff --git a/v0.9.2.tar.gz b/v0.9.2.tar.gz new file mode 100644 index 0000000..75813e4 --- /dev/null +++ b/v0.9.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86ed2b9e84d062a880f431aec2d7550cedfab4232e76af4398f4cc3b3a487cb9 +size 71416 diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..3777b2d --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96e70e2e217719a9d459b757bf2cba3a147b83ffb1b70ca085e8ce8b6913a9f8 +size 36037151