From a0fd5dfdf51286abed7aea75bc47cddec85d4fd5 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Sat, 28 Nov 2020 14:42:35 +0100
Subject: [PATCH] remove dependencies on compiler internals

---
 .rust2rpm.conf    |  5 +++++
 rust-getopts.spec | 43 +++++--------------------------------------
 2 files changed, 10 insertions(+), 38 deletions(-)
 create mode 100644 .rust2rpm.conf

diff --git a/.rust2rpm.conf b/.rust2rpm.conf
new file mode 100644
index 0000000..40f3886
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,5 @@
+[DEFAULT]
+unwanted-features =
+  rustc-dep-of-std
+  core
+  std
diff --git a/rust-getopts.spec b/rust-getopts.spec
index 50e1d40..764a346 100644
--- a/rust-getopts.spec
+++ b/rust-getopts.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:        0.2.21
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Getopts-like option parsing
 
 # Upstream license specification: MIT/Apache-2.0
@@ -52,42 +52,6 @@ which use "default" feature of "%{crate}" crate.
 %files       -n %{name}+default-devel
 %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
 
-%package     -n %{name}+core-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+core-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "core" feature of "%{crate}" crate.
-
-%files       -n %{name}+core-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
-%package     -n %{name}+rustc-dep-of-std-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+rustc-dep-of-std-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "rustc-dep-of-std" feature of "%{crate}" crate.
-
-%files       -n %{name}+rustc-dep-of-std-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
-%package     -n %{name}+std-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+std-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "std" feature of "%{crate}" crate.
-
-%files       -n %{name}+std-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
 %prep
 %autosetup -n %{crate}-%{version_no_tilde} -p1
 %cargo_prep
@@ -107,6 +71,9 @@ which use "std" feature of "%{crate}" crate.
 %endif
 
 %changelog
+* Sat Nov 28 2020 Fabio Valentini <decathorpe@gmail.com> - 0.2.21-5
+- Remove dependencies on compiler internals.
+
 * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.21-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild