Skip to content

Commit

Permalink
fix: Rpm spec (#937)
Browse files Browse the repository at this point in the history
Fix fedora packaging

- %pypi_name was incorrect
- forgot to add rpmlintrc
- create PR only for rawhide
  There is an issue where commits diverge making branch tracking more complicated

Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT authored Apr 13, 2023
1 parent 36fe02a commit 84c7e4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .distro/scikit-build.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
%global pypi_name scikit_build

Name: python-scikit-build
Version: 0.0.0
Release: %{autorelease}
Expand All @@ -8,7 +10,8 @@ Summary: Improved build system generator for Python C/C++/Fortran/Cython
# All bundled(cmake()) files listed are Apache-2.0 licensed.
License: MIT AND BSD-2-Clause-Views AND Apache-2.0
URL: https://github.com/scikit-build/scikit-build
Source: %{pypi_source scikit-build}
Source0: %{pypi_source %{pypi_name}}
Source1: %{name}.rpmlintrc

BuildArch: noarch
BuildRequires: python3-devel
Expand Down Expand Up @@ -52,7 +55,7 @@ Provides: bundled(cmake(UsePythonExtensions))


%prep
%autosetup -p1 -n scikit-build-%{version}
%autosetup -n %{pypi_name}-%{version}


%generate_buildrequires
Expand Down
7 changes: 5 additions & 2 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ jobs:
- job: propose_downstream
trigger: release
dist_git_branches:
- fedora-development
- fedora-latest
# TODO: Switch to fedora-development and fedora-latest
# There is an issue that the commits diverge on different PRs. In the meantime will create PRs on branched fedora
# manually
# https://github.com/packit/packit/issues/1724
- fedora-rawhide
- job: koji_build
trigger: commit
dist_git_branches:
Expand Down

0 comments on commit 84c7e4c

Please sign in to comment.