diff --git a/gn.spec b/gn.spec index 453d6c2..2a43f77 100644 --- a/gn.spec +++ b/gn.spec @@ -40,8 +40,8 @@ Summary: Meta-build system that generates build files for Ninja # verify this with: # gdb -ex 'set pagination off' -ex 'info sources' gn | grep -F gn_test.cc License: BSD and Unicode and MIT -URL: https://%{name}.googlesource.com/%{name} -Source0: %{url}/+archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz +URL: https://gn.googlesource.com/gn +Source0: %{url}/+archive/%{commit}.tar.gz#/gn-%{shortcommit}.tar.gz # Generated using script update-version: Source1: last_commit_position.h Source2: update-version @@ -52,9 +52,9 @@ Source2: update-version # https://src.fedoraproject.org/rpms/chromium/raw/ # ce30313f5e4af121140c037bf026453355534f24/f/ # chromium-84.0.4147.105-gn-gcc-cleanup.patch -Patch0: %{name}-39a87c0b-gcc-cleanup.patch +Patch0: gn-39a87c0b-gcc-cleanup.patch # Stop overriding optimization flags -Patch1: %{name}-0153d369-no-O3.patch +Patch1: gn-0153d369-no-O3.patch BuildRequires: python3 BuildRequires: python3-devel @@ -69,11 +69,11 @@ BuildRequires: help2man Requires: vim-filesystem Requires: python3 -Provides: vim-%{name} = %{version}-%{release} +Provides: vim-gn = %{version}-%{release} BuildRequires: emacs Requires: emacs-filesystem >= %{_emacs_version} -Provides: emacs-%{name} = %{version}-%{release} +Provides: emacs-gn = %{version}-%{release} %description @@ -85,11 +85,11 @@ Summary: Documentation for GN BuildArch: noarch %description doc -The %{name}-doc package contains detailed documentation for GN. +The gn-doc package contains detailed documentation for GN. %prep -%autosetup -c -n %{name}-%{commit} -p1 +%autosetup -c -n gn-%{commit} -p1 # Use pre-generated last_commit_position.h. mkdir -p ./out @@ -123,29 +123,29 @@ find . -type f -name '*.md' | parallel -v pandoc -o '{.}.html' '{}' help2man \ --name='%{summary}' \ - --version-string="%{name} $(./out/%{name} --version)" \ + --version-string="gn $(./out/gn --version)" \ --no-info \ - ./out/%{name} | + ./out/gn | # Clean up a couple of stray binary bytes in the help output tr -d '\302\240' | # Format the entries within the sections as tagged paragraphs, and italicise # [placeholders in square brackets]. sed -r -e 's/(^[[:alnum:]_]+:)/.TP\n.B \1\n/' \ - -e 's/\[([^]]+)\]/\\fI[\1]\\fR/g' > out/%{name}.1 + -e 's/\[([^]]+)\]/\\fI[\1]\\fR/g' > out/gn.1 %install -install -t '%{buildroot}%{_bindir}' -D -p out/%{name} +install -t '%{buildroot}%{_bindir}' -D -p out/gn install -d '%{buildroot}%{_datadir}/vim/vimfiles' cp -vrp misc/vim/* '%{buildroot}%{_datadir}/vim/vimfiles' find '%{buildroot}%{_datadir}/vim/vimfiles' \ -type f -name 'README.*' -print -delete -%py_byte_compile %{__python3} '%{buildroot}%{_datadir}/vim/vimfiles/%{name}-format.py' +%py_byte_compile %{__python3} '%{buildroot}%{_datadir}/vim/vimfiles/gn-format.py' install -t '%{buildroot}%{_emacs_sitestartdir}' -D -p -m 0644 misc/emacs/*.el -install -t '%{buildroot}%{_mandir}/man1' -D -m 0644 -p out/%{name}.1 +install -t '%{buildroot}%{_mandir}/man1' -D -m 0644 -p out/gn.1 %check @@ -162,17 +162,17 @@ grep -E '^#define[[:blank:]]+LAST_COMMIT_POSITION[[:blank:]]+'\ %files %license LICENSE -%{_bindir}/%{name} +%{_bindir}/gn -%{_mandir}/man1/%{name}.1* +%{_mandir}/man1/gn.1* -%{_datadir}/vim/vimfiles/%{name}-format.py -%{_datadir}/vim/vimfiles/autoload/%{name}.vim -%{_datadir}/vim/vimfiles/ftdetect/%{name}filetype.vim -%{_datadir}/vim/vimfiles/ftplugin/%{name}.vim -%{_datadir}/vim/vimfiles/syntax/%{name}.vim +%{_datadir}/vim/vimfiles/gn-format.py +%{_datadir}/vim/vimfiles/autoload/gn.vim +%{_datadir}/vim/vimfiles/ftdetect/gnfiletype.vim +%{_datadir}/vim/vimfiles/ftplugin/gn.vim +%{_datadir}/vim/vimfiles/syntax/gn.vim -%{_emacs_sitestartdir}/%{name}-mode.el +%{_emacs_sitestartdir}/gn-mode.el %files doc