|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
Name: waf
|
|
|
|
|
Version: 1.4.1
|
|
|
|
|
Version: 1.4.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A Python-based build system
|
|
|
|
|
|
|
|
|
@ -9,7 +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.1-libdir.patch
|
|
|
|
|
Patch0: waf-1.4.2-libdir.patch
|
|
|
|
|
|
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -32,7 +32,7 @@ Autotools, Scons, CMake or Ant.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p0 -b .libdir
|
|
|
|
|
%patch0 -p1 -b .libdir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -42,10 +42,12 @@ Autotools, Scons, CMake or Ant.
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
# remove shebangs from all scripts in wafadmin
|
|
|
|
|
find wafadmin -name '*.py' -exec sed -i "1{/^#!/d}" {} \;
|
|
|
|
|
# the install target wants an acknowledgement
|
|
|
|
|
echo y | ./waf install --prefix=%{_prefix} --destdir=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
./waf install --prefix=%{_prefix} --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}' {} \;
|
|
|
|
|
|
|
|
|
|
# fix waf script shebang line
|
|
|
|
|
sed -i "1c#! /usr/bin/python" $RPM_BUILD_ROOT%{_bindir}/waf
|
|
|
|
@ -53,12 +55,13 @@ sed -i "1c#! /usr/bin/python" $RPM_BUILD_ROOT%{_bindir}/waf
|
|
|
|
|
# fix EOL
|
|
|
|
|
sed -i 's|\r$||g' utils/amtool.py
|
|
|
|
|
|
|
|
|
|
# remove zero-length file
|
|
|
|
|
rm demos/gnome/src/hello.h
|
|
|
|
|
|
|
|
|
|
# remove x-bits from everything going to doc
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
@ -72,6 +75,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat May 17 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.2-1
|
|
|
|
|
- Update to 1.4.2.
|
|
|
|
|
- Remove shebang lines from files in wafadmin after installation, not
|
|
|
|
|
before, otherwise install will re-add them.
|
|
|
|
|
|
|
|
|
|
* Sun May 4 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.1-1
|
|
|
|
|
- Update to upstream version 1.4.1.
|
|
|
|
|
|
|
|
|
|