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