diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-05-18 14:27:33 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-05-18 14:27:33 -0400 |
commit | 3d4069314945f5d20fd17c8640fd7b41bb5b4c37 (patch) | |
tree | dcd1c34b1d0f3f8429bc084ea0602d7c9fcb8931 | |
parent | e5983450fa3482b6bcead34d9ebfe49749ab474b (diff) | |
download | scons-3d4069314945f5d20fd17c8640fd7b41bb5b4c37.tar.gz scons-3d4069314945f5d20fd17c8640fd7b41bb5b4c37.tar.bz2 scons-3d4069314945f5d20fd17c8640fd7b41bb5b4c37.zip |
add packaging
-rw-r--r-- | packaging/scons.spec | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/packaging/scons.spec b/packaging/scons.spec new file mode 100644 index 00000000..2cec7726 --- /dev/null +++ b/packaging/scons.spec @@ -0,0 +1,56 @@ +# +# spec file for package scons +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +Name: scons +Summary: Replacement for Make +License: MIT +Group: Development/Tools/Building +Version: 2.2.0 +Release: 0 +Source0: http://freefr.dl.sourceforge.net/project/scons/scons/%{version}/%{name}-%{version}.tar.gz +Patch0: %{name}-1.2.0-fix-install.patch +Patch1: %{name}-1.2.0-noenv.patch +Url: http://www.scons.org/ +BuildRequires: fdupes +BuildRequires: python-devel + +%description +SCons is a make replacement that provides a range of enhanced features, +such as automated dependency generation and built-in compilation cache +support. SCons rule sets are Python scripts, which means that SCons +provides itself as well as the features. SCons allows you to use the +full power of Python to control compilation. + +%prep +%setup -q + +%build +export CFLAGS="$RPM_OPT_FLAGS" +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-lib=%{python_sitearch} +%fdupes %{buildroot}%{_bindir} + +%files +%defattr(-,root,root) +%license LICENSE.txt +%{_bindir}/* +%{python_sitearch}/SCons/ +%{python_sitearch}/*.egg-info +%{_mandir}/man1/*.gz + +%changelog |