diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c0411e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/env_filter-0.1.0.crate diff --git a/rust-env_filter.spec b/rust-env_filter.spec new file mode 100644 index 0000000..1a2fafb --- /dev/null +++ b/rust-env_filter.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate env_filter + +Name: rust-env_filter +Version: 0.1.0 +Release: %autorelease +Summary: Filter log events using environment variables + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/env_filter +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Filter log events using environment variables.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regex-devel %{_description} + +This package contains library source intended for building other packages which +use the "regex" feature of the "%{crate}" crate. + +%files -n %{name}+regex-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..ae67d27 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (env_filter-0.1.0.crate) = a0ab51c2b905466d23c75fd77b430dff2956556b7687ea434050c78a497cbe63018c5730be950724c0ca6aefe29bbc379ac01c8a7cd2779a69c5a03e92a21bf1