diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aabc9c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/base64-0.7.0.crate diff --git a/rust-base64.spec b/rust-base64.spec new file mode 100644 index 0000000..994150b --- /dev/null +++ b/rust-base64.spec @@ -0,0 +1,65 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate base64 + +Name: rust-%{crate} +Version: 0.7.0 +Release: 1%{?dist} +Summary: Encodes ands decode base64 as bytes or utf8 + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/base64 +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(byteorder) >= 1.1.0 with crate(byteorder) < 2.0.0) +BuildRequires: (crate(safemem) >= 0.2.0 with crate(safemem) < 0.3.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(rand) >= 0.3.15 with crate(rand) < 0.4.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Encodes and decodes base64 as bytes or utf8. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md RELEASE-NOTES.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Thu Nov 16 2017 Igor Gnatenko - 0.7.0-1 +- Update to 0.7.0 + +* Fri Jun 16 2017 Igor Gnatenko - 0.6.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..55cf5f0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (base64-0.7.0.crate) = 8a9c9e3b63a6e003b54cd62ce9b16c2628c37e63cdb447d5de383367e7af58ad6b66c458568733074ad089e912831b8e3372f0819a56eabce8d87f8a284d9fcf