[12395] | 1 | %define githash e87d37d6 |
---|
[1138] | 2 | |
---|
[12395] | 3 | Summary: Generate Your Projects |
---|
| 4 | Name: gyp |
---|
| 5 | Version: 0.1 |
---|
| 6 | Release: 4.git%{githash}%{?_dist_release} |
---|
| 7 | Group: Development/Tools |
---|
| 8 | Vendor: Project Vine |
---|
| 9 | Distribution: Vine Linux |
---|
| 10 | Packager: iwaim |
---|
| 11 | |
---|
| 12 | License: BSD |
---|
| 13 | URL: https://gyp.gsrc.io |
---|
| 14 | # 1. git clone https://chromium.googlesource.com/external/gyp |
---|
| 15 | # 2. cd gyp |
---|
| 16 | # 3. version=$(grep version= setup.py|cut -d\' -f2) |
---|
| 17 | # 4. revision=$(git log --oneline|head -1|cut -d' ' -f1) |
---|
| 18 | # 5. cd .. |
---|
| 19 | # 6. tar -a --exclude-vcs -cf gyp-$version-git$revision.tar.xz gyp |
---|
| 20 | Source0: %{name}-%{version}-git%{githash}.tar.xz |
---|
[7608] | 21 | Patch0: gyp-rpmoptflags.patch |
---|
[12395] | 22 | Patch1: gyp-ninja-build.patch |
---|
| 23 | Patch2: gyp-python3.patch |
---|
| 24 | Patch3: gyp-python38.patch |
---|
| 25 | Patch4: gyp-fix-cmake.patch |
---|
| 26 | Patch5: gyp-python39.patch |
---|
[1138] | 27 | |
---|
[12395] | 28 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 29 | BuildArch: noarch |
---|
| 30 | BuildRequires: python3-devel |
---|
| 31 | BuildRequires: python3-rpm-macros |
---|
| 32 | BuildRequires: python3-setuptools |
---|
| 33 | BuildRequires: ninja |
---|
| 34 | Requires: python3 |
---|
| 35 | Requires: python3-setuptools |
---|
[1138] | 36 | |
---|
| 37 | %description |
---|
[7608] | 38 | GYP is a tool to generates native Visual Studio, Xcode and SCons |
---|
| 39 | and/or make build files from a platform-independent input format. |
---|
[1138] | 40 | |
---|
[7608] | 41 | Its syntax is a universal cross-platform build representation |
---|
| 42 | that still allows sufficient per-platform flexibility to accommodate |
---|
| 43 | irreconcilable differences. |
---|
| 44 | |
---|
[12395] | 45 | |
---|
[1138] | 46 | %prep |
---|
[12395] | 47 | %setup -q -n %{name} |
---|
| 48 | %autopatch -p1 |
---|
| 49 | for i in $(find pylib -name '*.py'); do |
---|
| 50 | sed -e '\,#![ \t]*/.*python,{d}' $i > $i.new && touch -r $i $i.new && mv $i.new $i |
---|
| 51 | done |
---|
[1138] | 52 | |
---|
[12395] | 53 | |
---|
[1138] | 54 | %build |
---|
[12395] | 55 | %py3_build |
---|
[1138] | 56 | |
---|
[12395] | 57 | |
---|
[1138] | 58 | %install |
---|
| 59 | %{__rm} -rf %{buildroot} |
---|
[12395] | 60 | %py3_install |
---|
[1138] | 61 | |
---|
[12395] | 62 | |
---|
| 63 | %check |
---|
| 64 | %{__python3} gyptest.py test/hello/gyptest-all.py |
---|
| 65 | |
---|
| 66 | |
---|
[1138] | 67 | %clean |
---|
| 68 | %{__rm} -rf %{buildroot} |
---|
| 69 | |
---|
[12395] | 70 | |
---|
[1138] | 71 | %files |
---|
| 72 | %defattr(-,root,root,-) |
---|
[12395] | 73 | %license LICENSE |
---|
| 74 | %doc AUTHORS |
---|
[1138] | 75 | %{_bindir}/gyp |
---|
[12395] | 76 | %{python3_sitelib}/* |
---|
[1138] | 77 | |
---|
| 78 | %changelog |
---|
[12395] | 79 | * Tue May 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1-4.gite87d37d6 |
---|
| 80 | - updated to git HEAD. |
---|
| 81 | - import Patch1-5 from rawhide. |
---|
| 82 | - switch to python3. |
---|
| 83 | |
---|
[7608] | 84 | * Fri Mar 22 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.46-1 |
---|
| 85 | - update to svn r1569 |
---|
| 86 | |
---|
[5701] | 87 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-2.svn827 |
---|
| 88 | - rebuild with python-2.7.2 |
---|
| 89 | |
---|
[1138] | 90 | * Fri Jun 4 2010 IWAI, Masaharu <iwai@alib.jp> 0.1-1.svn827 |
---|
| 91 | - Initial build. |
---|
| 92 | |
---|