1
0
Ana Guerrero 2024-04-26 21:27:18 +00:00 committed by Git OBS Bridge
commit 00e9499c6c
8 changed files with 79 additions and 41 deletions

View File

@ -1,28 +1,24 @@
<services> <services>
<service mode="disabled" name="obs_scm"> <service mode="manual" name="obs_scm">
<param name="url">https://github.com/str4d/rage.git</param> <param name="url">https://github.com/str4d/rage.git</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="scm">git</param> <param name="scm">git</param>
<param name="revision">v0.9.2</param> <param name="revision">v0.10.0</param>
<param name="match-tag">*</param> <param name="match-tag">*</param>
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param> <param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
<param name="versionrewrite-replacement">\1</param> <param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
<param name="changesauthor">william.brown@suse.com</param> <param name="changesauthor">william.brown@suse.com</param>
</service> </service>
<service mode="disabled" name="tar" /> <service mode="manual" name="tar" />
<service mode="disabled" name="recompress"> <service mode="manual" name="recompress">
<param name="file">*.tar</param> <param name="file">*.tar</param>
<param name="compression">gz</param> <param name="compression">gz</param>
</service> </service>
<service mode="disabled" name="set_version"/> <service mode="manual" name="set_version"/>
<service name="cargo_vendor" mode="disabled"> <service name="cargo_vendor" mode="manual">
<param name="srcdir">rage</param> <param name="srcdir">rage</param>
<param name="compression">zst</param> <param name="compression">zst</param>
<param name="update">true</param> <param name="update">true</param>
</service> </service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">rage</param>
<param name="lockfile">Cargo.lock</param>
</service>
</services> </services>

View File

@ -1,4 +1,4 @@
<servicedata> <servicedata>
<service name="tar_scm"> <service name="tar_scm">
<param name="url">https://github.com/str4d/rage.git</param> <param name="url">https://github.com/str4d/rage.git</param>
<param name="changesrevision">e6180f1a2004008873b8e8d40110995ecec416c4</param></service></servicedata> <param name="changesrevision">5c82b234c6ad3a537b80e8671ae59875464dd53f</param></service></servicedata>

View File

@ -1,5 +0,0 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

3
rage-0.10.0+0.tar.gz Normal file
View File

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

View File

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

View File

