7 Star 0 Fork 4

src-openEuler/gyp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gyp.spec 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/gyp.git
git@gitee.com:src-openeuler/gyp.git
src-openeuler
gyp
gyp
openEuler-23.03

搜索帮助