The package rpms/rust-alsa-sys.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-alsa-sys.git/commit/?id=317b...
https://src.fedoraproject.org/cgit/rpms/rust-alsa-sys.git/commit/?id=f220...
https://src.fedoraproject.org/cgit/rpms/rust-alsa-sys.git/commit/?id=3379...
https://src.fedoraproject.org/cgit/rpms/rust-alsa-sys.git/commit/?id=d0de....
Change:
-ExclusiveArch: %{rust_arches}
+ExclusiveArch: %{rust_arches}
-ExclusiveArch: %{rust_arches}
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 317b902bc8450ca05cffbd59289448d70d15688f
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Mon Jul 24 22:58:24 2023 -0700
Regenerate with rust2rpm 24; Fixes: RHBZ#2224956
diff --git a/alsa-sys-fix-metadata.diff b/alsa-sys-fix-metadata.diff
new file mode 100644
index 0000000..4c0dfd9
--- /dev/null
+++ b/alsa-sys-fix-metadata.diff
@@ -0,0 +1,8 @@
+--- alsa-sys-0.3.1/Cargo.toml 2020-12-22T20:30:47+00:00
++++ alsa-sys-0.3.1/Cargo.toml 2023-07-25T05:54:41.960681+00:00
+@@ -27,3 +27,5 @@
+ version = "0.2.65"
+ [build-dependencies.pkg-config]
+ version = "0.3"
++[lib]
++doctest = false
diff --git a/rust-alsa-sys.spec b/rust-alsa-sys.spec
index caa8f30..d33626d 100644
--- a/rust-alsa-sys.spec
+++ b/rust-alsa-sys.spec
@@ -1,24 +1,22 @@
-# Generated by rust2rpm 20
-# Deactivate tests because of missing function
-#
https://github.com/diwic/alsa-sys/issues/8
-%bcond_with check
+# Generated by rust2rpm 24
+%bcond_without check
%global debug_package %{nil}
%global crate alsa-sys
-Name: rust-%{crate}
+Name: rust-alsa-sys
Version: 0.3.1
Release: %autorelease
Summary: FFI bindings for the ALSA project (Advanced Linux Sound Architecture)
-# Upstream license specification: MIT
License: MIT
URL:
https://crates.io/crates/alsa-sys
Source: %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * skip doctests:
https://github.com/diwic/alsa-sys/commit/3a6d3b26bdc21ac74a0ba6e4a637decf...
+Patch: alsa-sys-fix-metadata.diff
-ExclusiveArch: %{rust_arches}
-
-BuildRequires: rust-packaging
+BuildRequires: rust-packaging >= 21
%global _description %{expand:
FFI bindings for the ALSA project (Advanced Linux Sound Architecture).}
@@ -28,7 +26,7 @@ FFI bindings for the ALSA project (Advanced Linux Sound Architecture).}
%package devel
Summary: %{summary}
BuildArch: noarch
-Requires: alsa-lib-devel
+Requires: pkgconfig(alsa)
%description devel %{_description}
@@ -36,9 +34,9 @@ This package contains library source intended for building other
packages which
use the "%{crate}" crate.
%files devel
-%license LICENSE
-%doc README.md
-%{cargo_registry}/%{crate}-%{version_no_tilde}/
+%license %{crate_instdir}/LICENSE
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
@@ -50,7 +48,7 @@ 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
@@ -58,7 +56,7 @@ use the "default" feature of the "%{crate}" crate.
%generate_buildrequires
%cargo_generate_buildrequires
-echo "alsa-lib-devel"
+echo 'pkgconfig(alsa)'
%build
%cargo_build
diff --git a/rust2rpm.conf b/rust2rpm.conf
new file mode 100644
index 0000000..579e2c7
--- /dev/null
+++ b/rust2rpm.conf
@@ -0,0 +1,5 @@
+[DEFAULT]
+buildrequires =
+ pkgconfig(alsa)
+lib.requires =
+ pkgconfig(alsa)
commit f2200892f4b824ac232a497bf060717d322e4349
Author: Tomas Hrcka <thrcka(a)redhat.com>
Date: Tue Jul 25 07:44:30 2023 +0200
Unretirement request:
https://pagure.io/releng/issue/11563
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1beb0e4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/alsa-sys-0.3.1.crate
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a2ece2c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# rust-alsa-sys
+
+The rust-alsa-sys package
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..3ce4ffb
--- /dev/null
+++ b/changelog
@@ -0,0 +1,2 @@
+* Fri Jun 25 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.3.1-1
+- Initial package
diff --git a/dead.package b/dead.package
deleted file mode 100644
index c7912ba..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-no longer needed
diff --git a/rust-alsa-sys.spec b/rust-alsa-sys.spec
new file mode 100644
index 0000000..caa8f30
--- /dev/null
+++ b/rust-alsa-sys.spec
@@ -0,0 +1,75 @@
+# Generated by rust2rpm 20
+# Deactivate tests because of missing function
+#
https://github.com/diwic/alsa-sys/issues/8
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate alsa-sys
+
+Name: rust-%{crate}
+Version: 0.3.1
+Release: %autorelease
+Summary: FFI bindings for the ALSA project (Advanced Linux Sound Architecture)
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/alsa-sys
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+FFI bindings for the ALSA project (Advanced Linux Sound Architecture).}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: alsa-lib-devel
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license LICENSE
+%doc README.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%package -n %{name}+default-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+default-devel %{_description}
+
+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
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+echo "alsa-lib-devel"
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..200fc19
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (alsa-sys-0.3.1.crate) =
6523d909c500fee433f934eedfdc200cfc52e1b55be09434665210c16bb9af3593d8b1346ace184b171c7135a7aa65fdac5ca8c68e64f9d20436e1d8fac961fe
commit 3379a52d8fee89a319161d02f220a083adc80f4a
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Wed Apr 27 14:48:09 2022 +0200
no longer needed
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 1beb0e4..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/alsa-sys-0.3.1.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index a2ece2c..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-alsa-sys
-
-The rust-alsa-sys package
diff --git a/changelog b/changelog
deleted file mode 100644
index 3ce4ffb..0000000
--- a/changelog
+++ /dev/null
@@ -1,2 +0,0 @@
-* Fri Jun 25 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.3.1-1
-- Initial package
diff --git a/dead.package b/dead.package
new file mode 100644
index 0000000..c7912ba
--- /dev/null
+++ b/dead.package
@@ -0,0 +1 @@
+no longer needed
diff --git a/rust-alsa-sys.spec b/rust-alsa-sys.spec
deleted file mode 100644
index caa8f30..0000000
--- a/rust-alsa-sys.spec
+++ /dev/null
@@ -1,75 +0,0 @@
-# Generated by rust2rpm 20
-# Deactivate tests because of missing function
-#
https://github.com/diwic/alsa-sys/issues/8
-%bcond_with check
-%global debug_package %{nil}
-
-%global crate alsa-sys
-
-Name: rust-%{crate}
-Version: 0.3.1
-Release: %autorelease
-Summary: FFI bindings for the ALSA project (Advanced Linux Sound Architecture)
-
-# Upstream license specification: MIT
-License: MIT
-URL:
https://crates.io/crates/alsa-sys
-Source: %{crates_source}
-
-ExclusiveArch: %{rust_arches}
-
-BuildRequires: rust-packaging
-
-%global _description %{expand:
-FFI bindings for the ALSA project (Advanced Linux Sound Architecture).}
-
-%description %{_description}
-
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-Requires: alsa-lib-devel
-
-%description devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "%{crate}" crate.
-
-%files devel
-%license LICENSE
-%doc README.md
-%{cargo_registry}/%{crate}-%{version_no_tilde}/
-
-%package -n %{name}+default-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+default-devel %{_description}
-
-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
-
-%prep
-%autosetup -n %{crate}-%{version_no_tilde} -p1
-%cargo_prep
-
-%generate_buildrequires
-%cargo_generate_buildrequires
-echo "alsa-lib-devel"
-
-%build
-%cargo_build
-
-%install
-%cargo_install
-
-%if %{with check}
-%check
-%cargo_test
-%endif
-
-%changelog
-%autochangelog
diff --git a/sources b/sources
deleted file mode 100644
index 200fc19..0000000
--- a/sources
+++ /dev/null
@@ -1 +0,0 @@
-SHA512 (alsa-sys-0.3.1.crate) =
6523d909c500fee433f934eedfdc200cfc52e1b55be09434665210c16bb9af3593d8b1346ace184b171c7135a7aa65fdac5ca8c68e64f9d20436e1d8fac961fe
commit 76840d7a7c86f492e39fbb84b08c6b6a41a95a95
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Fri Jan 28 00:25:30 2022 -0500
Update to rust2rpm 20
diff --git a/rust-alsa-sys.spec b/rust-alsa-sys.spec
index cced985..caa8f30 100644
--- a/rust-alsa-sys.spec
+++ b/rust-alsa-sys.spec
@@ -1,4 +1,4 @@
-# Generated by rust2rpm 17
+# Generated by rust2rpm 20
# Deactivate tests because of missing function
#
https://github.com/diwic/alsa-sys/issues/8
%bcond_with check
@@ -17,9 +17,6 @@ URL:
https://crates.io/crates/alsa-sys
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
-%if %{__cargo_skip_build}
-BuildArch: noarch
-%endif
BuildRequires: rust-packaging
@@ -35,8 +32,8 @@ Requires: alsa-lib-devel
%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
@@ -49,8 +46,8 @@ 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
commit 9d56507b8d6d81a7f3a17c4478d2d3e05854ba50
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Jan 21 19:37:59 2022 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
commit 9ce317961f8be1adc03d1a8b23874efdfd400280
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Jul 23 13:04:46 2021 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
commit d4bdf44f60427c418bd217f689ac0b555879fdff
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Fri Jul 9 11:56:18 2021 -0400
Add changelog
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..3ce4ffb
--- /dev/null
+++ b/changelog
@@ -0,0 +1,2 @@
+* Fri Jun 25 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.3.1-1
+- Initial package
commit c97a3b4beeabb509c6db708fab9118479d9c0803
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Fri Jul 9 11:44:53 2021 -0400
Convert to rpmautospec
diff --git a/rust-alsa-sys.spec b/rust-alsa-sys.spec
index 840b151..cced985 100644
--- a/rust-alsa-sys.spec
+++ b/rust-alsa-sys.spec
@@ -8,7 +8,7 @@
Name: rust-%{crate}
Version: 0.3.1
-Release: 1%{?dist}
+Release: %autorelease
Summary: FFI bindings for the ALSA project (Advanced Linux Sound Architecture)
# Upstream license specification: MIT
@@ -75,5 +75,4 @@ echo "alsa-lib-devel"
%endif
%changelog
-* Fri Jun 25 16:32:40 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.3.1-1
-- Initial package
+%autochangelog
commit d0ded8fe03036046f2a5ecf0502fc6b229a2b34f
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Wed Jul 7 20:11:32 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1beb0e4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/alsa-sys-0.3.1.crate
diff --git a/rust-alsa-sys.spec b/rust-alsa-sys.spec
new file mode 100644
index 0000000..840b151
--- /dev/null
+++ b/rust-alsa-sys.spec
@@ -0,0 +1,79 @@
+# Generated by rust2rpm 17
+# Deactivate tests because of missing function
+#
https://github.com/diwic/alsa-sys/issues/8
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate alsa-sys
+
+Name: rust-%{crate}
+Version: 0.3.1
+Release: 1%{?dist}
+Summary: FFI bindings for the ALSA project (Advanced Linux Sound Architecture)
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/alsa-sys
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+FFI bindings for the ALSA project (Advanced Linux Sound Architecture).}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: alsa-lib-devel
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE
+%doc README.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%package -n %{name}+default-devel
+Summary: %{summary}
+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.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+echo "alsa-lib-devel"
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Fri Jun 25 16:32:40 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.3.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..200fc19
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (alsa-sys-0.3.1.crate) =
6523d909c500fee433f934eedfdc200cfc52e1b55be09434665210c16bb9af3593d8b1346ace184b171c7135a7aa65fdac5ca8c68e64f9d20436e1d8fac961fe