The package rpms/rust-pam.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-pam.git/commit/?id=a64efb334....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 9b34b23d872accfc8e2c87ca983300fe0e547176
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Jul 23 15:08:12 2021 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/rust-pam.spec b/rust-pam.spec
index 00c8fdd..6e6660b 100644
--- a/rust-pam.spec
+++ b/rust-pam.spec
@@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 0.7.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Safe Rust wrappers for PAM authentication
# Upstream license specification: MIT OR Apache-2.0
@@ -75,5 +75,8 @@ which use "default" feature of "%{crate}" crate.
%endif
%changelog
+* Fri Jul 23 2021 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
* Mon Nov 23 20:31:21 GMT 2020 ed neville <ed(a)s5h.net> - 0.7.0-1
- Initial package
commit a64efb3348cf4b2d84c073bf08e6b8d819c744f7
Author: ed neville <ed-fedora(a)s5h.net>
Date: Fri May 28 20:44:18 2021 +0000
Initial import (#1901114)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..baec630
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/pam-0.7.0.crate
diff --git a/pam-fix-authenticator.diff b/pam-fix-authenticator.diff
new file mode 100644
index 0000000..7640c17
--- /dev/null
+++ b/pam-fix-authenticator.diff
@@ -0,0 +1,24 @@
+diff -Naur pam-0.7.0.orig/examples/spawn_bash.rs pam-0.7.0/examples/spawn_bash.rs
+--- pam-0.7.0.orig/examples/spawn_bash.rs 2020-11-21 12:48:35.542633857 +0000
++++ pam-0.7.0/examples/spawn_bash.rs 2020-11-21 12:50:00.275446490 +0000
+@@ -2,7 +2,7 @@
+ use std::os::unix::process::CommandExt;
+ use std::process::Command;
+
+-use pam_auth::Authenticator;
++use pam::Authenticator;
+ use users::get_user_by_name;
+ use rpassword::read_password_from_tty;
+
+diff -Naur pam-0.7.0.orig/src/authenticator.rs pam-0.7.0/src/authenticator.rs
+--- pam-0.7.0.orig/src/authenticator.rs 2020-11-21 12:48:35.542633857 +0000
++++ pam-0.7.0/src/authenticator.rs 2020-11-21 12:51:22.980239668 +0000
+@@ -15,7 +15,7 @@
+ /// and to the following flow:
+ ///
+ /// ```no_run
+-/// use pam_auth::Authenticator;
++/// use pam::Authenticator;
+ ///
+ /// let mut authenticator = Authenticator::with_password("system-auth")
+ /// .expect("Failed to init PAM client.");
diff --git a/pam-fix-metadata.diff b/pam-fix-metadata.diff
new file mode 100644
index 0000000..723e493
--- /dev/null
+++ b/pam-fix-metadata.diff
@@ -0,0 +1,13 @@
+--- pam-0.7.0/Cargo.toml 1970-01-01T00:00:00+00:00
++++ pam-0.7.0/Cargo.toml 2020-11-23T20:31:21.940891+00:00
+@@ -28,8 +28,8 @@
+ version = "^0.5"
+
+ [dependencies.users]
+-version = "^0.8"
++version = "0.10"
+ [dev-dependencies.rpassword]
+-version = "2.0"
++version = "5.0"
+ [badges.travis-ci]
+ repository = "1wilkens/pam"
diff --git a/rust-pam.spec b/rust-pam.spec
new file mode 100644
index 0000000..00c8fdd
--- /dev/null
+++ b/rust-pam.spec
@@ -0,0 +1,79 @@
+# Generated by rust2rpm 16
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate pam
+
+Name: rust-%{crate}
+Version: 0.7.0
+Release: 1%{?dist}
+Summary: Safe Rust wrappers for PAM authentication
+
+# Upstream license specification: MIT OR Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/pam
+Source: %{crates_source}
+# Bumping dependency of user 8->10, rpassword 2->5,
https://github.com/1wilkens/pam/pull/21
+Patch0: pam-fix-metadata.diff
+# Fixing doctest and library name, PR not needed as fixed upstream
+Patch1: pam-fix-authenticator.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Safe Rust wrappers for PAM authentication.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE-APACHE LICENSE-MIT
+%doc CHANGELOG.md 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
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Mon Nov 23 20:31:21 GMT 2020 ed neville <ed(a)s5h.net> - 0.7.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..78d351a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (pam-0.7.0.crate) =
6f1b646d0de5d53fc105d7bc60c91bef7c9c26d38e507bfaf0281efcd767b667d9465a0f338ddd5edf364331d2b4266db58ed16bcde3b81232ebd47c8bc9c4ba