From 53fc43eed79fd5640f77d3f9473857cd3a29e28c Mon Sep 17 00:00:00 2001 From: small_leek Date: Sat, 19 Aug 2023 01:48:36 +0000 Subject: [PATCH 1/3] exclude no need .pyc files Signed-off-by: small_leek (cherry picked from commit 721ec9e8da533f4ac43e4584e6a7173aa3a2dbc5) --- gn.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gn.spec b/gn.spec index 375613d..0940e93 100644 --- a/gn.spec +++ b/gn.spec @@ -2,10 +2,11 @@ %global _debugsource_template %{nil} %endif %global commit e1ac69b17da0c6d4f5e34e686690ff70c6a43e6f +%global with_check 1 Name: gn Version: 1.0.0 -Release: 3 +Release: 4 Summary: Meta-build system that generates build files for Ninja License: BSD-3-Clause URL: https://gn.googlesource.com/gn @@ -77,10 +78,11 @@ install -t '%{buildroot}%{_emacs_sitestartdir}' -D -p -m 0644 misc/emacs/*.el install -t '%{buildroot}%{_mandir}/man1' -D -m 0644 -p out/gn.1 - +%if 0%{?with_check} %check out/gn_unittests rm -rf %{buildroot}%{_datadir}/vim/vimfiles/__pycache__ +%endif %files @@ -93,6 +95,8 @@ rm -rf %{buildroot}%{_datadir}/vim/vimfiles/__pycache__ %{_datadir}/vim/vimfiles/ftplugin/gn.vim %{_datadir}/vim/vimfiles/syntax/gn.vim %{_emacs_sitestartdir}/gn-mode.el +%exclude %{_datadir}/vim/vimfiles/__pycache__ + %files doc %license LICENSE src/base/third_party/icu/README.chromium @@ -106,6 +110,9 @@ rm -rf %{buildroot}%{_datadir}/vim/vimfiles/__pycache__ %changelog +* Sat Aug 19 2023 senlin - 1.0.0-4 +- exclude no need .pyc files + * Mon Mar 13 2023 misaka00251 - 1.0.0-3 - Add risc-v and loongarch support From 994b4493f824bdcdc12e6261541e51dcad774ba1 Mon Sep 17 00:00:00 2001 From: small_leek Date: Sat, 19 Aug 2023 02:10:47 +0000 Subject: [PATCH 2/3] exclude no need .pyc files Signed-off-by: small_leek (cherry picked from commit 3f37a0f487a7bc031ce9d3d7cc7ef0969889ba7c) --- gn.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gn.spec b/gn.spec index 0940e93..ae8839b 100644 --- a/gn.spec +++ b/gn.spec @@ -2,7 +2,7 @@ %global _debugsource_template %{nil} %endif %global commit e1ac69b17da0c6d4f5e34e686690ff70c6a43e6f -%global with_check 1 +#%global with_check 1 Name: gn Version: 1.0.0 @@ -78,11 +78,11 @@ install -t '%{buildroot}%{_emacs_sitestartdir}' -D -p -m 0644 misc/emacs/*.el install -t '%{buildroot}%{_mandir}/man1' -D -m 0644 -p out/gn.1 -%if 0%{?with_check} +#%if 0%{?with_check} %check out/gn_unittests rm -rf %{buildroot}%{_datadir}/vim/vimfiles/__pycache__ -%endif +#%endif %files From 28013e0221e7b230094cf78209cdd06101c944d4 Mon Sep 17 00:00:00 2001 From: small_leek Date: Sat, 19 Aug 2023 02:38:00 +0000 Subject: [PATCH 3/3] exclude no need .pyc files Signed-off-by: small_leek (cherry picked from commit da47c8eab0bc93ddae283372831ccc79b2af18de) --- gn.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/gn.spec b/gn.spec index ae8839b..90badee 100644 --- a/gn.spec +++ b/gn.spec @@ -2,7 +2,6 @@ %global _debugsource_template %{nil} %endif %global commit e1ac69b17da0c6d4f5e34e686690ff70c6a43e6f -#%global with_check 1 Name: gn Version: 1.0.0 @@ -78,11 +77,9 @@ install -t '%{buildroot}%{_emacs_sitestartdir}' -D -p -m 0644 misc/emacs/*.el install -t '%{buildroot}%{_mandir}/man1' -D -m 0644 -p out/gn.1 -#%if 0%{?with_check} %check out/gn_unittests rm -rf %{buildroot}%{_datadir}/vim/vimfiles/__pycache__ -#%endif %files