diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b7e8437 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fern-0.5.9.crate diff --git a/rust-fern.spec b/rust-fern.spec new file mode 100644 index 0000000..3ca4301 --- /dev/null +++ b/rust-fern.spec @@ -0,0 +1,111 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate fern + +Name: rust-%{crate} +Version: 0.5.9 +Release: 1%{?dist} +Summary: Simple, efficient logging + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/fern +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Simple, efficient logging.} + +%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 CHANGELOG.md CONTRIBUTING.md README.md +%license LICENSE +%{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}+colored-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+colored-devel %{_description} + +This package contains library source intended for building other packages +which use "colored" feature of "%{crate}" crate. + +%files -n %{name}+colored-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+libc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+libc-devel %{_description} + +This package contains library source intended for building other packages +which use "libc" feature of "%{crate}" crate. + +%files -n %{name}+libc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+meta-logging-in-format-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+meta-logging-in-format-devel %{_description} + +This package contains library source intended for building other packages +which use "meta-logging-in-format" feature of "%{crate}" crate. + +%files -n %{name}+meta-logging-in-format-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 Jan 12 17:38:50 CET 2020 Robert-André Mauchin - 0.5.9-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..d13d594 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fern-0.5.9.crate) = d0d5b55e02ac4b9ea4f01197563c73eaea2e372f716a9fe6c7a0b395e97fec965499e906ddd2fed4929cd76261e259e484e3eac39c50f78be0e6cb00d5a7d274