diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9fdf90c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/szip-1.0.0.crate diff --git a/rust-szip.spec b/rust-szip.spec new file mode 100644 index 0000000..19e7b53 --- /dev/null +++ b/rust-szip.spec @@ -0,0 +1,61 @@ +# Generated by rust2rpm 25 +%bcond_without check + +%global crate szip + +Name: rust-szip +Version: 1.0.0 +Release: %autorelease +Summary: Fast command line tool for snappy compression and decompression + +License: BSD-3-Clause +URL: https://crates.io/crates/szip +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: help2man + +%global _description %{expand: +A fast command line tool for snappy compression and decompression.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +License: BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) + +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license COPYING +%license LICENSE.dependencies +%doc README.md +%{_bindir}/szip +%{_mandir}/man1/szip.1* + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies +help2man --no-info --output=szip.1 ./target/rpm/szip + +%install +%cargo_install +install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 szip.1 + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..d965b0b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (szip-1.0.0.crate) = 702dccfd9c2acecc235e00a2515963ed946fc034d9c26866f1b5481667ef74499831d66f1cfab2ae5047b5b9bd1373b7160823c6441e254f4920eff9bf6b7e31