-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove deprecated dependency on distutils * build srpm
- Loading branch information
Showing
8 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
srpm: | ||
@echo ">Installing SRPM dependencies" | ||
dnf install -y python3-setuptools rpmdevtools | ||
|
||
@echo ">Setting up rpm build environment" | ||
rpmdev-setuptree -d | ||
|
||
@echo ">Building SRPM" | ||
scripts/build_srpm.sh $(outdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
%define name osidb_bindings | ||
%define version 3.7.0 | ||
%define release 0%{?dist} | ||
|
||
Name: %{name} | ||
Version: %{version} | ||
Release: %{release} | ||
Summary: OSIDB Python Bindings | ||
|
||
URL: https://github.com/RedHatProductSecurity/osdib-bindings | ||
Source0: %{name}-%{version}.tar.gz | ||
License: MIT | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | ||
|
||
BuildArch: noarch | ||
AutoReqProv: no | ||
BuildRequires: python3-devel | ||
BuildRequires: python3-wheel | ||
BuildRequires: tox | ||
BuildRequires: python3-tox-current-env | ||
Requires: python3-aiohttp | ||
Requires: python3-attrs | ||
Requires: python3-dateutil | ||
Requires: python3-requests | ||
Requires: python3-requests-gssapi | ||
|
||
|
||
%description | ||
Python Client bindings for OSIDB | ||
|
||
%prep | ||
%autosetup -n %{name}-%{version} -p1 | ||
|
||
%generate_buildrequires | ||
|
||
%pyproject_buildrequires | ||
|
||
|
||
%build | ||
%pyproject_wheel | ||
|
||
%install | ||
%pyproject_install | ||
|
||
%pyproject_save_files %{name} | ||
|
||
%check | ||
%tox | ||
|
||
%files -n %{name} -f %{pyproject_files} | ||
%ghost %{python3_sitelib}/tests/* | ||
|
||
%changelog | ||
* Wed May 22 2024 Jason <[email protected]> - 3.6.0 | ||
- RPM packing for osidb_bindings added | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
mkdir dist | ||
python3 setup.py clean sdist | ||
cp dist/* ~/build/SOURCES/ | ||
rpmbuild --undefine dist -bs "osidb_bindings.spec" --clean | ||
cp ~/build/SRPMS/* "$1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
long_description = fh.read() | ||
|
||
setup( | ||
name="osidb-bindings", | ||
name="osidb_bindings", | ||
version="3.7.0", | ||
author="Jakub Frejlach, Red Hat Product Security", | ||
author_email="[email protected]", | ||
|