From: Philippe Coval Date: Tue, 16 Feb 2016 10:55:11 +0000 (+0100) Subject: packaging: define license macro if undef X-Git-Tag: accepted/tizen/8.0/unified/20231005.095523^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_8.0_unified;p=platform%2Fupstream%2Fscons.git packaging: define license macro if undef This was needed to build on Tizen:2.3 Change-Id: I32247ff5fc823f282ab3635d6b601ab800fc0d75 Signed-off-by: Philippe Coval --- diff --git a/packaging/scons.spec b/packaging/scons.spec index c472509..aa0070b 100644 --- a/packaging/scons.spec +++ b/packaging/scons.spec @@ -26,6 +26,10 @@ Url: http://www.scons.org/ BuildRequires: fdupes BuildRequires: python-devel +%if ! %{?license:0} +%define license %doc +%endif + %description SCons is a make replacement that provides a range of enhanced features, such as automated dependency generation and built-in compilation cache @@ -53,5 +57,5 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-lib=%{ %{python_sitearch}/SCons/ %{python_sitearch}/*.egg-info %{_mandir}/man1/*.gz +%{_libdir}/* -%changelog