Skip to content

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