Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Jindrich Novy
e8bfa71205 beaker-29.2-5.el10_1
- Initial build for EPEL-10

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2025-07-24 11:35:42 +02:00
4 changed files with 136 additions and 0 deletions

1
.gitignore vendored
View file

@ -0,0 +1 @@
/*.tar.*

14
beaker-snapshot.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
set -e
set -o pipefail
if [ ! -d beaker-checkout ]; then
git clone git://git.beaker-project.org/beaker beaker-checkout
cd beaker-checkout
else
cd beaker-checkout
git pull
fi
NAME="$(git describe)"
git archive --prefix="${NAME}/" -o ../"${NAME}".tar.gz origin/develop
echo "${NAME}"

120
beaker.spec Normal file
View file

@ -0,0 +1,120 @@
%global upstream_name beaker
# No sphinxcontrib-httpdomain rpm on EPEL10
%bcond docs %[ 0%{?fedora} || 0%{?rhel} < 10 ]
Name: %{upstream_name}
Version: 29.2
Release: 5%{?dist}
Summary: Full-stack software and hardware integration testing system
License: GPL-2.0-or-later
URL: https://beaker-project.org/
# To generate git snapshot, see beaker-snapshot.sh
Source0: https://beaker-project.org/releases/%{upstream_name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BuildRequires: python3-devel
%if %{with docs}
BuildRequires: python3-docutils
BuildRequires: python3-sphinx
BuildRequires: python3-sphinxcontrib-httpdomain
%endif
%package common
Summary: Common components for Beaker packages
Provides: %{name} = %{version}-%{release}
Obsoletes: %{name} < 0.17.0-1
%package client
Summary: Command-line client for interacting with Beaker
Requires: %{name}-common = %{version}-%{release}
BuildRequires: pkgconfig(bash-completion)
BuildRequires: python3-gssapi
BuildRequires: python3-lxml
BuildRequires: python3-prettytable
BuildRequires: python3-libxml2
BuildRequires: make
Requires: python3-six
Requires: python3-setuptools
Requires: python3-gssapi
Requires: python3-lxml
Requires: python3-requests
Requires: python3-libxml2
Requires: python3-prettytable
Requires: python3-jinja2
# beaker-wizard was moved from rhts-devel to here in 4.52
Conflicts: rhts-devel < 4.52
%description
Beaker is a full stack software and hardware integration testing system, with
the ability to manage a globally distributed network of test labs.
%description common
Python modules which are used by other Beaker packages.
%description client
The bkr client is a command-line tool for interacting with Beaker servers. You
can use it to submit Beaker jobs, fetch results, and perform many other tasks.
%prep
%setup -q -n %{upstream_name}-%{version}
%if %{without docs}
rm -rf documentation
sed -i '/SUBDIRS.*:=/s/\s*documentation\s*/ /g' Makefile
%endif
# The server relies on a great many packages which are intended to be bundled
# source, and its documentation greatly inflates the number of BR packages
# required. Until those are packaged separately, building those subpackages is
# unnnecessary
rm -r Server IntegrationTests LabController #documentation/server-api
%build
export BKR_PY3=1
make
%install
export BKR_PY3=1
DESTDIR=%{buildroot} make install
rm -rf %{buildroot}%{_datadir}/beaker-integration-tests/
rm -rf %{buildroot}%{python3_sitelib}/bkr/inttest
rm -rf %{buildroot}%{python3_sitelib}/beaker_integration_tests*
# These are for lab-controller stuff, which depends on server
rm -rf %{buildroot}%{_mandir}/man8/
%check
export BKR_PY3=1
#make check
# Running the checks generates some .pyc files - burn them!
find %{buildroot} -name '__pycache__' | xargs rm -rf
%files common
%doc README.md
%license COPYING
%dir %{python3_sitelib}/bkr/
%{python3_sitelib}/bkr/__init__.py*
%{python3_sitelib}/bkr/common/
%{python3_sitelib}/bkr/log.py*
%{python3_sitelib}/%{name}_common-%{version}-py%{python3_version}.egg-info/
%files client
%dir %{_sysconfdir}/%{name}
%doc Client/client.conf.example
%{python3_sitelib}/bkr/client/
%{python3_sitelib}/%{name}_client-%{version}-py%{python3_version}-nspkg.pth
%{python3_sitelib}/%{name}_client-%{version}-py%{python3_version}.egg-info/
%{_bindir}/%{name}-wizard
%{_bindir}/bkr
%if %{with docs}
%{_mandir}/man1/beaker-wizard.1.gz
%{_mandir}/man1/bkr.1.gz
%{_mandir}/man1/bkr-*.1.gz
%endif
%{_datadir}/bash-completion
%changelog
* Thu Jul 24 2025 Jindrich Novy <jnovy@redhat.com> - 29.2-5
- Initial build for EPEL-10

View file

@ -0,0 +1 @@
SHA512 (beaker-29.2.tar.xz) = a004ab1cb3fe2f9ceb370bb8f307a4afdd972e0715cf81cf7832860721c834bfe2d9b1bc26ae4c3d58ef6506afd176779a166774fbd311b0354444a9f0b8c3f9