gn/gn.spec

60 lines
1.4 KiB
RPMSpec
Raw Normal View History

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