exclude no need .pyc files
Signed-off-by: small_leek <xiasenlin1@huawei.com> (cherry picked from commit 721ec9e8da533f4ac43e4584e6a7173aa3a2dbc5)
This commit is contained in:
parent
2ebba98461
commit
53fc43eed7
11
gn.spec
11
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 <xiasenlin1@huawei.com> - 1.0.0-4
|
||||
- exclude no need .pyc files
|
||||
|
||||
* Mon Mar 13 2023 misaka00251 <liuxin@iscas.ac.cn> - 1.0.0-3
|
||||
- Add risc-v and loongarch support
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user