X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bitbake.spec;h=25f5ffc9f56d1ba9e2cee060bd9a37af973bcfe5;hb=57c0ce13302aa24723ea63e41102fc9c989f2851;hp=9917524b32a9b63d04fa73335af40c83a54cd7c2;hpb=1821f0233bb9656f2ef1468ebc89958e0723e2b8;p=packages%2Fbitbake.git diff --git a/bitbake.spec b/bitbake.spec index 9917524..25f5ffc 100644 --- a/bitbake.spec +++ b/bitbake.spec @@ -1,51 +1,108 @@ Summary: BitBake build tool +Summary(pl.UTF-8): BitBake - narzędzie do budowania Name: bitbake -Version: 1.2 +Version: 1.17.0 Release: 1 -License: GPL +License: GPL v2 Group: Development -Source0: http://download.berlios.de/bitbake/%{name}-%{version}.tar.gz -# Source0-md5: 62c799d91d291a17078d6c23a94e793e -URL: http://developer.berlios.de/projects/bitbake/ -BuildRequires: python-devel >= 2.0 -%pyrequires_eq python +Source0: http://git.openembedded.org/bitbake/snapshot/%{name}-%{version}.tar.gz +# Source0-md5: 6ff19a24fdd20623b792225d84017506 +URL: https://www.yoctoproject.org/tools-resources/projects/bitbake +BuildRequires: docbook-dtd42-xml +BuildRequires: docbook-style-xsl +BuildRequires: libxml2-progs +BuildRequires: libxslt +BuildRequires: libxslt-progs +BuildRequires: python-devel >= 1:2.5 +BuildRequires: python-sqlite +BuildRequires: rpm-pythonprov +BuildRequires: sed >= 4.0 +BuildConflicts: bitbake +Requires: bash +Requires: python Requires: python-modules +Requires: python-ply +Requires: python-progressbar BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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, -as it can easily use its rudamentary inheritence to abstract common -operations, such as fetching sources, unpacking them, patching them, -compiling them, and so on. It is the basis of the OpenEmbedded -project, which is being used for OpenZaurus, Familiar, and a number of -other Linux distributions. +BitBake is a make-like build tool with the special focus of +distributions and packages for embedded Linux cross compilation +although it is not limited to that. It is inspired by Portage, which +is the package management system used by the Gentoo Linux +distribution. BitBake existed for some time in the OpenEmbedded +project until it was separated out into a standalone, maintained, +distribution-independent tool. BitBake is co-maintained by the Yocto +Project and the OpenEmbedded project. + +%description -l pl.UTF-8 +BitBake to proste narzędzie do wykonywania zadań. Wywodzi się z +Portage, które jest systemem zarządzania pakietami używanym w +dystrybucji Linuksa Gentoo. Najczęściej jest używane do budowania +pakietów, jako że może łatwo używać swojej elementarnej dziedziczności +do abstrahowania wspólnych operacji, takich jak pobieranie źródeł, +rozpakowywanie ich, łatanie, kompilowanie i tak dalej. Jest podstawą +projektu OpenEmbedded, używanego przez projekty OpenZaurus, Familiar i +wiele innych dystrybucji Linuksa. + +%package manual +Summary: Manual for %{name} +Summary(fr.UTF-8): Documentation pour %{name} +Summary(it.UTF-8): Documentazione di %{name} +Summary(pl.UTF-8): Podręcznik dla %{name} +Group: Documentation + +%description manual +Documentation for %{name}. + +%description manual -l fr.UTF-8 +Documentation pour %{name}. + +%description manual -l it.UTF-8 +Documentazione di %{name}. + +%description manual -l pl.UTF-8 +Dokumentacja do %{name}. %prep %setup -q +sed -i -e 's@#!/bin/sh[[:space:]]@#!/bin/bash @' lib/bb/build.py %build -python setup.py build +%py_build %install rm -rf $RPM_BUILD_ROOT -install -d ${RPM_BUILD_ROOT}%{_sysconfdir} -python setup.py install \ +%py_install \ --prefix=%{_prefix} \ - --root=${RPM_BUILD_ROOT} + --root=$RPM_BUILD_ROOT + +%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} -mv ${RPM_BUILD_ROOT}%{_prefix}/%{name} ${RPM_BUILD_ROOT}%{_sysconfdir}/ +install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} +mv $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name} +ln -s %{_sysconfdir}/%{name}/%{name}.conf $RPM_BUILD_ROOT%{_datadir}/%{name} %clean -rm -rf ${RPM_BUILD_ROOT} +rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/* -%{_sysconfdir}/%{name} -%dir %{py_sitescriptdir}/bb -%{py_sitescriptdir}/bb/*py[co] -%dir %{py_sitescriptdir}/bb/parse -%{py_sitescriptdir}/bb/parse/*py[co] +%dir %{_sysconfdir}/%{name} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf +%attr(755,root,root) %{_bindir}/bitbake +%attr(755,root,root) %{_bindir}/bitbake-diffsigs +%attr(755,root,root) %{_bindir}/bitbake-layers +%attr(755,root,root) %{_bindir}/bitbake-prserv +%attr(755,root,root) %{_bindir}/bitbake-selftest +%attr(755,root,root) %{_bindir}/image-writer +%{_datadir}/%{name} +%{py_sitescriptdir}/bb +%{py_sitescriptdir}/bitbake-%{version}-py*.egg-info +%{py_sitescriptdir}/codegen.py[co] +%{py_sitescriptdir}/prserv + +%files manual +%defattr(644,root,root,755) +%doc doc/manual/html/*