diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59b593e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/test-case-core-3.2.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index ae67169..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-test-case-core - -The rust-test-case-core package diff --git a/rust-test-case-core.spec b/rust-test-case-core.spec new file mode 100644 index 0000000..8c38cdd --- /dev/null +++ b/rust-test-case-core.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate test-case-core + +Name: rust-test-case-core +Version: 3.2.1 +Release: %autorelease +Summary: Core procedural macro for generating parametrized test cases + +License: MIT +URL: https://crates.io/crates/test-case-core +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Provides core functionality for parsing #[test_case(...)] procedural +macro attribute for generating parametrized test cases easily.} + +%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 +%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}+with-regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+with-regex-devel %{_description} + +This package contains library source intended for building other packages which +use the "with-regex" feature of the "%{crate}" crate. + +%files -n %{name}+with-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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..b2ee4fd --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "Core procedural macro for generating parametrized test cases" diff --git a/sources b/sources new file mode 100644 index 0000000..0489206 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (test-case-core-3.2.1.crate) = aa794947a737e8cdc8323cd55f7166eb1d93718f887388dd9537721cd26100ccd2afa27d0a017104024ca3d032ced686c9f778cd01cdd6b15577ae7d3ce1ab3e