|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: waf
|
|
|
|
|
Version: 1.4.2
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 1.4.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A Python-based build system
|
|
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
@ -9,8 +9,7 @@ License: BSD and Python
|
|
|
|
|
URL: http://code.google.com/p/waf/
|
|
|
|
|
Source0: http://waf.googlecode.com/files/waf-%{version}.tar.bz2
|
|
|
|
|
# use _datadir instead of /usr/lib
|
|
|
|
|
Patch0: waf-1.4.2-libdir.patch
|
|
|
|
|
Patch1: waf-1.4.2-fcntl.patch
|
|
|
|
|
Patch0: waf-1.4.3-libdir.patch
|
|
|
|
|
|
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -34,39 +33,43 @@ Autotools, Scons, CMake or Ant.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .libdir
|
|
|
|
|
%patch1 -p1 -b .fcntl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./waf-light configure --prefix=%{_prefix}
|
|
|
|
|
./waf-light --make-waf --strip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
# the install target wants an acknowledgement
|
|
|
|
|
echo y | ./waf install --prefix=%{_prefix} --destdir=$RPM_BUILD_ROOT
|
|
|
|
|
echo y | ./waf install --destdir=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
# remove shebangs from all scripts in wafadmin
|
|
|
|
|
find $RPM_BUILD_ROOT%{_datadir}/waf/wafadmin -name '*.py' \
|
|
|
|
|
-exec sed -i '1{/^#!/d}' {} \;
|
|
|
|
|
-exec %{__sed} -i '1{/^#!/d}' {} \;
|
|
|
|
|
|
|
|
|
|
# fix waf script shebang line
|
|
|
|
|
sed -i "1c#! /usr/bin/python" $RPM_BUILD_ROOT%{_bindir}/waf
|
|
|
|
|
%{__sed} -i "1c#! /usr/bin/python" $RPM_BUILD_ROOT%{_bindir}/waf
|
|
|
|
|
|
|
|
|
|
# fix EOL
|
|
|
|
|
sed -i 's|\r$||g' utils/amtool.py
|
|
|
|
|
%{__sed} -i 's|\r$||g' utils/amtool.py
|
|
|
|
|
|
|
|
|
|
# remove x-bits from everything going to doc
|
|
|
|
|
find demos utils -type f -exec chmod 0644 {} \;
|
|
|
|
|
find demos utils -type f -exec %{__chmod} 0644 {} \;
|
|
|
|
|
|
|
|
|
|
# remove zero-length files
|
|
|
|
|
rm demos/gnome/src/hello.h
|
|
|
|
|
rm demos/simple_scenarios/local_tool/uh.coin
|
|
|
|
|
%{__rm} demos/gnome/src/hello.h
|
|
|
|
|
%{__rm} demos/simple_scenarios/local_tool/uh.coin
|
|
|
|
|
|
|
|
|
|
# bash completion
|
|
|
|
|
%{__install} -D -p -m 0644 utils/waf-completion.bash \
|
|
|
|
|
%{buildroot}%{_sysconfdir}/bash_completion.d//waf-completion.bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -74,9 +77,16 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%doc README TODO ChangeLog demos doc/waf.pdf utils
|
|
|
|
|
%{_bindir}/waf
|
|
|
|
|
%{_datadir}/waf
|
|
|
|
|
%{_sysconfdir}/bash_completion.d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jun 28 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.3-1
|
|
|
|
|
- Update to 1.4.3.
|
|
|
|
|
- Remove fcntl patch (fixed upstream).
|
|
|
|
|
- Prefix has to be set in a configure step now.
|
|
|
|
|
- Pack the bash completion file.
|
|
|
|
|
|
|
|
|
|
* Mon May 26 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.2-2
|
|
|
|
|
- Patch: stdout might not be a terminal.
|
|
|
|
|
|
|
|
|
|