!36 fuse 自动打补丁

From: @lixiaokeng
Reviewed-by: @wubo009
Signed-off-by: @wubo009
This commit is contained in:
openeuler-ci-bot 2021-07-27 02:30:04 +00:00 committed by Gitee
commit 35a991c6fe

View File

@ -2,7 +2,7 @@
Name: fuse Name: fuse
Version: %{fuse2ver} Version: %{fuse2ver}
Release: 7 Release: 8
Summary: User space File System of fuse2 Summary: User space File System of fuse2
License: GPL+ and LGPLv2+ License: GPL+ and LGPLv2+
URL: http://fuse.sf.net URL: http://fuse.sf.net
@ -47,25 +47,16 @@ Requires: man
This contains man files for the using of fuse This contains man files for the using of fuse
%prep %prep
%setup -q -T -c -n fuse -a0 %autosetup -n %{name}-%{fuse2ver} -p1
pushd %{name}-%{fuse2ver}
%patch0 -p1
%patch1 -p1
popd
%build %build
pushd %{name}-%{fuse2ver}
export MOUNT_FUSE_PATH="%{_sbindir}" export MOUNT_FUSE_PATH="%{_sbindir}"
export CFLAGS="%{optflags} -D_GNU_SOURCE" export CFLAGS="%{optflags} -D_GNU_SOURCE"
%configure --enable-lib %configure --enable-lib
%make_build %make_build
popd
%install %install
pushd %{name}-%{fuse2ver}
%make_install %make_install
popd
rm -f %{buildroot}/%{_libdir}/*.a rm -f %{buildroot}/%{_libdir}/*.a
rm -f %{buildroot}%{_sysconfdir}/init.d/fuse rm -f %{buildroot}%{_sysconfdir}/init.d/fuse
@ -77,8 +68,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%postun -n fuse -p /sbin/ldconfig %postun -n fuse -p /sbin/ldconfig
%files %files
%doc fuse-%{fuse2ver}/{AUTHORS,ChangeLog,NEWS,README*} %doc {AUTHORS,ChangeLog,NEWS,README*}
%license fuse-%{fuse2ver}/COPYING %license COPYING
%{_sbindir}/mount.fuse %{_sbindir}/mount.fuse
%attr(4755,root,root) %{_bindir}/fusermount %attr(4755,root,root) %{_bindir}/fusermount
%{_bindir}/ulockmgr_server %{_bindir}/ulockmgr_server
@ -99,6 +90,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
%changelog %changelog
- Mon Jul 26 2021 lixiaokeng <lixiaokeng@huawei.com> -2.9.9-8
- autosetup patch
- Sat Jun 19 2021 yanglongkang <yanglongkang@huawei.com> -2.9.9-7 - Sat Jun 19 2021 yanglongkang <yanglongkang@huawei.com> -2.9.9-7
- fix changelog error - fix changelog error