]>
Commit | Line | Data |
---|---|---|
1 | Summary: The Waf build system | |
2 | Summary(pl.UTF-8): System budowania Waf | |
3 | Name: waf | |
4 | Version: 1.5.13 | |
5 | Release: 1 | |
6 | License: BSD | |
7 | Group: Development/Building | |
8 | Source0: http://waf.googlecode.com/files/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 9ade42b0ae373139dcb2ad4b7c1751d3 | |
10 | Patch0: %{name}-path.patch | |
11 | URL: http://code.google.com/p/waf/ | |
12 | BuildRequires: python >= 2.4 | |
13 | BuildRequires: python-modules | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define _libdir %{_prefix}/lib | |
19 | ||
20 | %description | |
21 | Waf is a general-purpose build system which was modelled from Scons. | |
22 | Though it comes last in the arena of the build systems, we believe | |
23 | that Waf is a vastly superior alternative to its competitors | |
24 | (Autotools, Scons, Cmake, Ant, etc) for building software, | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Waf to system budowania ogólnego przeznaczenia opracowany na podstawie | |
28 | Scons. Mimo że pojawił się jako ostatni na arenie systemów budowania, | |
29 | autorzy wierzą, że przewyższa alternatywne narzędzia (Autotools, | |
30 | Scons, Cmake, Ant itp.). | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | %patch0 -p1 | |
35 | ||
36 | %build | |
37 | ./waf-light configure \ | |
38 | --prefix=%{_prefix} | |
39 | ./waf-light --make-waf | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | echo y | ./waf install \ | |
44 | --prefix %{_prefix} \ | |
45 | --destdir $RPM_BUILD_ROOT | |
46 | ||
47 | %py_comp $RPM_BUILD_ROOT%{_libdir}/%{name} | |
48 | %py_ocomp $RPM_BUILD_ROOT%{_libdir}/%{name} | |
49 | %py_postclean %{_libdir}/%{name} | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc README TODO | |
57 | %attr(755,root,root) %{_bindir}/waf | |
58 | %dir %{_libdir}/%{name} | |
59 | %dir %{_libdir}/%{name}/wafadmin | |
60 | %{_libdir}/%{name}/wafadmin/*.py[co] | |
61 | %dir %{_libdir}/%{name}/wafadmin/Tools | |
62 | %{_libdir}/%{name}/wafadmin/Tools/*.py[co] |