1 Summary: The Waf build system
6 Group: Development/Building
7 Source0: http://freehackers.org/~tnagy/%{name}-%{version}.tar.bz2
8 # Source0-md5: bc33d144ee927caec6279e0bf4b174ab
9 URL: http://freehackers.org/~tnagy/bksys.html
11 BuildRequires: sed >= 4.0
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _libdir %{_prefix}/lib
18 Waf is a general-purpose build system which was modelled from Scons.
19 Though it comes last in the arena of the build systems, we believe
20 that Waf is a vastly superior alternative to its competitors
21 (Autotools, Scons, Cmake, Ant, etc) for building software,
27 ./waf-light --make-waf
28 %{__sed} -i -e '1s,#!.*python,#!%{__python},' waf
31 rm -rf $RPM_BUILD_ROOT
33 --prefix $RPM_BUILD_ROOT%{_prefix} \
34 --destdir $RPM_BUILD_ROOT \
37 %py_comp $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
38 %py_ocomp $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
39 %py_postclean %{_libdir}/%{name}-%{version}
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_bindir}/waf
48 %dir %{_libdir}/%{name}-%{version}
49 %dir %{_libdir}/%{name}-%{version}/wafadmin
50 %{_libdir}/%{name}-%{version}/wafadmin/*.py[co]
51 %dir %{_libdir}/%{name}-%{version}/wafadmin/Tools
52 %{_libdir}/%{name}-%{version}/wafadmin/Tools/*.py[co]