-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
daf7252
commit 6dd62de
Showing
5 changed files
with
150 additions
and
0 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
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,39 @@ | ||
name: build-pyauditor-rpm | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build-pyauditor-rpm: | ||
runs-on: ubuntu-latest | ||
container: almalinux:9 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download pyauditor source | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: pyauditor-wheels-source | ||
|
||
- name: Install build dependencies | ||
run: | | ||
dnf install -y 'dnf-command(config-manager)' | ||
dnf config-manager --set-enabled crb | ||
dnf install -y epel-release | ||
dnf install -y rpm-build rpmdevtools gcc make pip python3-devel pyproject-rpm-macros python3-tomli | ||
sudo pip install --upgrade pip | ||
sudo pip install maturin | ||
- name: Set up RPM build environment | ||
run: | | ||
rpmdev-setuptree | ||
- name: Copy spec file and sources | ||
run: | | ||
cp rpm/python-auditor.spec ~/rpmbuild/SPECS/ | ||
cp *.gz ~/rpmbuild/SOURCES/ | ||
- name: Build RPM | ||
run: | | ||
rpmbuild -ba ~/rpmbuild/SPECS/python-auditor.spec |
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,53 @@ | ||
Name: python-auditor | ||
Version: 0.7.0 | ||
Release: %autorelease | ||
# Fill in the actual package summary to submit package to Fedora | ||
Summary: Python interface to AuditorClient | ||
|
||
# Check if the automatically generated License and its spelling is correct for Fedora | ||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ | ||
License: MIT OR Apache-2.0 | ||
URL: https://alu-schumacher.github.io/AUDITOR/ | ||
Source: %{pypi_source python_auditor} | ||
|
||
BuildRequires: python3-devel | ||
BuildRequires: gcc | ||
|
||
# Fill in the actual package description to submit package to Fedora | ||
%global _description %{expand: | ||
This is package 'python-auditor' generated automatically by pyp2spec.} | ||
|
||
%description %_description | ||
|
||
%package -n python3-python-auditor | ||
Summary: %{summary} | ||
|
||
%description -n python3-python-auditor %_description | ||
|
||
|
||
%prep | ||
%autosetup -p1 -n python_auditor-%{version} | ||
|
||
# %generate_buildrequires | ||
# %pyproject_buildrequires | ||
|
||
|
||
%build | ||
%pyproject_wheel | ||
|
||
|
||
%install | ||
%pyproject_install | ||
# Add top-level Python module names here as arguments, you can use globs | ||
%pyproject_save_files pyauditor | ||
|
||
|
||
%check | ||
%pyproject_check_import | ||
|
||
|
||
%files -n python3-python-auditor -f %{pyproject_files} | ||
|
||
|
||
%changelog | ||
%autochangelog |
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,53 @@ | ||
Name: python-maturin | ||
Version: 1.8.2 | ||
Release: %autorelease | ||
# Fill in the actual package summary to submit package to Fedora | ||
Summary: Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages | ||
|
||
# Check if the automatically generated License and its spelling is correct for Fedora | ||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ | ||
License: MIT OR Apache-2.0 | ||
URL: https://github.com/pyo3/maturin | ||
Source: %{pypi_source maturin} | ||
|
||
BuildArch: noarch | ||
BuildRequires: python3-devel | ||
|
||
|
||
# Fill in the actual package description to submit package to Fedora | ||
%global _description %{expand: | ||
This is package 'maturin' generated automatically by pyp2spec.} | ||
|
||
%description %_description | ||
|
||
%package -n python3-maturin | ||
Summary: %{summary} | ||
|
||
%description -n python3-maturin %_description | ||
|
||
%prep | ||
%autosetup -p1 -n maturin-%{version} | ||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires | ||
|
||
|
||
%build | ||
%pyproject_wheel | ||
|
||
|
||
%install | ||
%pyproject_install | ||
# Add top-level Python module names here as arguments, you can use globs | ||
%pyproject_save_files maturin | ||
|
||
|
||
%check | ||
%pyproject_check_import | ||
|
||
|
||
%files -n python3-maturin -f %{pyproject_files} | ||
|
||
|
||
%changelog | ||
%autochangelog |