!3 mod_authnz_pam delete -S git from %autosetup, and delete BuildRequires git

From: @chenyanpanHW
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2021-08-13 02:16:21 +00:00 committed by Gitee
commit c951aae7bb

View File

@ -1,12 +1,12 @@
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
Name: mod_authnz_pam
Version: 1.2.0
Release: 3
Release: 4
Summary: PAM Basic Authentication provider and check.
License: ASL 2.0
URL: http://www.adelton.com/apache/mod_authnz_pam/
Source0: http://www.adelton.com/apache/mod_authnz_pam/mod_authnz_pam-%{version}.tar.gz
BuildRequires: gcc httpd-devel pam-devel pkgconfig git
BuildRequires: gcc httpd-devel pam-devel pkgconfig
Requires: httpd-mmn = %{_httpd_mmn} pam
%description
@ -15,7 +15,7 @@ authorization module completed by other modules. It can also provide
[name, password] authentication through the PAM stack.
%prep
%autosetup -n mod_authnz_pam-%{version} -p1 -S git
%autosetup -n mod_authnz_pam-%{version} -p1
%build
%{_bindir}/apxs -c -Wc,"%{optflags} -Wall -pedantic -std=c99" -lpam mod_authnz_pam.c
@ -35,6 +35,9 @@ install -Dp -m 0644 authnz_pam.confx $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
%{_libdir}/httpd/modules/*.so
%changelog
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.2.0-4
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Wed Jun 09 2021 wulei <wulei80@huawei.com> - 1.2.0-3
- fixes failed: git: No such file or directory