|
|
|
@ -9,9 +9,12 @@
|
|
|
|
|
# available)
|
|
|
|
|
%global with_docs 1
|
|
|
|
|
|
|
|
|
|
# For pre-releases
|
|
|
|
|
%global prerel pre3
|
|
|
|
|
|
|
|
|
|
Name: waf
|
|
|
|
|
Version: 1.6.11
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 1.7.0
|
|
|
|
|
Release: 0.1.%{prerel}%{?dist}
|
|
|
|
|
Summary: A Python-based build system
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
# The entire source code is BSD apart from pproc.py (taken from Python 2.5)
|
|
|
|
@ -22,14 +25,14 @@ URL: http://code.google.com/p/waf/
|
|
|
|
|
# We remove:
|
|
|
|
|
# - /docs/book, as this is under CC-BY-NC-ND, which is not allowed in
|
|
|
|
|
# Fedora
|
|
|
|
|
# - /waflib/extras/subprocess.py, is under a Python license and not
|
|
|
|
|
# needed in Fedora
|
|
|
|
|
Source: waf-%{version}.stripped.tar.bz2
|
|
|
|
|
# - Waf logos
|
|
|
|
|
Source: waf-%{version}%{prerel}.stripped.tar.bz2
|
|
|
|
|
# use _datadir instead of /usr/lib
|
|
|
|
|
Patch0: waf-1.6.2-libdir.patch
|
|
|
|
|
Patch1: waf-1.6.9-logo.patch
|
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
@ -82,10 +85,16 @@ This package contains the Python 3 version of %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
%package -n %{name}-docs
|
|
|
|
|
%package -n %{name}-doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%description -n %{name}-docs
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
# obsolete the previous docs subpackage - guideline specifies -doc
|
|
|
|
|
# since: Fedora 18, RHEL 7 (mark the provides/obsoletes RHEL only after
|
|
|
|
|
# we no longer need to provide upgrade paths from affected Fedora releases)
|
|
|
|
|
Provides: %{name}-docs = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-docs < 1.6.11-2
|
|
|
|
|
|
|
|
|
|
%description -n %{name}-doc
|
|
|
|
|
Waf is a Python-based framework for configuring, compiling and
|
|
|
|
|
installing applications. It is a replacement for other tools such as
|
|
|
|
|
Autotools, Scons, CMake or Ant.
|
|
|
|
@ -101,6 +110,9 @@ This package contains the HTML documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# ticgt trips up build, see
|
|
|
|
|
# http://code.google.com/p/waf/issues/detail?id=1171
|
|
|
|
|
mv waflib/extras/ticgt.py{,.off}
|
|
|
|
|
extras=
|
|
|
|
|
for f in waflib/extras/*.py ; do
|
|
|
|
|
f=$(basename "$f" .py);
|
|
|
|
@ -122,8 +134,6 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
# use waf so it unpacks itself
|
|
|
|
|
mkdir _temp ; pushd _temp
|
|
|
|
|
cp -av ../waf .
|
|
|
|
@ -192,13 +202,18 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
%files -n %{name}-docs
|
|
|
|
|
%files -n %{name}-doc
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc docs/sphinx/build/html
|
|
|
|
|
%endif # with_docs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jun 7 2012 Michel Salim <salimma@fedoraproject.org> - 1.7.0-0.1.pre3
|
|
|
|
|
- Update to 1.7.0pre3
|
|
|
|
|
- Spec clean-up
|
|
|
|
|
- Rename -docs subpackage to -doc, per guidelines
|
|
|
|
|
|
|
|
|
|
* Mon Feb 6 2012 Michel Salim <salimma@fedoraproject.org> - 1.6.11-1
|
|
|
|
|
- Update to 1.6.11
|
|
|
|
|
- Build in verbose mode
|
|
|
|
|