public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/buildbot] epel10.2: Rebase to 1.0.0 (#1236345)
@ 2026-10-09 14:34 Neal Gompa
0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-10-09 14:34 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/buildbot
Branch : epel10.2
Commit : 4a12654090b329a4c16f36e5689f73cb38781447
Author : Neal Gompa <ngompa13@gmail.com>
Date : 2018-02-21T06:23:21-05:00
Stats : +117/-70 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/buildbot/c/4a12654090b329a4c16f36e5689f73cb38781447?branch=epel10.2
Log:
Rebase to 1.0.0 (#1236345)
- Rename slave subpackage to worker subpackage per upstream rename
- Drop tests and docs as they require several unpackaged dependencies
---
diff --git a/.gitignore b/.gitignore
index 9ddae2c..be000bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,5 @@ buildbot-0.7.12.tar.gz
/buildbot-0.8.10.tar.gz
/buildbot-0.8.12.tar.gz
/buildbot-slave-0.8.12.tar.gz
+/buildbot-1.0.0.tar.gz
+/buildbot-worker-1.0.0.tar.gz
diff --git a/buildbot.spec b/buildbot.spec
index 67826a4..24ce366 100644
--- a/buildbot.spec
+++ b/buildbot.spec
@@ -1,49 +1,85 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+# Enable Python dependency generation
+%{?python_enable_dependency_generator}
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
-%global do_tests 1
+# Missing dependencies for tests
+%bcond_with check
-# The master and slave packages have (in theory) an independent versioning
-%global slaveversion %{version}
+# Missing dependencies for documentation
+%bcond_with docs
+
+# The master and worker packages have (in theory) an independent versioning
+%global workerversion %{version}
Name: buildbot
-Version: 0.8.12
-Release: 6%{?dist}
+Version: 1.0.0
+Release: 1%{?dist}
Summary: Build/test automation system
Group: Development/Tools
License: GPLv2
URL: http://buildbot.net
-Source0: https://pypi.python.org/packages/source/b/%{name}/%{name}-%{version}.tar.gz
-Source1: https://pypi.python.org/packages/source/b/%{name}-slave/%{name}-slave-%{slaveversion}.tar.gz
+Source0: https://files.pythonhosted.org/packages/source/b/%{name}/%{name}-%{version}.tar.gz
+Source1: https://files.pythonhosted.org/packages/source/b/%{name}-worker/%{name}-worker-%{version}.tar.gz
BuildArch: noarch
-BuildRequires: python-devel
-BuildRequires: python-sphinx
-
-# Needed for tests
-%if %do_tests
-BuildRequires: python-sqlalchemy
-BuildRequires: python-migrate
-BuildRequires: python-mock
-BuildRequires: python-dateutil
-BuildRequires: python-twisted
-
-BuildRequires: bzr
+BuildRequires: python2-devel
+BuildRequires: python2dist(setuptools) >= 8.0
+# For Python 3, it requires python3dist(twisted) >= 17.9.0
+# c.f.: https://github.com/buildbot/buildbot/blob/v1.0.0/master/setup.py#L458-L461
+BuildRequires: python2dist(twisted) >= 16.1.0
+BuildRequires: python2dist(jinja2) >= 2.1
+BuildRequires: python2dist(zope.interface) >= 4.1.1
+BuildRequires: python2dist(future)
+BuildRequires: python2dist(sqlalchemy) >= 0.8.0
+BuildRequires: python2dist(sqlalchemy-migrate) >= 0.9
+BuildRequires: python2dist(python-dateutil) >= 1.5
+BuildRequires: python2dist(txaio) >= 2.2.2
+BuildRequires: python2dist(autobahn) >= 0.16.0
+BuildRequires: python2dist(pyjwt)
+
+%if %{with check}
+BuildRequires: python2dist(treq)
+BuildRequires: python2dist(txrequests)
+BuildRequires: python2dist(pyjade)
+BuildRequires: python2dist(boto3)
+BuildRequires: python2dist(moto)
+BuildRequires: python2dist(txgithub)
+BuildRequires: python2dist(ramlfications)
+BuildRequires: python2dist(mock) >= 2.0.0
+BuildRequires: python2dist(lz4)
+
+BuildRequires: bzr
BuildRequires: cvs
BuildRequires: git
BuildRequires: mercurial
BuildRequires: subversion
-
BuildRequires: darcs
%endif
+
+%if %{with docs}
+BuildRequires: python2dist(sphinx) >= 1.4.0
+BuildRequires: python2dist(sphinxcontrib-blockdiag)
+BuildRequires: python2dist(sphinxcontrib-spelling)
+BuildRequires: python2dist(pyenchant)
+BuildRequires: (python2dist(docutils) >= 0.8 with python2dist(docutils) < 0.13.0)
+BuildRequires: python2dist(ramlfications)
+BuildRequires: python2dist(sphinx-jinja)
+BuildRequires: python2dist(towncrier)
+%endif
+
+
# Turns former package into a metapackage for installing everything
Requires: %{name}-master = %{version}
+Requires: %{name}-worker = %{workerversion}
+%if %{with docs}
Requires: %{name}-doc = %{version}
-Requires: %{name}-slave = %{slaveversion}
+%else
+Obsoletes: %{name}-doc < %{version}-%{release}
+%endif
%description
@@ -59,12 +95,9 @@ Summary: Build/test automation system
Group: Development/Tools
License: GPLv2
-Requires: python-twisted
-Requires: python-boto
-Requires: python-jinja2
-Requires: python-sqlalchemy
-Requires: python-migrate
-Requires: python-dateutil
+%if ! %{with docs}
+Obsoletes: %{name}-doc < %{version}-%{release}
+%endif
Requires(post): info
Requires(preun): info
@@ -78,103 +111,115 @@ problems are pinpointed quickly, before other developers are
inconvenienced by the failure.
This package contains only the buildmaster implementation.
-The buildbot-slave package contains the buildslave.
+The buildbot-worker package contains the buildworker.
-%package slave
-Version: %{slaveversion}
+%package worker
+Version: %{workerversion}
Summary: Build/test automation system
Group: Development/Tools
License: GPLv2
+Obsoletes: %{name}-slave < 0.9.0
+Provides: %{name}-slave = %{version}-%{release}
-Requires: python-twisted
+%if ! %{with docs}
+Obsoletes: %{name}-doc < %{version}-%{release}
+%endif
-%description slave
-This package contains only the buildslave implementation.
+%description worker
+This package contains only the buildworker implementation.
The buildbot-master package contains the buildmaster.
+%if %{with docs}
%package doc
Summary: Buildbot documentation
Group: Documentation
%description doc
Buildbot documentation
-
+%endif
%prep
-%setup -q -b 1 -n %{name}-slave-%{slaveversion}
-%setup -q
+%autosetup -b1 -p1
%build
-%{__python} setup.py build
+%py2_build
+%if %{with docs}
#TODO create API documentation
pushd docs
-make docs.tgz
+make docs.tgz VERSION="%{version}" SPHINXBUILD=sphinx-build-2
popd
+%endif
-pushd ../%{name}-slave-%{slaveversion}
-%{__python} setup.py build
+pushd ../%{name}-worker-%{workerversion}
+%py2_build
popd
-%if %do_tests
-%check
-trial buildbot.test
-%endif
-
-
%install
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%py2_install
mkdir -p %{buildroot}%{_datadir}/%{name}/ \
%{buildroot}%{_mandir}/man1/ \
%{buildroot}%{_pkgdocdir}
-cp -R contrib %{buildroot}/%{_datadir}/%{name}/
-
# install the man page
cp docs/buildbot.1 %{buildroot}%{_mandir}/man1/buildbot.1
+%if %{with docs}
# install HTML documentation
tar xf docs/docs.tgz --strip-components=1 -C %{buildroot}%{_pkgdocdir}
+%endif
-# clean up Windows contribs.
-sed -i 's/\r//' %{buildroot}/%{_datadir}/%{name}/contrib/windows/*
-chmod -x %{buildroot}/%{_datadir}/%{name}/contrib/windows/*
+# install worker files
+pushd ../%{name}-worker-%{workerversion}
+%py2_install
+popd
-# install slave files
-cd ../%{name}-slave-%{slaveversion}
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+# Purge windows-only files
+rm %{buildroot}%{_bindir}/*windows*
-# fix rpmlint E: script-without-shebang
-sed -i '1i#!/usr/bin/python' %{buildroot}%{_datadir}/%{name}/contrib/bk_buildbot.py
+%if %{with check}
+%check
+trial buildbot.test
+%endif
%files
+# Empty because metapackage
%files master
-%doc COPYING CREDITS NEWS README UPGRADING
-%doc %{_mandir}/man1/buildbot.1.gz
+%doc CREDITS NEWS UPGRADING
+%license COPYING
%{_bindir}/buildbot
-%{python_sitelib}/buildbot
-%{python_sitelib}/buildbot-*egg-info
+%{_mandir}/man1/buildbot.1*
+%{python2_sitelib}/buildbot/
+%{python2_sitelib}/buildbot-*egg-info/
%{_datadir}/%{name}
-%files slave
-%doc COPYING NEWS README UPGRADING
-%{_bindir}/buildslave
-%{python_sitelib}/buildslave
-%{python_sitelib}/buildbot_slave-*egg-info
+%files worker
+%doc NEWS UPGRADING
+%license COPYING
+%{_bindir}/buildbot-worker
+%{python2_sitelib}/buildbot_worker/
+%{python2_sitelib}/buildbot_worker-*egg-info/
+%if %{with docs}
%files doc
-%{_pkgdocdir}
+%{_pkgdocdir}/
+%endif
%changelog
+* Tue Feb 20 2018 Neal Gompa <ngompa13@gmail.com> - 1.0.0-1
+- Rebase to 1.0.0 (#1236345)
+- Rename slave subpackage to worker subpackage per upstream rename
+- Drop tests and docs as they require several unpackaged dependencies
+
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.12-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index feb31b9..7c1bad1 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-c61fa219942f8a1ed43cdbc1e4ef0187 buildbot-0.8.12.tar.gz
-a5bdda0174e0428b14580323d35b221f buildbot-slave-0.8.12.tar.gz
+SHA512 (buildbot-1.0.0.tar.gz) = 1a693a76d002f05a9df6dce84906277bded47c1574d48c5549ce6a7f56ef3a7cfd6d68971158fa06696f65b48e4d305564b44d9a7f76edbe63e27ccbd62667ab
+SHA512 (buildbot-worker-1.0.0.tar.gz) = 161a03fe9ffb4f323b7be588c8b4d4183ba8ca86006e236ddd5851a6e2eb3ac3e5dab8c0961ef71f3ea219fefe24266a765ba1e49c05514eeb5bfee668679a0a
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 14:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 14:34 [rpms/buildbot] epel10.2: Rebase to 1.0.0 (#1236345) Neal Gompa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox