diff --git a/.gitignore b/.gitignore index fc1f2e3..639c8b5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /xml-rs-0.8.2.crate /xml-rs-0.8.3.crate /xml-rs-0.8.4.crate +/xml-rs-0.8.7.crate diff --git a/README.md b/README.md deleted file mode 100644 index 7771c1d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-xml-rs - -The rust-xml-rs package \ No newline at end of file diff --git a/rust-xml-rs.spec b/rust-xml-rs.spec index 5762e60..75e77c2 100644 --- a/rust-xml-rs.spec +++ b/rust-xml-rs.spec @@ -1,30 +1,25 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} -%global __cargo_is_bin() false - %global crate xml-rs -Name: rust-%{crate} -Version: 0.8.4 +Name: rust-xml-rs +Version: 0.8.7 Release: %autorelease Summary: XML library in pure Rust -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/xml-rs Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * prevent unused xml-analyze binary from being built and shipped +Patch: xml-rs-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -XML library in pure Rust.} +An XML library in pure Rust.} %description %{_description} @@ -34,13 +29,15 @@ 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 design.md Changelog.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/Changelog.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/design.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,11 +45,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index e694d92..e7f6286 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xml-rs-0.8.4.crate) = b21b0db9ee7cdfddae7c110e4fec714d719e75ba139744c290692d660caa425aa8b1ece644deb5f1879f21c0561b9b412b9ba8931f7f5b4e220ef08f8a7fc5e6 +SHA512 (xml-rs-0.8.7.crate) = 3c5982d0b8907a343043c04e1d3c6f643b212e4e6e3658281a31e8a58517052ced3cceb499405dd6e36190e4b4893400933bed00cdac766ca36e9a5ec2473c80 diff --git a/xml-rs-fix-metadata.diff b/xml-rs-fix-metadata.diff new file mode 100644 index 0000000..fd4d1af --- /dev/null +++ b/xml-rs-fix-metadata.diff @@ -0,0 +1,13 @@ +--- xml-rs-0.8.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ xml-rs-0.8.7/Cargo.toml 2023-05-08T12:01:10.296102+00:00 +@@ -40,10 +40,6 @@ + name = "xml" + path = "src/lib.rs" + +-[[bin]] +-name = "xml-analyze" +-path = "src/analyze.rs" +- + [dev-dependencies.doc-comment] + version = "0.3" +