public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gwyn Ciesla <gwync@protonmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/buildbot] epel10.2: Convert to new macros.
Date: Fri, 09 Oct 2026 14:34:56 GMT [thread overview]
Message-ID: <179155649659.1.6593491918697641650.rpms-buildbot-a9459ae14d04@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/buildbot
Branch : epel10.2
Commit : a9459ae14d04119aaf0d752949dd2d37b20b7fa2
Author : Gwyn Ciesla <gwync@protonmail.com>
Date : 2025-07-08T13:11:45-05:00
Stats : +19/-18 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/buildbot/c/a9459ae14d04119aaf0d752949dd2d37b20b7fa2?branch=epel10.2
Log:
Convert to new macros.
---
diff --git a/buildbot.spec b/buildbot.spec
index bb4886c..2bd119e 100644
--- a/buildbot.spec
+++ b/buildbot.spec
@@ -1,5 +1,4 @@
# Enable Python dependency generation
-%{?python_enable_dependency_generator}
# Missing dependencies for tests
%bcond_with check
@@ -44,10 +43,8 @@ Source11: buildbot-worker@.service
BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
# For making the build work from source
-BuildRequires: python3dist(setuptools) >= 21.2.1
BuildRequires: python3dist(twisted) >= 17.9
BuildRequires: python3dist(jinja2) >= 2.1
BuildRequires: python3dist(zope-interface) >= 4.1.1
@@ -116,6 +113,8 @@ inconvenienced by the failure.
%files
# Empty because metapackage
+%exclude %{python3_sitelib}/*buildbot_pkg*
+%exclude %{python3_sitelib}/__pycache__/*buildbot_pkg*
# ---------------------------------------------------------------------
@@ -150,7 +149,7 @@ done
%{_bindir}/buildbot
%{_mandir}/man1/buildbot.1*
%{python3_sitelib}/buildbot/
-%{python3_sitelib}/buildbot-*egg-info/
+%{python3_sitelib}/buildbot-*dist-info/
%dir %{_sharedstatedir}/buildbot
%dir %attr(-, buildbot-master, buildbot-master) %{_sharedstatedir}/buildbot/master
%{_unitdir}/buildbot-master@.service
@@ -267,7 +266,7 @@ done
%{_bindir}/buildbot-worker
%{_mandir}/man1/buildbot-worker.1*
%{python3_sitelib}/buildbot_worker/
-%{python3_sitelib}/buildbot_worker-*egg-info/
+%{python3_sitelib}/buildbot_worker-*dist-info/
%dir %{_sharedstatedir}/buildbot
%dir %attr(-, buildbot-worker, buildbot-worker) %{_sharedstatedir}/buildbot/worker
%{_unitdir}/buildbot-worker@.service
@@ -285,17 +284,17 @@ Provides web frontend for buildbot.
%files www
%license COPYING
%{python3_sitelib}/buildbot_www/
-%{python3_sitelib}/buildbot_www-*.egg-info/
+%{python3_sitelib}/buildbot_www-*.dist-info/
%{python3_sitelib}/buildbot_waterfall_view/
-%{python3_sitelib}/buildbot_waterfall_view-*egg-info/
+%{python3_sitelib}/buildbot_waterfall_view-*dist-info/
%{python3_sitelib}/buildbot_grid_view/
-%{python3_sitelib}/buildbot_grid_view-*egg-info/
+%{python3_sitelib}/buildbot_grid_view-*dist-info/
%{python3_sitelib}/buildbot_console_view/
-%{python3_sitelib}/buildbot_console_view-*egg-info/
+%{python3_sitelib}/buildbot_console_view-*dist-info/
%{python3_sitelib}/buildbot_badges/
-%{python3_sitelib}/buildbot_badges-*egg-info/
+%{python3_sitelib}/buildbot_badges-*dist-info/
%{python3_sitelib}/buildbot_wsgi_dashboards/
-%{python3_sitelib}/buildbot_wsgi_dashboards-*egg-info/
+%{python3_sitelib}/buildbot_wsgi_dashboards-*dist-info/
# ---------------------------------------------------------------------
@@ -326,8 +325,11 @@ cat >buildbot-worker.sysusers.conf <<EOF
u buildbot-worker - 'Service account for the Buildbot worker' %{_sharedstatedir}/buildbot/worker -
EOF
+%generate_buildrequires
+%pyproject_buildrequires
+
%build
-%py3_build
+%pyproject_wheel
%if %{with docs}
#TODO create API documentation
@@ -337,8 +339,7 @@ popd
%endif
pushd ../%{name}_worker-%{version}
-sed -i /future/d setup.py
-%py3_build
+%pyproject_wheel
popd
# For buildbot_pkg build-time module to set version correctly
@@ -352,12 +353,12 @@ bbweb_components=(pkg www waterfall_view grid_view console_view badges wsgi_dash
for bbweb_component in ${bbweb_components[@]}; do
pushd ../%{name}_${bbweb_component}-%{version}
sed -e "s/^ setup_requires=.*$//" -i setup.py
- %py3_build
+ %pyproject_wheel
popd
done
%install
-%py3_install
+%pyproject_install
# For buildbot_pkg build-time module to set version correctly
export BUILDBOT_VERSION=%{version}
@@ -369,7 +370,7 @@ bbweb_components=(www waterfall_view grid_view console_view badges wsgi_dashboar
for bbweb_component in ${bbweb_components[@]}; do
pushd ../%{name}_${bbweb_component}-%{version}
- %py3_install
+ %pyproject_install
popd
done
@@ -382,7 +383,7 @@ tar xf docs/docs.tgz --strip-components=1 -C %{buildroot}%{_pkgdocdir}
# install worker files
pushd ../%{name}_worker-%{version}
-%py3_install
+%pyproject_install
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/buildbot-worker.1
install -m0644 -D buildbot.sysusers.conf %{buildroot}%{_sysusersdir}/buildbot.conf
install -m0644 -D buildbot-worker.sysusers.conf %{buildroot}%{_sysusersdir}/buildbot-worker.conf
reply other threads:[~2026-10-09 14:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179155649659.1.6593491918697641650.rpms-buildbot-a9459ae14d04@fedoraproject.org \
--to=gwync@protonmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox