Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add python3-devel and source URL… #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GloriousEggroll
Copy link

@GloriousEggroll GloriousEggroll commented Jan 8, 2024

Add python3-devel to build requirements to fix build failure, add URL for source to allow usage with spectool

(1) Without python3-devel build requirement the package fails to build with the following error:

RPM build errors:
    source_date_epoch_from_changelog set but %changelog is missing
    File must begin with "/": %{python3_sitelib}/{,__pycache__/}slackfix*

(2) By adding the URL for the latest release we can simply clone the repo and run spectool -g *.spec inside the cloned folder to grab the latest tarball automagically.

Doing so simplifies the build process:

git clone https://github.com/frispete/slackfix
cd slackfix
spectool -g *.spec
fedpkg --release f39 srpm
mock -r /etc/mock/fedora-39-x86_64.cfg --rebuild --enable-network *.src.rpm
mv /var/lib/mock/fedora-39-x86_64/result .
sudo dnf install result/slackfix-0.1.3-0.noarch.rpm

… for source to allow usage with spectool

(1) Without python3-devel build requirement the package fails to build with the following error:

RPM build errors:
    source_date_epoch_from_changelog set but %changelog is missing
    File must begin with "/": %{python3_sitelib}/{,__pycache__/}slackfix*

(2) By adding the URL for the latest release we can simply clone the repo and run `spectool -g *.spec` inside the cloned folder to grab the latest tarball automagically.

Doing so simplifies the build process:
```
git clone https://github.com/frispete/slackfix
cd slackfix
spectool -g *.spec
fedpkg --release f39 srpm
mock -r /etc/mock/fedora-39-x86_64.cfg --rebuild --enable-network *.src.rpm
mv /var/lib/mock/fedora-39-x86_64/result .
sudo dnf install result/slackfix-0.1.3-0.noarch.rpm
```
@GloriousEggroll GloriousEggroll changed the title add python3-devel to build requirements to fix build failure, add URL… add python3-devel and source URL… Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant