diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab4d083 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/obfstr-impl-0.1.1.crate diff --git a/rust-obfstr-impl.spec b/rust-obfstr-impl.spec new file mode 100644 index 0000000..06850b5 --- /dev/null +++ b/rust-obfstr-impl.spec @@ -0,0 +1,87 @@ +# Generated by rust2rpm 15 +%bcond_without check +%global debug_package %{nil} + +%global crate obfstr-impl + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Procedural macro implementation for obfstr + +# Upstream license specification: MIT +# https://github.com/CasualX/obfstr/issues/12 +License: MIT +URL: https://crates.io/crates/obfstr-impl +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Procedural macro implementation for obfstr.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%doc readme.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rand-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand-devel %{_description} + +This package contains library source intended for building other packages +which use "rand" feature of "%{crate}" crate. + +%files -n %{name}+rand-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun Jun 21 17:46:09 CEST 2020 Igor Raits - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f1a77be --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (obfstr-impl-0.1.1.crate) = 811896f109bcc56a8d092c61691f9f5bc2c6137e3f1d3e981429f6ae5a36ae780d790f4b6dcb601fcd134c1ea3a0dfdacb54a1a40e015a61085aa8c8dcfc287e