-
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.
- Loading branch information
Showing
4 changed files
with
76 additions
and
1 deletion.
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,58 @@ | ||
%define name osidb_bindings | ||
%define version 3.6.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
|
||
#cleanup build dirs | ||
rm -r dist/ ~/rpmbuild/SOURCES/* ~/rpmbuild/SRPMS/* || true | ||
|
||
mkdir dist | ||
python3 setup.py clean sdist | ||
cp dist/* ~/rpmbuild/SOURCES/ | ||
rpmbuild --undefine dist -bs "osidb_bindings.spec" --clean | ||
|
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,4 @@ | ||
#!/bin/sh | ||
|
||
#submit SRPMs to copr | ||
copr-cli build --nowait jazinner/osidb-bindings ~/rpmbuild/SRPMS/* |
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]", | ||
|