summaryrefslogtreecommitdiff
path: root/waf.spec
blob: 8bb5a7df34c94407da9bc6fa5d4867814a4cf940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Summary:	The Waf build system
Name:		waf
Version:	1.0.1
Release:	0.4
License:	BSD
Group:		Development/Building
Source0:	http://freehackers.org/~tnagy/%{name}-%{version}.tar.bz2
# Source0-md5:	bc33d144ee927caec6279e0bf4b174ab
URL:		http://freehackers.org/~tnagy/bksys.html
Patch0:		%{name}-path.patch
BuildRequires:	python
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_libdir	%{_prefix}/lib

%description
Waf is a general-purpose build system which was modelled from Scons.
Though it comes last in the arena of the build systems, we believe
that Waf is a vastly superior alternative to its competitors
(Autotools, Scons, Cmake, Ant, etc) for building software,

%prep
%setup -q
%patch0 -p1

%build
./waf-light --make-waf

%install
rm -rf $RPM_BUILD_ROOT
./waf \
	--prefix $RPM_BUILD_ROOT%{_prefix} \
	--destdir $RPM_BUILD_ROOT \
	--install

%py_comp $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
%py_ocomp $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
%py_postclean %{_libdir}/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README TODO
%attr(755,root,root) %{_bindir}/waf
%dir %{_libdir}/%{name}-%{version}
%dir %{_libdir}/%{name}-%{version}/wafadmin
%{_libdir}/%{name}-%{version}/wafadmin/*.py[co]
%dir %{_libdir}/%{name}-%{version}/wafadmin/Tools
%{_libdir}/%{name}-%{version}/wafadmin/Tools/*.py[co]