77 lines
1.8 KiB
RPMSpec
77 lines
1.8 KiB
RPMSpec
Name: gn
|
|
Version: 0.20201109git
|
|
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
|
|
Source: https://gn.googlesource.com/gn.git/master/gn-%{version}.tar.bz2
|
|
Patch0: gn-0.20200521git-gcc-support.patch
|
|
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
|
|
%patch0 -p1
|
|
|
|
cat > src/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)"
|
|
#define LAST_COMMIT_POSITION_NUM 0
|
|
|
|
#endif // OUT_LAST_COMMIT_POSITION_H_
|
|
_EOF
|
|
|
|
%build
|
|
CC=cc CXX=c++ AR=ar \
|
|
CFLAGS="%{optflags} -pthread" \
|
|
CXXFLAGS="%{optflags} -pthread" \
|
|
LDFLAGS="%{optflags} -pthread" \
|
|
python3 build/gen.py \
|
|
--no-last-commit-position \
|
|
--no-strip
|
|
|
|
# --use-lto
|
|
|
|
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
|
|
* Mon Nov 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20201109git-1mamba
|
|
- update to 0.20201109git
|
|
|
|
* Thu May 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20200521git-1mamba
|
|
- update to 0.20200521git
|
|
|
|
* Fri Mar 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20190301git-1mamba
|
|
- package created using the webbuild interface
|