diff --git a/README.md b/README.md deleted file mode 100644 index 7bffd4f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-synstructure - -The rust-synstructure package \ No newline at end of file diff --git a/rust-synstructure.spec b/rust-synstructure.spec index 2ebfd02..afb96c9 100644 --- a/rust-synstructure.spec +++ b/rust-synstructure.spec @@ -1,26 +1,20 @@ -# Generated by rust2rpm 18 -# * synstructure_test_traits is not packaged +# Generated by rust2rpm 24 +# * missing dev-dependency: synstructure_test_traits ^0.1 %bcond_with check %global debug_package %{nil} %global crate synstructure -Name: rust-%{crate} +Name: rust-synstructure Version: 0.12.6 Release: %autorelease Summary: Helper methods and macros for custom derives -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/synstructure Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Helper methods and macros for custom derives.} @@ -33,13 +27,13 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +41,11 @@ 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. +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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proc-macro-devel Summary: %{summary} @@ -59,11 +53,11 @@ BuildArch: noarch %description -n %{name}+proc-macro-devel %{_description} -This package contains library source intended for building other packages -which use "proc-macro" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "proc-macro" feature of the "%{crate}" crate. %files -n %{name}+proc-macro-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1