optimise spec file

This commit is contained in:
mgb01105731 2022-11-07 15:42:52 +08:00
parent 7bfa280745
commit 17595654a0

View file

@ -1,4 +1,4 @@
%define anolis_release 2 %define anolis_release 3
############################################################################## ##############################################################################
# We support the following options: # We support the following options:
# --with/--without, # --with/--without,
@ -1742,6 +1742,8 @@ echo "%{_prefix}/libexec/glibc-benchtests/validate_benchout.py*" >> benchtests.f
############################################################################### ###############################################################################
echo "%{_libdir}/libpthread_nonshared.a" >> compat-libpthread-nonshared.filelist echo "%{_libdir}/libpthread_nonshared.a" >> compat-libpthread-nonshared.filelist
%generate_compatibility_deps
############################################################################## ##############################################################################
# Run the glibc testsuite # Run the glibc testsuite
############################################################################## ##############################################################################
@ -2037,6 +2039,9 @@ update_gconv_modules_cache ()
# If rpm doesn't support %license, then use %doc instead. # If rpm doesn't support %license, then use %doc instead.
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}
%license COPYING COPYING.LIB LICENSES %license COPYING COPYING.LIB LICENSES
%dir %{abidir}
%{abidir}/*.dump
%{abidir}/*-option.list
%files -f common.filelist common %files -f common.filelist common
%dir %{_prefix}/lib/locale %dir %{_prefix}/lib/locale
@ -2086,6 +2091,9 @@ update_gconv_modules_cache ()
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared %files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog %changelog
* Mon Nov 07 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 2.36-3
- optimise spec file
* Thu Sep 1 2022 Chunmei Xu <xuchunmei@linux.alibaba.com> - 2.36-2 * Thu Sep 1 2022 Chunmei Xu <xuchunmei@linux.alibaba.com> - 2.36-2
- sync patches from 2.36 release branch - sync patches from 2.36 release branch
- upstream commit: b3736d1a3c60a3ec9959bf3b38794958546bf6a2 - upstream commit: b3736d1a3c60a3ec9959bf3b38794958546bf6a2