diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..d3fb01b --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,7 @@ +[DEFAULT] +unwanted-features = + db-postgres + db-tokio-postgres + postgres + tokio-pg + tokio-postgres diff --git a/rust-rust_decimal.spec b/rust-rust_decimal.spec index c2c6ed5..2a25bc1 100644 --- a/rust-rust_decimal.spec +++ b/rust-rust_decimal.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 16 %bcond_without check %global debug_package %{nil} @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 1.8.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Decimal Implementation written in pure Rust suitable for financial calculations # Upstream license specification: MIT @@ -89,30 +89,6 @@ which use "db-diesel-postgres" feature of "%{crate}" crate. %files -n %{name}+db-diesel-postgres-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+db-postgres-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+db-postgres-devel %{_description} - -This package contains library source intended for building other packages -which use "db-postgres" feature of "%{crate}" crate. - -%files -n %{name}+db-postgres-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+db-tokio-postgres-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+db-tokio-postgres-devel %{_description} - -This package contains library source intended for building other packages -which use "db-tokio-postgres" feature of "%{crate}" crate. - -%files -n %{name}+db-tokio-postgres-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+diesel-devel Summary: %{summary} BuildArch: noarch @@ -125,18 +101,6 @@ which use "diesel" feature of "%{crate}" crate. %files -n %{name}+diesel-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+postgres-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+postgres-devel %{_description} - -This package contains library source intended for building other packages -which use "postgres" feature of "%{crate}" crate. - -%files -n %{name}+postgres-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch @@ -185,30 +149,6 @@ which use "std" feature of "%{crate}" crate. %files -n %{name}+std-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+tokio-pg-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+tokio-pg-devel %{_description} - -This package contains library source intended for building other packages -which use "tokio-pg" feature of "%{crate}" crate. - -%files -n %{name}+tokio-pg-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+tokio-postgres-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+tokio-postgres-devel %{_description} - -This package contains library source intended for building other packages -which use "tokio-postgres" feature of "%{crate}" crate. - -%files -n %{name}+tokio-postgres-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep @@ -228,6 +168,9 @@ which use "tokio-postgres" feature of "%{crate}" crate. %endif %changelog +* Sat Dec 12 2020 Fabio Valentini - 1.8.1-2 +- Remove features with missing dependencies (postgres, tokio-postgres). + * Wed Sep 23 2020 Fabio Valentini - 1.8.1-1 - Update to version 1.8.1.