From ad82c745148544c5c0b77ed8c3d65e81a8443a74 Mon Sep 17 00:00:00 2001 From: Will Foster Date: Thu, 30 Apr 2026 16:26:25 +0100 Subject: [PATCH 1/2] chore: fix rpm spec file --- rpm/quads-lib.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm/quads-lib.spec b/rpm/quads-lib.spec index 1bb0706..c09a792 100644 --- a/rpm/quads-lib.spec +++ b/rpm/quads-lib.spec @@ -4,8 +4,8 @@ Release: 1%{?dist} Summary: Python client library for interacting with the QUADS API License: LGPL-3.0-only -URL: https://github.com/quadsproject/python-quads-lib -Source0: %{name}-%{version}.tar.gz +URL: https://quads.dev +Source0: https://github.com/quadsproject/python-quads-lib/archive/%{branch}.tar.gz#/%{name}-%{version}-%{release}.tar.gz BuildArch: noarch BuildRequires: python3-devel From 4e37cd1f025537ec74c0ef21f2ec7e3f7edaf953 Mon Sep 17 00:00:00 2001 From: Will Foster Date: Thu, 30 Apr 2026 16:38:39 +0100 Subject: [PATCH 2/2] chore: make rpm spec more copr-like --- rpm/quads-lib.spec | 55 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/rpm/quads-lib.spec b/rpm/quads-lib.spec index c09a792..095bbee 100644 --- a/rpm/quads-lib.spec +++ b/rpm/quads-lib.spec @@ -1,25 +1,47 @@ -Name: quads-lib -Version: 0.1.9 -Release: 1%{?dist} -Summary: Python client library for interacting with the QUADS API +#### NOTE: if building locally you may need to do the following: +#### +#### yum install rpmdevtools -y +#### spectool -g -R rpm/quads-lib.spec +#### +#### At this point you can use rpmbuild -ba quads-lib.spec +#### this is because our Source0 is a remote Github location +#### +#### Our upstream repository is located here: +#### https://copr.fedorainfracloud.org/coprs/quadsdev/QUADS -License: LGPL-3.0-only -URL: https://quads.dev -Source0: https://github.com/quadsproject/python-quads-lib/archive/%{branch}.tar.gz#/%{name}-%{version}-%{release}.tar.gz +%define name quads-lib +%define reponame python-quads-lib +%define branch development +%define version 0.1.9 +%define build_timestamp %{lua: print(os.date("%Y%m%d"))} -BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3-setuptools +Summary: Python client library for interacting with the QUADS API +Name: %{name} +Version: %{version} +Release: %{build_timestamp} +Source0: https://github.com/quadsproject/%{reponame}/archive/%{branch}.tar.gz#/%{name}-%{version}-%{release}.tar.gz +License: LGPL-3.0-only +BuildRoot: %{_tmppath}/%{name}-buildroot +BuildArch: noarch +Vendor: QUADS Project +Packager: QUADS Project +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: python3 >= 3.9 +Requires: python3-requests >= 2.31.0 -Requires: python3-requests >= 2.31.0 +AutoReq: no + +Url: https://quads.dev %description + Python client library for interacting with the QUADS (Automated Scheduling and Delivery System) API. Provides QuadsApi class for REST API communication with QUADS servers. %prep -%autosetup -n quads_lib-%{version} +%autosetup -n %{reponame}-%{branch} %build %py3_build @@ -27,14 +49,19 @@ with QUADS servers. %install %py3_install +%clean +rm -rf %{buildroot} + %files -%license LICENSE %doc README.rst CHANGELOG.rst +%license LICENSE %{python3_sitelib}/quads_lib/ %{python3_sitelib}/quads_lib-*.egg-info/ %changelog -* Wed Apr 30 2026 Will Foster - 0.1.9-1 + +* Wed Apr 30 2026 Will Foster +- 0.1.9 release - Initial RPM package for quads-lib - Provides QuadsApi client for QUADS API v3 - Required dependency for quads-client TUI