]>
Commit | Line | Data |
---|---|---|
c0a97864 ER |
1 | # |
2 | # Conditional build: | |
d01b1cd9 | 3 | %bcond_with tests # build without tests |
c0a97864 | 4 | |
f33fa229 AM |
5 | %define gitrev e87d37d6 |
6 | %define rel 1 | |
c0a97864 | 7 | Summary: Generate Your Projects |
ba2c7f2a | 8 | Summary(pl.UTF-8): GYP (Generate Your Projects) - narzędzie do generowania systemów budowania |
c0a97864 | 9 | Name: gyp |
e1338491 ER |
10 | # grep version= setup.py |
11 | Version: 0.1 | |
f33fa229 | 12 | Release: 1.%{rel}.%{gitrev} |
c0a97864 ER |
13 | License: New BSD |
14 | Group: Development/Building | |
b5cae1dc | 15 | # use get-source.sh |
f33fa229 AM |
16 | Source0: %{name}-%{version}-git%{gitrev}.tar.xz |
17 | # Source0-md5: 9b6f6c10bb8def91e26c17f0be1f7f90 | |
18 | Patch0: gyp-rpmoptflags.patch | |
19 | Patch1: gyp-ninja-build.patch | |
20 | Patch2: gyp-python3.patch | |
21 | Patch3: gyp-python38.patch | |
22 | Patch4: gyp-fix-cmake.patch | |
23 | Patch5: gyp-python39.patch | |
f78d47c3 | 24 | URL: https://gyp.gsrc.io/ |
c0a97864 ER |
25 | BuildRequires: python-devel |
26 | BuildRequires: rpm-pythonprov | |
27 | BuildRequires: rpmbuild(macros) >= 1.219 | |
593a2a50 | 28 | Requires: python-%{name} = %{version}-%{release} |
c0a97864 ER |
29 | BuildArch: noarch |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | GYP is a tool to generates native Visual Studio, Xcode and SCons | |
34 | and/or make build files from a platform-independent input format. It's | |
35 | syntax is a universal cross-platform build representation that still | |
36 | allows sufficient per-platform flexibility to accommodate | |
37 | irreconcilable differences. | |
38 | ||
ba2c7f2a JB |
39 | %description -l pl.UTF-8 |
40 | GYP to narzędzie generujące natywne pliki budowania dla Visual Studio, | |
41 | Xcode, SCons i/lub make'a z formatu wejściowego niezależnego od | |
42 | platformy. Składnia jest uniwersalną, wieloplatformową reprezentacją | |
43 | reguł, która nadal pozwala na wystarczającą elastyczność dla | |
44 | poszczególnych platform, aby obsłużyć różnice między nimi. | |
45 | ||
593a2a50 | 46 | %package -n python-%{name} |
ba2c7f2a JB |
47 | Summary: Python modules for GYP |
48 | Summary(pl.UTF-8): Moduły Pythona module dla GYP | |
593a2a50 ER |
49 | Group: Development/Languages/Python |
50 | ||
51 | %description -n python-%{name} | |
52 | GYP is a tool to generates native Visual Studio, Xcode and SCons | |
53 | and/or make build files from a platform-independent input format. It's | |
54 | syntax is a universal cross-platform build representation that still | |
55 | allows sufficient per-platform flexibility to accommodate | |
ba2c7f2a JB |
56 | poszczególnych platform, aby obsłużyć różnice między nimi. |
57 | ||
58 | This package contains Python modules. | |
59 | ||
60 | %description -n python-%{name} -l pl.UTF-8 | |
61 | GYP to narzędzie generujące natywne pliki budowania dla Visual Studio, | |
62 | Xcode, SCons i/lub make'a z formatu wejściowego niezależnego od | |
63 | platformy. Składnia jest uniwersalną, wieloplatformową reprezentacją | |
64 | reguł, która nadal pozwala na wystarczającą elastyczność dla | |
65 | poszczególnych platform, aby obsłużyć różnice między nimi. | |
66 | ||
67 | Ten pakiet zawiera moduły Pythona. | |
593a2a50 | 68 | |
c0a97864 | 69 | %prep |
f33fa229 AM |
70 | %setup -q -c |
71 | %patch0 -p1 | |
72 | %patch1 -p1 | |
73 | %patch2 -p1 | |
74 | %patch3 -p1 | |
75 | %patch4 -p1 | |
76 | %patch5 -p1 | |
c0a97864 ER |
77 | |
78 | %build | |
54b7c2c7 | 79 | %py_build |
c0a97864 | 80 | |
d01b1cd9 ER |
81 | %{?with_tests:%{__python} gyptest.py -a} |
82 | ||
c0a97864 ER |
83 | %install |
84 | rm -rf $RPM_BUILD_ROOT | |
54b7c2c7 JR |
85 | |
86 | %py_install | |
c0a97864 ER |
87 | |
88 | %py_postclean | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
d01b1cd9 | 95 | %doc AUTHORS LICENSE |
c0a97864 | 96 | %attr(755,root,root) %{_bindir}/gyp |
593a2a50 ER |
97 | |
98 | %files -n python-%{name} | |
7f23d1d9 | 99 | %defattr(644,root,root,755) |
c0a97864 ER |
100 | %dir %{py_sitescriptdir}/gyp |
101 | %dir %{py_sitescriptdir}/gyp/generator | |
102 | %{py_sitescriptdir}/gyp/*.py[co] | |
103 | %{py_sitescriptdir}/gyp/generator/*.py[co] | |
104 | ||
105 | %if "%{py_ver}" > "2.4" | |
ba2c7f2a | 106 | %{py_sitescriptdir}/gyp-%{version}-py*.egg-info |
c0a97864 | 107 | %endif |