Fix missing patch in source package

This commit is contained in:
lingsheng 2021-09-02 15:15:09 +08:00
parent b97bd780a1
commit 8732b97769

View File

@ -6,7 +6,7 @@
%global Pname redis %global Pname redis
Name: redis6 Name: redis6
Version: 6.0.11 Version: 6.0.11
Release: 2 Release: 3
Summary: A persistent key-value database Summary: A persistent key-value database
License: BSD and MIT License: BSD and MIT
URL: https://redis.io URL: https://redis.io
@ -18,9 +18,9 @@ Source6: %{Pname}-shutdown
Source7: %{Pname}-limit-systemd Source7: %{Pname}-limit-systemd
Source9: macros.%{Pname} Source9: macros.%{Pname}
Source10: https://github.com/%{Pname}/%{Pname}-doc/archive/%{doc_commit}/%{Pname}-doc-%{short_doc_commit}.tar.gz Source10: https://github.com/%{Pname}/%{Pname}-doc/archive/%{doc_commit}/%{Pname}-doc-%{short_doc_commit}.tar.gz
%ifarch aarch64
Patch0001: Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch Patch0001: Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch
%endif
BuildRequires: make gcc BuildRequires: make gcc
%if %{with tests} %if %{with tests}
BuildRequires: procps-ng tcl BuildRequires: procps-ng tcl
@ -76,7 +76,10 @@ administration and development.
%prep %prep
tar -xvf %{SOURCE10} tar -xvf %{SOURCE10}
%autosetup -n %{Pname}-%{version} -p1 %setup -n %{Pname}-%{version}
%ifarch aarch64
%patch0001 -p1
%endif
mv ../%{Pname}-doc-%{doc_commit} doc mv ../%{Pname}-doc-%{doc_commit} doc
mv deps/lua/COPYRIGHT COPYRIGHT-lua mv deps/lua/COPYRIGHT COPYRIGHT-lua
mv deps/jemalloc/COPYING COPYING-jemalloc mv deps/jemalloc/COPYING COPYING-jemalloc
@ -205,6 +208,9 @@ fi
%{_docdir}/%{Pname} %{_docdir}/%{Pname}
%changelog %changelog
* Thu Sep 02 2021 lingsheng <lingsheng@huawei.com> - 6.0.11-3
- Fix missing patch in source package
* Mon Mar 29 2021 lingsheng <lingsheng@huawei.com> - 6.0.11-2 * Mon Mar 29 2021 lingsheng <lingsheng@huawei.com> - 6.0.11-2
- Modify aarch64 architecture jemalloc page size from 4k to 64k - Modify aarch64 architecture jemalloc page size from 4k to 64k