!7 Fix build error on loongarch
From: @huajingyun Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
fed64f1b5e
9
tre.spec
9
tre.spec
@ -2,7 +2,7 @@
|
|||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||||
Name: tre
|
Name: tre
|
||||||
Version: 0.8.0
|
Version: 0.8.0
|
||||||
Release: 2
|
Release: 3
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Source0: https://github.com/laurikari/tre/archive/%{commit}/tre-%{commit}.tar.gz
|
Source0: https://github.com/laurikari/tre/archive/%{commit}/tre-%{commit}.tar.gz
|
||||||
Patch0: %{name}-chicken.patch
|
Patch0: %{name}-chicken.patch
|
||||||
@ -98,7 +98,11 @@ rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
|
%ifarch loongarch64
|
||||||
|
%attr(0755,root,root) %{python3_sitearch}/tre.cpython-%{python3_version_nodots}.so
|
||||||
|
%else
|
||||||
%attr(0755,root,root) %{python3_sitearch}/tre.cpython-%{python3_version_nodots}*-%{_arch}-linux%{_gnu}.so
|
%attr(0755,root,root) %{python3_sitearch}/tre.cpython-%{python3_version_nodots}*-%{_arch}-linux%{_gnu}.so
|
||||||
|
%endif
|
||||||
%{python3_sitearch}/tre-%{version}-py%{python3_version}.egg-info
|
%{python3_sitearch}/tre-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%files -n agrep
|
%files -n agrep
|
||||||
@ -106,6 +110,9 @@ rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|||||||
%{_mandir}/man1/agrep.1*
|
%{_mandir}/man1/agrep.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 14 2022 huajingyun <huajingyun@loongson.cn> - 0.8.0-3
|
||||||
|
- Fix build error on loongarch
|
||||||
|
|
||||||
* Tue May 10 2022 caodongxia <caodongxia@h-partners.com> - 0.8.0-2
|
* Tue May 10 2022 caodongxia <caodongxia@h-partners.com> - 0.8.0-2
|
||||||
- License compliance rectification
|
- License compliance rectification
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user