@ -1,3 +1,45 @@
-------------------------------------------------------------------
Mon Apr 22 12:15:24 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>
- Enable tests
- Install all language manpages
- Fix -keygen installing to -mount
- Switch from obsoleted practices to modern ones:
* %setup is now %autosetup
* cargo_config is now part of vendor file
* disabledrun is now manualrun
- Update to version 0.10.0+0:
Added:
* Russian translation
* rage-keygen -y IDENTITY_FILE to convert identity files to
recipients.
Changed:
* MSRV is now 1.65.0.
* Migrated from gumdrop to clap for argument parsing.
* -R/--recipients-file and -i/--identity now support "read-once"
files, like those used by process substitution (-i
<(other_binary get-age-identity)) and named pipes.
* The filename - (hyphen) is now treated as an explicit request
to read from standard input when used with -R/--recipients-file
or -i/--identity. It must only occur once across the
-R/--recipients-file and -i/--identity flags, and the input
file. It cannot be used if the input file is omitted.
Fixed:
* OpenSSH private keys passed to -i/--identity that contain
invalid public keys are no longer ignored when encrypting, and
instead cause an error.
* Weak ssh-rsa public keys that are smaller than 2048 bits are
now rejected.
* rage-keygen no longer overwrites existing key files with the
-o/--output flag. This was its behaviour prior to 0.6.0, but
was unintentionally changed when rage was modified to overwrite
existing files. Key file overwriting can still be achieved by
omitting -o/--output and instead piping stdout to the file.
* rage-keygen now prints fatal errors directly instead of them
being hidden behind the RUST_LOG=error environment variable. It
also now sets its return code appropriately instead of always
returning 0.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 26 03:59:43 UTC 2023 - William Brown <william.brown@suse.com> Tue Sep 26 03:59:43 UTC 2023 - William Brown <william.brown@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package rage-encryption # spec file for package rage-encryption
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,7 +20,7 @@
Name: rage-encryption Name: rage-encryption
# This will be set by osc services, that will run after this. # This will be set by osc services, that will run after this.
Version: 0.9.2+0 Version: 0.10.0+0
Release: 0 Release: 0
Summary: X25519-based, simple, modern, and secure file encryption tool Summary: X25519-based, simple, modern, and secure file encryption tool
# If you know the license, put it's SPDX string here. # If you know the license, put it's SPDX string here.
@ -32,7 +32,6 @@ Group: Productivity/Security
URL: https://github.com/str4d/rage URL: https://github.com/str4d/rage
Source0: rage-%{version}.tar.gz Source0: rage-%{version}.tar.gz
Source1: vendor.tar.zst Source1: vendor.tar.zst
Source2: cargo_config
%if %{suse_version} > 1500 %if %{suse_version} > 1500
BuildRequires: cargo-packaging BuildRequires: cargo-packaging
%endif %endif
@ -88,10 +87,7 @@ BuildArch: noarch
Zsh command-line completion support for %{name}. Zsh command-line completion support for %{name}.
%prep %prep
%setup -q -a 0 -n rage-%{version} %autosetup -a 1 -n rage-%{version}
%setup -q -n rage-%{version} -a 1 -D -T
mkdir .cargo
cp %{SOURCE2} .cargo/config
%vendored_licenses_packager_prep %vendored_licenses_packager_prep
%build %build
@ -103,25 +99,34 @@ cp %{SOURCE2} .cargo/config
cargo build %{build_args} cargo build %{build_args}
%endif %endif
cargo run --example generate-completions %{build_args} %check
cargo run --example generate-docs %{build_args} %if %{suse_version} > 1500
%{cargo_test} --features "mount"
%else
cargo test %{build_args}
%endif
%install %install
install -D -d -m 0755 %{buildroot}%{_bindir} pushd target/release
install -m 0755 %{_builddir}/rage-%{version}/target/release/rage %{buildroot}%{_bindir}/rage
install -m 0755 %{_builddir}/rage-%{version}/target/release/rage-keygen %{buildroot}%{_bindir}/rage-keygen
install -m 0755 %{_builddir}/rage-%{version}/target/release/rage-keygen %{buildroot}%{_bindir}/rage-mount
# Install each part of the tool and their respective completions.
for i in "" -keygen -mount; do for i in "" -keygen -mount; do
install -D -p -m 644 target/manpages/rage$i.1.gz %{buildroot}/%{_mandir}/man1/rage$i.1%{?ext_man} install -D -m 0755 rage$i %{buildroot}%{_bindir}/rage$i
install -D -p -m 644 target/completions/rage$i.bash %{buildroot}%{_datadir}/bash-completion/completions/rage$i install -D -p -m 644 completions/rage$i.bash %{buildroot}%{_datadir}/bash-completion/completions/rage$i
install -D -p -m 644 target/completions/rage$i.zsh %{buildroot}%{_datadir}/zsh/site-functions/_rage$i install -D -p -m 644 completions/_rage$i %{buildroot}%{_datadir}/zsh/site-functions/_rage$i
install -D -p -m 644 target/completions/rage$i.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/rage$i.fish install -D -p -m 644 completions/rage$i.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/rage$i.fish
done done
%vendored_licenses_packager_install
%files pushd manpages
mv es_AR es # es_AR doesn't seem to be a correct manpage locale
find . -name "*.1.gz" -exec install -Dpm644 {} %{buildroot}%{_mandir}/{} \;
popd
popd
%vendored_licenses_packager_install
%find_lang rage{,-keygen,-mount} rage.lang --with-man --all-name
%files -f rage.lang
%{_bindir}/rage %{_bindir}/rage
%{_bindir}/rage-keygen %{_bindir}/rage-keygen
%{_bindir}/rage-mount %{_bindir}/rage-mount

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:4977cf5bab4d73b8d51f7df9fa0d72bf077922b25f9da05c2f51369b74cbec68 oid sha256:2d98291bc5a4c0ca9554d87830dca6684805568d1f2a5fe3c349e2fcc48c0f66
size 33927832 size 26472522