]> git.pld-linux.org Git - packages/waf.git/blame - waf.spec
- up to 1.7.16
[packages/waf.git] / waf.spec
CommitLineData
a4eae65c 1Summary: The Waf build system
1a3366fc 2Summary(pl.UTF-8): System budowania Waf
a4eae65c 3Name: waf
bfd9723b 4Version: 1.7.16
e2ce19eb 5Release: 1
c9f31fb5 6# note: waf book is on CC-BY-NC-ND (not included in binary package)
a4eae65c
ER
7License: BSD
8Group: Development/Building
c9f31fb5 9#Source0Download: http://code.google.com/p/waf/downloads/list
bfd9723b
JP
10Source0: ftp://ftp.waf.io/pub/archive/%{name}-%{version}.tar.bz2
11# Source0-md5: 84545f73a6b9ec9dbe557642657fc11a
9c06b44f 12Patch0: %{name}-path.patch
5197a27f 13URL: http://code.google.com/p/waf/
c9f31fb5
JB
14BuildRequires: python >= 1:2.6
15BuildRequires: python-modules >= 1:2.6
12557f0e 16BuildRequires: rpm-pythonprov
2110cbf6 17BuildRequires: rpmbuild(macros) >= 1.234
c9f31fb5 18Requires: python(abi) = %{py_ver}
7a16ee04 19BuildArch: noarch
a4eae65c
ER
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
a4eae65c
ER
22%description
23Waf is a general-purpose build system which was modelled from Scons.
24Though it comes last in the arena of the build systems, we believe
25that Waf is a vastly superior alternative to its competitors
26(Autotools, Scons, Cmake, Ant, etc) for building software,
27
f7ccf166
JR
28%description -l pl.UTF-8
29Waf to system budowania ogólnego przeznaczenia opracowany na podstawie
30Scons. Mimo że pojawił się jako ostatni na arenie systemów budowania,
31autorzy wierzą, że przewyższa alternatywne narzędzia (Autotools,
67f52179
JB
32Scons, Cmake, Ant itp.).
33
a4eae65c
ER
34%prep
35%setup -q
9c06b44f 36%patch0 -p1
a4eae65c
ER
37
38%build
c9f31fb5
JB
39# check waf-light
40extras=
41for f in waflib/extras/*.py ; do
42 tool=$(basename "$f" .py)
43 if [ "$tool" != "__init__" ]; then
44 extras="${extras:+$extras,}$tool"
45 fi
46done
47./waf-light --make-waf --strip --tools="$extras"
a4eae65c
ER
48
49%install
50rm -rf $RPM_BUILD_ROOT
c9f31fb5
JB
51install -d $RPM_BUILD_ROOT%{_datadir}/waf/waflib/{Tools,extras}
52
53cp -p waflib/*.py $RPM_BUILD_ROOT%{_datadir}/waf/waflib
54cp -p waflib/Tools/*.py $RPM_BUILD_ROOT%{_datadir}/waf/waflib/Tools
55cp -p waflib/extras/*.py $RPM_BUILD_ROOT%{_datadir}/waf/waflib/extras
56
57install -D -p waf-light $RPM_BUILD_ROOT%{_bindir}/waf
a4eae65c 58
c9f31fb5
JB
59%py_comp $RPM_BUILD_ROOT%{_datadir}/waf/waflib
60%py_ocomp $RPM_BUILD_ROOT%{_datadir}/waf/waflib
a4eae65c
ER
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
c9f31fb5 67%doc ChangeLog README TODO
a4eae65c 68%attr(755,root,root) %{_bindir}/waf
c9f31fb5 69%{_datadir}/waf
This page took 0.066591 seconds and 4 git commands to generate.