%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Summary: Build tool executing tasks and managing metadata Name: bitbake Version: 1.8.18 Release: 1%{?dist} License: GPLv2 Group: Development/Tools Source0: http://download.berlios.de/bitbake/bitbake-%{version}.tar.gz URL: http://developer.berlios.de/projects/bitbake/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel, xmlto-tex, lynx BuildArch: noarch %description BitBake is a simple tool for the execution of tasks. It is derived from Portage, which is the package management system used by the Gentoo Linux distribution. It is most commonly used to build packages, and is used as the basis of the OpenEmbedded project. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" python setup.py build # Generating docs make -C doc/manual all iconv -f iso-8859-1 -t utf-8 doc/manual/xhtml/docbook.css > docbook.css.tmp touch -r doc/manual/xhtml/docbook.css docbook.css.tmp mv docbook.css.tmp doc/manual/xhtml/docbook.css %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} # We strip bad shebangs (/usr/bin/env) instead of fixing them # since these files are not executable anyways find %{buildroot}/%{python_sitelib} -name '*.py' \ -exec grep -q '^#!' '{}' \; -print | while read F do awk '/^#!/ {if (FNR == 1) next;} {print}' $F >chopped touch -r $F chopped mv chopped $F done # Removing extra docs rm -rf %{buildroot}%{_docdir} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc doc/COPYING.GPL doc/manual/xhtml/ doc/manual/txt/usermanual.txt doc/manual/pdf/usermanual.pdf %{_bindir}/bbimage %{_bindir}/bitbake %{_datadir}/bitbake/ %{python_sitelib}/* %changelog * Fri Nov 15 2009 Michal Ingeli - 1.8.18-1 - Update to current release - Stripped shebangs from non-executable python scripts - Fixed documentation file encoding * Fri Jul 24 2009 Fedora Release Engineering - 1.8.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 1.8.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.8.10-2 - Rebuild for Python 2.6 * Sun Sep 07 2008 Andreas Thienemann - 1.8.10-1 - Updated to 1.8.10 - Include .egg - Fix FTBFS #440562 * Mon Jul 14 2008 Tom "spot" Callaway - 1.8.8-2 - fix license tag * Fri Aug 31 2007 Andreas Thienemann - 1.8.8-1 - Updated to 1.8.8 * Tue Aug 14 2007 Andreas Thienemann - 1.8.6-1 - Updated to 1.8.6 * Tue Mar 06 2007 Andreas Thienemann - 1.6.6-1 - Updated to 1.6.6 - Reverted FHS patch, as upstream includes it by now * Thu Dec 14 2006 Jason L Tibbitts III - 1.6.0-2 - Rebuild for updated python, add python-devel dependency. * Fri Sep 08 2006 Andreas Thienemann - 1.6.0-1 - Updated to 1.6.0 * Fri Aug 11 2006 Andreas Thienemann 1.4.2-1 - Updated to 1.4.2 * Wed Apr 26 2006 Andreas Thienemann 1.4.0-1 - Updated to 1.4.0 - Modified to conform to FC4+ .spec syntax. * Thu Apr 13 2006 Andreas Thienemann 1.3.3-2 - Cleaned up .spec. * Thu Feb 16 2006 Andreas Thienemann 1.3.3-1 - Initial spec.