diff --git a/README.md b/README.md deleted file mode 100644 index fdd8edf..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-bzip2 - -The rust-bzip2 package \ No newline at end of file diff --git a/rust-bzip2.spec b/rust-bzip2.spec index d6f367e..7b2f7f6 100644 --- a/rust-bzip2.spec +++ b/rust-bzip2.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 26 # * dev-dependencies are outdated %bcond_with check %global debug_package %{nil} @@ -15,7 +15,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/bzip2 Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Bindings to libbzip2 for bzip2 compression and decompression exposed as @@ -50,44 +50,8 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+futures-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+futures-devel %{_description} - -This package contains library source intended for building other packages which -use the "futures" feature of the "%{crate}" crate. - -%files -n %{name}+futures-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+tokio-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+tokio-devel %{_description} - -This package contains library source intended for building other packages which -use the "tokio" feature of the "%{crate}" crate. - -%files -n %{name}+tokio-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+tokio-io-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+tokio-io-devel %{_description} - -This package contains library source intended for building other packages which -use the "tokio-io" feature of the "%{crate}" crate. - -%files -n %{name}+tokio-io-devel -%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/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index ba12dc4..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,3 +0,0 @@ -[DEFAULT] -unwanted-features = - static diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..6f1501b --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,17 @@ +[package] +summary = "Bindings to libbzip2 exposed as Reader/Writer streams" + +[tests] +run = ["none"] +comments = ["dev-dependencies are outdated"] + +[features] +hide = [ + # unused support code for tokio v0.1 and futures v0.1 + "futures", + "tokio", + "tokio-io", + # only dynamically linking system bzip2 is supported + "static", +] +