From dd9ff5d31ca76438bbd89d123e0ae28f29d07c1a Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Aug 04 2018 19:18:32 +0000 Subject: Initial package for Fedora --- diff --git a/.gitignore b/.gitignore index e69de29..24aed6a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/buildstream-1.1.4.tar.bz2 diff --git a/0001-doc-Build-the-docs-without-Buildstream-installed.patch b/0001-doc-Build-the-docs-without-Buildstream-installed.patch new file mode 100644 index 0000000..6379771 --- /dev/null +++ b/0001-doc-Build-the-docs-without-Buildstream-installed.patch @@ -0,0 +1,52 @@ +From f36f01aa7d7e27c9dfddaf6f31c90457dd403a2a Mon Sep 17 00:00:00 2001 +From: Mathieu Bridon +Date: Sat, 4 Aug 2018 17:25:41 +0200 +Subject: [PATCH] doc: Build the docs without Buildstream installed + +--- + doc/Makefile | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/doc/Makefile b/doc/Makefile +index 3557ac5..53c088a 100644 +--- a/doc/Makefile ++++ b/doc/Makefile +@@ -31,6 +31,9 @@ ifneq ($(strip $(BST_FORCE_SESSION_REBUILD)),) + BST2HTMLOPTS = --force + endif + ++# Help Python find buildstream and its plugins ++PYTHONPATH=$(CURDIR)/..:$(CURDIR)/../buildstream/plugins ++ + + .PHONY: all clean templates templates-clean sessions sessions-prep sessions-clean html devhelp + +@@ -65,7 +68,6 @@ define plugin-doc-skeleton + endef + + +-# We set PYTHONPATH here because source/conf.py sys.modules hacks dont seem to help sphinx-build import the plugins + all: html devhelp + + clean: templates-clean sessions-clean +@@ -103,7 +105,7 @@ sessions-prep: + # + sessions: sessions-prep + for file in $(wildcard sessions/*.run); do \ +- $(BST2HTML) $(BST2HTMLOPTS) --description $$file; \ ++ PYTHONPATH=$(PYTHONPATH) $(BST2HTML) $(BST2HTMLOPTS) --description $$file; \ + done + + sessions-clean: +@@ -114,7 +116,7 @@ sessions-clean: + # + html devhelp: templates sessions + @echo "Building $@..." +- PYTHONPATH=$(CURDIR)/../buildstream/plugins \ ++ PYTHONPATH=$(PYTHONPATH) \ + $(SPHINXBUILD) -b $@ $(ALLSPHINXOPTS) "$(BUILDDIR)/$@" \ + $(wildcard source/*.rst) \ + $(wildcard source/tutorial/*.rst) \ +-- +2.17.1 + diff --git a/buildstream.spec b/buildstream.spec new file mode 100644 index 0000000..2914c1d --- /dev/null +++ b/buildstream.spec @@ -0,0 +1,120 @@ +Name: buildstream +Summary: Build/integrate software stacks +License: LGPLv2+ +URL: https://buildstream.gitlab.io/buildstream/ + +Version: 1.1.4 +Release: 1%{?dist} +Source0: https://gitlab.com/BuildStream/buildstream/-/archive/1.1.4/buildstream-1.1.4.tar.bz2 + +# https://gitlab.com/BuildStream/buildstream/merge_requests/603 +Patch0: 0001-doc-Build-the-docs-without-Buildstream-installed.patch + +BuildRequires: bubblewrap +BuildRequires: python3-devel +BuildRequires: python3-pytest-runner +BuildRequires: python3-setuptools +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx-click + +# Runtime deps, required to build the docs and run the tests +BuildRequires: fuse-libs +BuildRequires: ostree-libs +BuildRequires: python3-arpy +BuildRequires: python3-blessings +BuildRequires: python3-click +BuildRequires: python3-gobject +BuildRequires: python3-grpcio >= 1.10 +BuildRequires: python3-jinja2 >= 2.10 +BuildRequires: python3-pluginbase +BuildRequires: python3-protobuf >= 3.5 +BuildRequires: python3-psutil +BuildRequires: python3-ruamel-yaml + +Requires: bubblewrap +Requires: fuse-libs +Requires: ostree-libs +Requires: python3-arpy +Requires: python3-blessings +Requires: python3-click +Requires: python3-gobject +Requires: python3-grpcio >= 1.10 +Requires: python3-jinja2 >= 2.10 +Requires: python3-pluginbase +Requires: python3-protobuf >= 3.5 +Requires: python3-psutil +Requires: python3-ruamel-yaml +Requires: python3-setuptools + +BuildArch: noarch + +%description +BuildStream is a Free Software tool for building/integrating software stacks. +It takes inspiration, lessons and use-cases from various projects including +OBS, Reproducible Builds, Yocto, Baserock, Buildroot, Aboriginal, GNOME +Continuous, JHBuild, Flatpak Builder and Android repo. + +BuildStream supports multiple build-systems (e.g. autotools, cmake, cpan, +distutils, make, meson, qmake), and can create outputs in a range of formats +(e.g. debian packages, flatpak runtimes, sysroots, system images) for multiple +platforms and chipsets. + + +%package docs +Summary: BuildStream documentation + +%description docs +BuildStream is a Free Software tool for building/integrating software stacks. +It takes inspiration, lessons and use-cases from various projects including +OBS, Reproducible Builds, Yocto, Baserock, Buildroot, Aboriginal, GNOME +Continuous, JHBuild, Flatpak Builder and Android repo. + +BuildStream supports multiple build-systems (e.g. autotools, cmake, cpan, +distutils, make, meson, qmake), and can create outputs in a range of formats +(e.g. debian packages, flatpak runtimes, sysroots, system images) for multiple +platforms and chipsets. + +This package provides the documentation for BuildStream. + + +%prep +%autosetup -n %{name}-%{version} -p1 + + +%build +%{py3_build} + +pushd doc +make devhelp +popd + + +%install +%{py3_install} + +mkdir -p %{buildroot}%{_datadir}/gtk-doc/html/ +cp -pr doc/build/devhelp %{buildroot}%{_datadir}/gtk-doc/html/BuildStream + + +# Disable the tests for now, too many unavailable dependencies +%check +#py.test-3 + + +%files +%doc NEWS README.rst +%license COPYING +%{_bindir}/bst* +%{python3_sitelib}/BuildStream-%{version}*.egg-info +%{python3_sitelib}/buildstream +%{_datadir}/bash-completion/completions/bst +%{_mandir}/man1/bst* + + +%files docs +%{_datadir}/gtk-doc + + +%changelog +* Sat Aug 04 2018 Mathieu Bridon - 1.1.4-1 +- Initial package for fedora diff --git a/sources b/sources new file mode 100644 index 0000000..0cf86fc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (buildstream-1.1.4.tar.bz2) = 79d0d63c224bee56f1d8a8c71f6d941aa75c6f735781d840d444d37a00516fe47e003500ce14115f107ca5f1cc7c6c0db42ed1ece708d136c04e8083e6ea3f23