Update to 1.7.0pre3

- Spec clean-up
- Rename -docs subpackage to -doc, per guidelines
epel8
Michel Alexandre Salim 13 years ago
parent 2317c43487
commit 7286d02382

2
.gitignore vendored

@ -1 +1 @@
/waf-1.6.11.stripped.tar.bz2 /waf-1.7.0pre3.stripped.tar.bz2

@ -1,8 +1,9 @@
#! /bin/bash #! /bin/bash
version=1.6.11 version=1.7.0
prerel=pre3
src=waf-${version}.tar.bz2 src=waf-${version}${prerel}.tar.bz2
dst=${src%.tar.bz2}.stripped.tar.bz2 dst=${src%.tar.bz2}.stripped.tar.bz2
rm -f ${dst} ${dst%.bz2} rm -f ${dst} ${dst%.bz2}
@ -12,7 +13,6 @@ bzip2 -d ${dst}
tar --delete --file=${dst%.bz2} \ tar --delete --file=${dst%.bz2} \
waf-${version}/docs/book \ waf-${version}/docs/book \
waf-${version}/waflib/extras/subprocess.py \
waf-${version}/docs/sphinx/_images/waf-64x64.png \ waf-${version}/docs/sphinx/_images/waf-64x64.png \
waf-${version}/docs/gfx/waflogo.svg \ waf-${version}/docs/gfx/waflogo.svg \
waf-${version}/docs/slides/presentation/gfx/waflogo.svg waf-${version}/docs/slides/presentation/gfx/waflogo.svg

@ -1 +1 @@
87a22e5dd54e36e164fb2e44007b11b2 waf-1.6.11.stripped.tar.bz2 07bbf9ac9848809999bd9036ebef601f waf-1.7.0pre3.stripped.tar.bz2

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

Loading…
Cancel
Save