package created using the webbuild interface [release 0.20190301git-1mamba;Fri Mar 01 2019]
This commit is contained in:
parent
9d7af715e0
commit
f531bbee6c
@ -1,2 +1,4 @@
|
|||||||
# gn
|
# gn
|
||||||
|
|
||||||
|
GN is a meta-build system that generates build files for Ninja.
|
||||||
|
|
||||||
|
59
gn.spec
Normal file
59
gn.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
Name: gn
|
||||||
|
Version: 0.20190301git
|
||||||
|
Release: 1mamba
|
||||||
|
Summary: A meta-build system that generates build files for Ninja
|
||||||
|
Group: Development/Tools
|
||||||
|
Vendor: openmamba
|
||||||
|
Distribution: openmamba
|
||||||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
|
URL: https://gn.googlesource.com/gn/+/master/README.md
|
||||||
|
## GITSOURCE https://gn.googlesource.com/gn.git master
|
||||||
|
Source: https://gn.googlesource.com/gn.git/master/gn-%{version}.tar.bz2
|
||||||
|
License: BSD
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libgcc
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
|
%description
|
||||||
|
GN is a meta-build system that generates build files for Ninja.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
cat > tools/gn/last_commit_position.h << _EOF
|
||||||
|
// Generated by build/gen.py.
|
||||||
|
|
||||||
|
#ifndef OUT_LAST_COMMIT_POSITION_H_
|
||||||
|
#define OUT_LAST_COMMIT_POSITION_H_
|
||||||
|
|
||||||
|
#define LAST_COMMIT_POSITION "0 (0)"
|
||||||
|
|
||||||
|
#endif // OUT_LAST_COMMIT_POSITION_H_
|
||||||
|
_EOF
|
||||||
|
|
||||||
|
%build
|
||||||
|
python build/gen.py --no-last-commit-position
|
||||||
|
ninja -C out
|
||||||
|
|
||||||
|
%check
|
||||||
|
out/gn_unittests
|
||||||
|
|
||||||
|
%install
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
install -D -m0755 out/gn %{buildroot}%{_bindir}/gn
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/gn
|
||||||
|
%doc AUTHORS LICENSE
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Mar 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20190301git-1mamba
|
||||||
|
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user