代码拉取完成,页面将自动刷新
%global revision fcd686f1
%{expand: %%global archivename gyp-%{version}%{?revision:-git%{revision}}}
Name: gyp
Version: 0.1
Release: 3
Summary: Generate Your Projects
License: BSD-3-Clause
URL: http://code.google.com/p/gyp
# No released tarball available. so the tarball was generated
# from svn as following:
#
# 1.git clone https://chromium.googlesource.com/external/gyp
# 2.cd gyp
# 3.version=$(grep version= setup.py|cut -d\' -f2)
# 4.revision=$(git log --oneline|head -1|cut -d' ' -f1)
# 5.tar -a --exclude-vcs -cf /tmp/gyp-$version-git$revision.tar.bz2 *
Source0: %{archivename}.tar.xz
Patch0: gyp-rpmoptflags.patch
Patch1: gyp-ninja-build.patch
Patch2: gyp-python3.patch
Patch3: gyp-python38.patch
Patch4: gyp-fix-cmake.patch
# https://github.com/nodejs/node-gyp/pull/1961
Patch5: gyp-python39.patch
BuildRequires: python3-devel python3-setuptools
Requires: python3-setuptools
BuildRequires: gcc gcc-c++ ninja-build
BuildArch: noarch
%description
GYP is a tool to generates native Visual Studio, Xcode and SCons
and/or make build files from a platform-independent input format.
Its syntax is a universal cross-platform build representation
that still allows sufficient per-platform flexibility to accommodate
irreconcilable differences.
%prep
%autosetup -p1 -c -n %{archivename}
for i in $(find pylib -name '*.py'); do
sed -e '\,#![ \t]*/.*python,{d}' $i > $i.new && touch -r $i $i.new && mv $i.new $i
done
%build
%{__python3} setup.py build
%install
%{__python3} setup.py install --root $RPM_BUILD_ROOT --skip-build
%check
%{__python3} gyptest.py test/hello/gyptest-all.py
%files
%license LICENSE
%doc AUTHORS
%{_bindir}/gyp
%{python3_sitelib}/*
%changelog
* Mon May 9 2022 caodongxia <caodongxia@h-partners.com> - 0.1-3
- License compliance rectification
* Tue Mar 22 2022 wulei <wulei80@huawei.com> - 0.1-2
- Fix python unittests
* Fri Aug 21 2020 Ge Wang <wangge20@huawei.com> - 0.1-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。