2024-01-05 23:09:45 +01:00
|
|
|
Name: gn
|
2024-01-05 23:09:45 +01:00
|
|
|
Version: 0.20201109git
|
2024-01-05 23:09:45 +01:00
|
|
|
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
|
2024-01-05 23:09:45 +01:00
|
|
|
Patch0: gn-0.20200521git-gcc-support.patch
|
2024-01-05 23:09:45 +01:00
|
|
|
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
|
2024-01-05 23:09:45 +01:00
|
|
|
%patch0 -p1
|
2024-01-05 23:09:45 +01:00
|
|
|
|
2024-01-05 23:09:45 +01:00
|
|
|
cat > src/last_commit_position.h << _EOF
|
2024-01-05 23:09:45 +01:00
|
|
|
// Generated by build/gen.py.
|
|
|
|
|
|
|
|
#ifndef OUT_LAST_COMMIT_POSITION_H_
|
|
|
|
#define OUT_LAST_COMMIT_POSITION_H_
|
|
|
|
|
|
|
|
#define LAST_COMMIT_POSITION "0 (0)"
|
2024-01-05 23:09:45 +01:00
|
|
|
#define LAST_COMMIT_POSITION_NUM 0
|
2024-01-05 23:09:45 +01:00
|
|
|
|
|
|
|
#endif // OUT_LAST_COMMIT_POSITION_H_
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
%build
|
2024-01-05 23:09:45 +01:00
|
|
|
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
|
|
|
|
|
2024-01-05 23:09:45 +01:00
|
|
|
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
|
2024-01-05 23:09:45 +01:00
|
|
|
* Mon Nov 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20201109git-1mamba
|
|
|
|
- update to 0.20201109git
|
|
|
|
|
2024-01-05 23:09:45 +01:00
|
|
|
* Thu May 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20200521git-1mamba
|
|
|
|
- update to 0.20200521git
|
|
|
|
|
2024-01-05 23:09:45 +01:00
|
|
|
* Fri Mar 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20190301git-1mamba
|
|
|
|
- package created using the webbuild interface
|