diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..973e29e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/paris-*.crate diff --git a/rust-paris.spec b/rust-paris.spec new file mode 100644 index 0000000..1cc9bed --- /dev/null +++ b/rust-paris.spec @@ -0,0 +1,119 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate paris + +Name: rust-%{crate} +Version: 1.5.11 +Release: %autorelease +Summary: Simple logger for your CLI apps or other things you want in the terminal + +# Upstream license specification: MPL-2.0 +License: MPLv2.0 +URL: https://crates.io/crates/paris +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Simple logger for your CLI apps or other things you want in the terminal.} + +%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 LICENSE +%doc CONTRIBUTING.md 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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+chrono-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+chrono-devel %{_description} + +This package contains library source intended for building other packages which +use the "chrono" feature of the "%{crate}" crate. + +%files -n %{name}+chrono-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+macros-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+macros-devel %{_description} + +This package contains library source intended for building other packages which +use the "macros" feature of the "%{crate}" crate. + +%files -n %{name}+macros-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+no_logger-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+no_logger-devel %{_description} + +This package contains library source intended for building other packages which +use the "no_logger" feature of the "%{crate}" crate. + +%files -n %{name}+no_logger-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+timestamps-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+timestamps-devel %{_description} + +This package contains library source intended for building other packages which +use the "timestamps" feature of the "%{crate}" crate. + +%files -n %{name}+timestamps-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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..d8d6a71 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (paris-1.5.11.crate) = f26cf1213a06e5886f114637ab677dddc7fbb140ffaa79e932125b0f1a60611cdd46e008a7a81c4cffa9e4d4b778849ec2e73ff9bcad217df0729e7e8308a26d