Compare commits
31 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| ebdb443cd4 | |||
|
|
3041b56e41 | ||
| f15d7e6ba6 | |||
|
|
de245a603b | ||
| 0f43c71c4e | |||
|
|
d3d7fce3f3 | ||
| d6d06feda9 | |||
|
|
c9c808a153 | ||
|
|
cf3d61781a | ||
|
|
6d7ac502e5 | ||
|
|
8fda0bf9fa | ||
| 4546643f46 | |||
| cc92ae87aa | |||
|
|
7d51d959a2 | ||
|
|
6fa7996725 | ||
|
|
2910d229be | ||
|
|
0333367ec8 | ||
| 1393bbe74f | |||
|
|
57846a5112 | ||
| f3768a87df | |||
|
|
30a565e87a | ||
| 5d586341b4 | |||
|
|
e446f6b508 | ||
|
|
448cfefe68 | ||
|
|
0872118663 | ||
|
|
4ca8bff467 | ||
| d785079180 | |||
|
|
bbfeca9580 | ||
|
|
67d99027b1 | ||
|
|
9950d2430c | ||
|
|
f12ddbcfdf |
11
_service
11
_service
@@ -1,9 +1,12 @@
|
||||
<services>
|
||||
<service mode="manual" name="download_files" />
|
||||
<service name="cargo_vendor" mode="manual">
|
||||
<param name="src">roast*.tar.gz</param>
|
||||
<param name="update">true</param>
|
||||
<param name="url">https://codeberg.org/Rusty-Geckos/roast</param>
|
||||
<param name="revision">main</param>
|
||||
<param name="versionrewriteregex">v(.*)</param>
|
||||
<param name="versionrewritepattern">${1}</param>
|
||||
<param name="changesgenerate">true</param>
|
||||
<param name="changesauthor">Soc Virnyl Estela</param>
|
||||
<param name="changesemail">uncomfyhalomacro@opensuse.org</param>
|
||||
</service>
|
||||
<service name="cargo_audit" mode="manual" />
|
||||
</services>
|
||||
|
||||
|
||||
3
roast-10.0.2.tar.zst
Normal file
3
roast-10.0.2.tar.zst
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:188f22fb59227804a724fae3922b6bda70d83250fac1c7074d663dfded519c9b
|
||||
size 100542
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f46fe47acf7a8b13ca26c591a5b06189f45ee177ddcc0a7fe593879b403128a6
|
||||
size 32300
|
||||
276
roast.changes
276
roast.changes
@@ -1,3 +1,279 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 24 13:13:38 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 10.0.2:
|
||||
* chore: bump to version 10.0.2
|
||||
* ci: rename build.yml to ci.yml
|
||||
* clippy: apply clippy fixes
|
||||
* fix: canonicalize path before stripping prefix
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 25 13:50:51 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 10.0.1:
|
||||
* chore(release): v10.0.1
|
||||
* fix: `start_trace` should be passed
|
||||
* chore(release): v10.0.0
|
||||
* tests: add missing flag `--silent`
|
||||
* misc: allow `clippy::if_same_then_else`.
|
||||
* Merge branch '20250625-provide-silent-flag'
|
||||
* refactor: path_buf_filename -> filename
|
||||
* fix: the renaming logic have caused the `outdir` to be useless.
|
||||
* docs: update README.md
|
||||
* feat: if compiled with feature `obs`, make `--silent` flag do nothing.
|
||||
* feat: add silent flag
|
||||
* docs: add a section about reproducibility
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 22 04:00:00 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 9.0.0:
|
||||
* chore(release): v9.0.0
|
||||
* dependencies: specify clap_complete version
|
||||
* feat: create a new binary name for `roast_scm`.
|
||||
* dependencies: remove `walkdir`
|
||||
* fix(tests): add missing fields
|
||||
* feat: add new subcommand `generate-completions-for` using `clap_complete`
|
||||
* dependencies: add clap_complete
|
||||
* workspace: update workspace default members
|
||||
* refactor: `copy_dir_all` should canonicalise the paths to original sources first.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 19 10:15:20 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 8.1.5:
|
||||
* chore(release): bump to v8.1.5
|
||||
* fix: just add one newline lol
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 19 09:44:04 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 8.1.4:
|
||||
* chore(release): v8.1.4
|
||||
* fix: finally properly fix adding the newline.
|
||||
* chore(release): v8.1.3
|
||||
* fix: add newline at the end of the file properly
|
||||
* chore(release): bump to v8.1.2
|
||||
* tests: switch test case from deno to river
|
||||
* format: run `cargo +nightly fmt`
|
||||
* tests: add deno and jay, they're known to contain submodules
|
||||
* fix: update submodule logic if in case the submodule path does not exist.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 19 08:28:04 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 8.1.1:
|
||||
* chore(release): bump to v8.1.1
|
||||
* docs: renaming scheme is now "better"
|
||||
* docs: the `.changes` filename is based on the filename without the version part.
|
||||
* docs: clarify what the header is for
|
||||
* docs: fix grammar here
|
||||
* docs: update README
|
||||
* docs: fix README.md. `obs` feature flag only updates the version in the specfile.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 15 13:21:52 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 8.1.0:
|
||||
* chore(release): bump to v8.1.0
|
||||
* docs: update README.md to reflect new behaviour
|
||||
* ci: add a note for why tests are separated.
|
||||
* improvement: feature obs will just call `set_version_in_specfile`.
|
||||
* format: run `cargo +nightly fmt`
|
||||
* fix: more clap fix workarounds. `changesauthor` is required if `changesgenerate` is set to true.
|
||||
* fix: "prepend" -> "it prepends"
|
||||
* fix: word should be prepend and not append.
|
||||
* fix: `requires_if` to `required_if_eq`
|
||||
* docs: fix typos and inconsistencies in README.md
|
||||
* docs: update README
|
||||
* docs: update README.md
|
||||
* docs: update README.md
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 13 15:02:32 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 8.0.0:
|
||||
* chore(release): bump to v8.0.0
|
||||
* refactor: `renamepattern` should require `rename`
|
||||
* docs: update recomprizz.service file to match new features
|
||||
* Merge branch '20250613-using-no-walkdir'
|
||||
* misc: make the warning clear if renaming fails because of wrong file extension
|
||||
* refactor: rework recomprizz renaming logic
|
||||
* refactor: rework recomprizz args fields to introduce renaming with regex.
|
||||
* ci: switch to leap image
|
||||
* improvement: remove any usage of walkdir
|
||||
* remove: removal of walkdir crate since we are using standard library's fs module only.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 08 14:11:56 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 7.2.4:
|
||||
* chore(release): bump to v7.2.4
|
||||
* dependencies: remove semver crate
|
||||
* misc: add newline to the end of the file if file was not empty before.
|
||||
* Revert "misc: add newline at the end of the dot changes file"
|
||||
* misc: add newline at the end of the dot changes file
|
||||
* refactor: improve getting "number of changes since" logic
|
||||
* misc: change short flag to U
|
||||
* misc: change short flag to U
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 06 08:22:52 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 7.2.3+git3.gc75d73f8953641bc46255a40348edf4c4c0852c3:
|
||||
* refactor: improve getting "number of changes since" logic
|
||||
* misc: change short flag to U
|
||||
* misc: change short flag to U
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 03 13:14:23 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 7.2.3:
|
||||
* chore(release): bump to version 7.2.3
|
||||
* fix: refactor so that after a deletion of tag does not cause an error
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 02 02:06:05 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 7.2.0:
|
||||
* chore(release): bump to version 7.2.0
|
||||
* tests: roast_scm_opts should have `None` as the first parameter
|
||||
* improvement: add a possibility to pass a custom workdir
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 01 13:29:06 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 7.1.2:
|
||||
* chore(release): bump to version 7.1.2
|
||||
* improvement: only update the changelog header if possible
|
||||
* ci: forgot to enable obs in the feature flag
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 01 07:00:58 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 7.1.1:
|
||||
* chore(release): bump to v7.1.1
|
||||
* ci: forgot to specify which test to run
|
||||
* ci: include a test for feature `obs`
|
||||
* misc: update only once the version string.
|
||||
* tests: test feature `obs`
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 31 14:50:08 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Ignore test for scm.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 31 14:11:01 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 7.1.0:
|
||||
* chore(release): bump to v7.1.0
|
||||
* fix: date format now fixed
|
||||
* chore(release): bump to v7.0.0
|
||||
* docs: update README
|
||||
* docs: update roast_scm.service file
|
||||
* format: run `cargo +nightly fmt`
|
||||
* fix: apply clippy suggestions
|
||||
* fix: disable `obs` feature for now in tests
|
||||
* tests: add tests for roast scm
|
||||
* add space
|
||||
* misc: cleanup and whether to disable or enable code for `obs` feature
|
||||
* docs: document the `obs` feature in Cargo.toml
|
||||
* docs: update wording
|
||||
* fix: change alias for changesemail
|
||||
* ci: seems it needs to be more specific where with this blob for *.rs
|
||||
* clippy: remove needless borrow
|
||||
* ci: test if CI runs with this config
|
||||
* refactor: put set_version logic inside `map` as well. create separate function for changelog file generation.
|
||||
* refactor: move changelog file generator code inside `map`
|
||||
* Merge branch '20250523-improve-scm'
|
||||
* fix: add the last newline
|
||||
* feat: append email if `changesemail` passed.
|
||||
* feat: add `changesemail` field for cli
|
||||
* cleanup
|
||||
* misc: add optional obs feature in roast-cli
|
||||
* feat: implement update version in specfile
|
||||
* feat: cli has new fields, `set_name` and `set_version` for obs feature
|
||||
* misc: add optional obs feature
|
||||
* misc: apply `trim()` first for strings before checking if they're empty
|
||||
* misc: `split('\n')` -> `lines()`
|
||||
* misc: use the `to_extension()` method
|
||||
* misc: change this to an iterator
|
||||
* refactor: use `any` since it returns at the first true, otherwise, false.
|
||||
* refactor: use iterators over for loops
|
||||
* misc: change wording
|
||||
* misc: cleanup code for feature, changelog generation.
|
||||
* feat: changelog generation is now implemented.
|
||||
* dependencies: add hifitime
|
||||
* misc: add initial logic for `changesgenerate` feature
|
||||
* feat: add new cli arguments and fieldnames for `RoastScmArgs` related to `changesgenerate`
|
||||
* fix: `remote_checkout_branch` creating a branch from remote branch with incorrect name
|
||||
* api: cleanup visibility and privacy of certain functions
|
||||
* misc: more cleanup
|
||||
* begin iterating for a new future version
|
||||
* misc: add cliff.toml for changelog generation config
|
||||
* fixes: the refactor caused the commit hash to be skipped
|
||||
* docs: add where the final filename is based on.
|
||||
* format: run `cargo +nightly fmt`
|
||||
* improvements: replace dumb lookup by reading config instead
|
||||
* fix: `versionrewriteregex` should require `versionrewritepattern`
|
||||
* feat: `versionrewriteregex` and `versionrewritepattern` implemented
|
||||
* dependencies: add regex crate
|
||||
* fix: it should be prefixed with `g`
|
||||
* fix: version format improvements and fixes
|
||||
* feat: initial versionformat prefix
|
||||
* fixes: checkout should not error if branch is HEAD. sorting in revwalk should not be reversed.
|
||||
* refactor: more cleanup. remove redundant logic
|
||||
* misc: cleanup code
|
||||
* misc: make it clear what depth was set in the warnings
|
||||
* performance: do a dumb revision lookup to check if a revision is a branch
|
||||
* fix: use set_head_detached since we want it to point to a commit
|
||||
* fix: add condition if branch ref is the current HEAD
|
||||
* improvements: if there is no changelog, warn the user
|
||||
* format: run `cargo +nightly fmt`
|
||||
* improvements: roast_scm now is able to generate some changelog
|
||||
* roast_scm: generate changelog improvements
|
||||
* common: add `to_extension` method for Compression
|
||||
* improvements: describe string is implemented alongside improved log messages
|
||||
* fix: set this to 0
|
||||
* clippy: remove redundant &
|
||||
* roast_scm: initial refactor of the cloning process and finding the revision
|
||||
* dependencies: add semver
|
||||
* docs: update README
|
||||
* fmt: run \`cargo +nightly fmt\`
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 19 02:28:44 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 6.1.1:
|
||||
* improvements: allow returning an `Option<PathBuf>` if is-temporary is set to `false`.
|
||||
* fix: import correctly `std::path::PathBuf`.
|
||||
* fix: use the correct return type inside the map.
|
||||
* fix: ensure that the outdir exists
|
||||
* docs: this is roast_scm. this file was copied from recomprizz so it was overlooked accidentally
|
||||
* docs: fix typo in README.md
|
||||
* fix: return type should be Result<Option<PathBuf>>
|
||||
* fix: return type should be Result<Option<PathBuf>>
|
||||
* fix: return Ok(())
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 17 14:34:02 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
- Update to version 6.1.0. This includes changes that are from 6.0.0.
|
||||
* clippy: apply clippy fixes
|
||||
* docs: add and improve doc comments
|
||||
* chore: version bump dependencies
|
||||
* fix: it should be evaluated if it's false
|
||||
* fix: add let binding
|
||||
* improvements: feature is-temporary now have clearer messages if directory was not deleted.
|
||||
* cli: set the is-temporary with ArgAction::Set
|
||||
* docs: improvements on how everything works
|
||||
* feat: is-temporary flag now used.
|
||||
* docs: add roast_scm.service
|
||||
* format: run `cargo +nightly fmt`
|
||||
* clippy: apply clippy fixes
|
||||
* fix: remove unused key in roast-cli's Cargo.toml
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 27 06:19:57 UTC 2024 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||
|
||||
|
||||
131
roast.spec
131
roast.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package roast
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,19 +17,19 @@
|
||||
|
||||
|
||||
Name: roast
|
||||
Version: 5.1.7
|
||||
Version: 10.0.2
|
||||
Release: 0
|
||||
Summary: Simpler tar archiver and extractor
|
||||
License: MPL-2.0
|
||||
URL: https://github.com/openSUSE-Rust/roast
|
||||
Source0: https://github.com/openSUSE-Rust/roast/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source0: %{name}-%{version}.tar.zst
|
||||
Source1: vendor.tar.zst
|
||||
BuildRequires: cargo
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: pkgconfig(libzstd)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
|
||||
%package -n obs-service-recomprizz
|
||||
Version: %{version}
|
||||
Summary: OBS Source Service for recomprizz-ion
|
||||
License: MPL-2.0
|
||||
|
||||
@@ -37,7 +37,6 @@ License: MPL-2.0
|
||||
Utility to recompress to other compression formats.
|
||||
|
||||
%package -n obs-service-roast
|
||||
Version: %{version}
|
||||
Summary: OBS Source Service for roast
|
||||
License: MPL-2.0
|
||||
|
||||
@@ -45,13 +44,52 @@ License: MPL-2.0
|
||||
Utility to roast source directories into highly compressed tape archives.
|
||||
|
||||
%package -n obs-service-raw
|
||||
Version: %{version}
|
||||
Summary: OBS Source Service for raw
|
||||
License: MPL-2.0
|
||||
|
||||
%description -n obs-service-raw
|
||||
Utility to raw decompress tape archives to unarchived sources.
|
||||
|
||||
%package -n obs-service-roast_scm
|
||||
Summary: OBS Source Service for roast_scm
|
||||
License: MPL-2.0
|
||||
|
||||
%description -n obs-service-roast_scm
|
||||
Utility to roast remote git repositories as tarball sources.
|
||||
|
||||
%package fish-completion
|
||||
Summary: Fish Completion for %{name}
|
||||
Group: System/Shells
|
||||
Supplements: (%{name} and fish)
|
||||
Requires: %{name}
|
||||
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: %{name}
|
||||
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: %{name}
|
||||
Requires: bash-completion
|
||||
BuildArch: noarch
|
||||
|
||||
%description bash-completion
|
||||
Bash command-line completion support for %{name}.
|
||||
|
||||
%description
|
||||
Roast is a simple tar archiver and extractor with very high
|
||||
compression settings for supported formats such as zstd.
|
||||
@@ -62,32 +100,66 @@ It also supports recompression from an existing tarball.
|
||||
%autosetup -a1
|
||||
|
||||
%build
|
||||
%{cargo_build}
|
||||
%{cargo_build} -p roast-cli --bins -F obs --target-dir %{_builddir}/%{buildsubdir}/target
|
||||
mkdir with_feature_obs/
|
||||
cp %{_builddir}/%{buildsubdir}/target/release/roast with_feature_obs/
|
||||
cp %{_builddir}/%{buildsubdir}/target/release/roast_scm with_feature_obs/
|
||||
cp %{_builddir}/%{buildsubdir}/target/release/raw with_feature_obs/
|
||||
cp %{_builddir}/%{buildsubdir}/target/release/recomprizz with_feature_obs/
|
||||
# Build again for no obs feature. Those will be installed in %{_bindir}
|
||||
%{cargo_build} -p roast-cli --bins --target-dir %{_builddir}/%{buildsubdir}/target
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/obs/service
|
||||
pushd roast-cli
|
||||
%{cargo_install} --bins
|
||||
%{cargo_install} --bins --target-dir %{_builddir}/%{buildsubdir}/target
|
||||
popd
|
||||
cp -v %{buildroot}%{_bindir}/roast %{buildroot}%{_prefix}/lib/obs/service/roast
|
||||
cp -v %{_builddir}/%{buildsubdir}/with_feature_obs/roast %{buildroot}%{_prefix}/lib/obs/service/roast
|
||||
install -m0644 roast.service %{buildroot}%{_prefix}/lib/obs/service
|
||||
cp -v %{buildroot}%{_bindir}/recomprizz %{buildroot}%{_prefix}/lib/obs/service/recomprizz
|
||||
cp -v %{_builddir}/%{buildsubdir}/with_feature_obs/recomprizz %{buildroot}%{_prefix}/lib/obs/service/recomprizz
|
||||
install -m0644 recomprizz.service %{buildroot}%{_prefix}/lib/obs/service
|
||||
cp -v %{buildroot}%{_bindir}/raw %{buildroot}%{_prefix}/lib/obs/service/raw
|
||||
cp -v %{_builddir}/%{buildsubdir}/with_feature_obs/raw %{buildroot}%{_prefix}/lib/obs/service/raw
|
||||
install -m0644 raw.service %{buildroot}%{_prefix}/lib/obs/service
|
||||
cp -v %{_builddir}/%{buildsubdir}/with_feature_obs/roast_scm %{buildroot}%{_prefix}/lib/obs/service/roast_scm
|
||||
install -m0644 roast_scm.service %{buildroot}%{_prefix}/lib/obs/service
|
||||
|
||||
# Non-functional binary. Still WIP
|
||||
rm %{buildroot}%{_bindir}/roast-scm
|
||||
# Removes the Roast SCM binary with underscore name in /usr/bin
|
||||
rm %{buildroot}/%{_bindir}/roast_scm
|
||||
|
||||
export PATH="${PATH:-}:%{buildroot}/%{_bindir}"
|
||||
for roast_command in "roast-scm" "roast" "recomprizz" "raw"
|
||||
do
|
||||
for shell in "zsh" "bash" "fish"
|
||||
do
|
||||
if [ "$shell" = "bash" ]
|
||||
then
|
||||
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
|
||||
$roast_command generate-completions-for "$shell" > %{buildroot}%{_datadir}/bash-completion/completions/${roast_command}.bash
|
||||
fi
|
||||
if [ "$shell" = "zsh" ]
|
||||
then
|
||||
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/
|
||||
$roast_command generate-completions-for "$shell" > %{buildroot}%{_datadir}/zsh/site-functions/_${roast_command}
|
||||
fi
|
||||
if [ "$shell" = "fish" ]
|
||||
then
|
||||
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d/
|
||||
$roast_command generate-completions-for "$shell" > %{buildroot}%{_datadir}/fish/vendor_completions.d/${roast_command}.fish
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
%check
|
||||
%{cargo_test}
|
||||
%{cargo_test} --test repro --target-dir %{_builddir}/%{buildsubdir}/target
|
||||
%{cargo_test} --test shame --target-dir %{_builddir}/%{buildsubdir}/target
|
||||
|
||||
%files
|
||||
%{_bindir}/roast
|
||||
%{_bindir}/raw
|
||||
%{_bindir}/recomprizz
|
||||
%{_bindir}/roast-scm
|
||||
%license LICENCE
|
||||
%doc CHANGELOG README.md
|
||||
%doc CHANGELOG.md README.md
|
||||
|
||||
%files -n obs-service-roast
|
||||
%dir %{_prefix}/lib/obs
|
||||
@@ -95,7 +167,7 @@ rm %{buildroot}%{_bindir}/roast-scm
|
||||
%{_prefix}/lib/obs/service/roast
|
||||
%{_prefix}/lib/obs/service/roast.service
|
||||
%license LICENCE
|
||||
%doc CHANGELOG README.md
|
||||
%doc CHANGELOG.md README.md
|
||||
|
||||
%files -n obs-service-recomprizz
|
||||
%dir %{_prefix}/lib/obs
|
||||
@@ -103,7 +175,7 @@ rm %{buildroot}%{_bindir}/roast-scm
|
||||
%{_prefix}/lib/obs/service/recomprizz
|
||||
%{_prefix}/lib/obs/service/recomprizz.service
|
||||
%license LICENCE
|
||||
%doc CHANGELOG README.md
|
||||
%doc CHANGELOG.md README.md
|
||||
|
||||
%files -n obs-service-raw
|
||||
%dir %{_prefix}/lib/obs
|
||||
@@ -111,6 +183,29 @@ rm %{buildroot}%{_bindir}/roast-scm
|
||||
%{_prefix}/lib/obs/service/raw
|
||||
%{_prefix}/lib/obs/service/raw.service
|
||||
%license LICENCE
|
||||
%doc CHANGELOG README.md
|
||||
%doc CHANGELOG.md README.md
|
||||
|
||||
%files -n obs-service-roast_scm
|
||||
%dir %{_prefix}/lib/obs
|
||||
%dir %{_prefix}/lib/obs/service
|
||||
%{_prefix}/lib/obs/service/roast_scm
|
||||
%{_prefix}/lib/obs/service/roast_scm.service
|
||||
%license LICENCE
|
||||
%doc CHANGELOG.md README.md
|
||||
|
||||
%files bash-completion
|
||||
%dir %{_datadir}/bash-completion
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%{_datadir}/bash-completion/completions/*
|
||||
|
||||
%files fish-completion
|
||||
%dir %{_datadir}/fish
|
||||
%dir %{_datadir}/fish/vendor_completions.d
|
||||
%{_datadir}/fish/vendor_completions.d/*
|
||||
|
||||
%files zsh-completion
|
||||
%dir %{_datadir}/zsh
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
%{_datadir}/zsh/site-functions/*
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2886021fd1d9de7afa36234bd2014fe053926bacaa7e25193b7fd3491e6781fb
|
||||
size 17940790
|
||||
oid sha256:0e2de92938527bb607c2900f7fb5700ec5b25bcb90b692e38bd1bf8f635a41e8
|
||||
size 23239847
|
||||
|
||||
Reference in New Issue
Block a user