diff --git a/.gitignore b/.gitignore index 3eed680..548515c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /ptr_meta-0.1.4.crate +/ptr_meta-0.3.0.crate diff --git a/rust-ptr_meta.spec b/rust-ptr_meta.spec index 1407379..9199911 100644 --- a/rust-ptr_meta.spec +++ b/rust-ptr_meta.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate ptr_meta Name: rust-ptr_meta -Version: 0.1.4 +Version: 0.3.0 Release: %autorelease Summary: Radioactive stabilization of the ptr_meta rfc @@ -13,7 +13,7 @@ License: MIT URL: https://crates.io/crates/ptr_meta Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A radioactive stabilization of the ptr_meta rfc.} @@ -32,7 +32,7 @@ use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/README.md -%doc %{crate_instdir}/crates-io.md +%doc %{crate_instdir}/example.md %{crate_instdir}/ %package -n %{name}+default-devel @@ -47,6 +47,30 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+derive-devel %{_description} + +This package contains library source intended for building other packages which +use the "derive" feature of the "%{crate}" crate. + +%files -n %{name}+derive-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+ptr_meta_derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ptr_meta_derive-devel %{_description} + +This package contains library source intended for building other packages which +use the "ptr_meta_derive" feature of the "%{crate}" crate. + +%files -n %{name}+ptr_meta_derive-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -60,7 +84,7 @@ use the "std" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index f7e26f4..cd06ca1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ptr_meta-0.1.4.crate) = 9936264dd52ae40e6afc8cef8914dbdc5767f397b91ea965d65275fe547a2d9cde7ccdcf908f787e25f84fbc23a2e30df895793fca308e09f48f2adf2e30d2bf +SHA512 (ptr_meta-0.3.0.crate) = b7f8ebb65e58ce742f9e118f894f9cde6af6c499e8fd9413a866c6744dc3aad212508c3fdec3e1aaf657971b5cd358ee68e506eaf1d3c386d8aebb1f523ecf00