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

make src rpms #117

Open
stdweird opened this issue Oct 7, 2015 · 11 comments
Open

make src rpms #117

stdweird opened this issue Oct 7, 2015 · 11 comments
Milestone

Comments

@stdweird
Copy link
Member

stdweird commented Oct 7, 2015

mvn package calls rpmbuild without path, so this is pretty easy:

  • make script called rpmbuild somewhere
#!/bin/bash
# First arg of rpmbuild in mvn package is -bb
shift
/usr/bin/rpmbuild -ba "$@"
exit $?
  • add script to path
export PATH=$PWD:$PATH
chmod +x rpmbuild
  • run mvn package
@stdweird stdweird added this to the 15.10 milestone Oct 7, 2015
@stdweird
Copy link
Member Author

stdweird commented Oct 7, 2015

@jrha this produces both src and regular rpms

@jrha
Copy link
Member

jrha commented Oct 7, 2015

They get produced anyway, but I don't keep them because they are kind of pointless.

@stdweird
Copy link
Member Author

stdweird commented Oct 7, 2015

how do you produce them?

@jrha
Copy link
Member

jrha commented Oct 7, 2015

Hmm, nope I was mistaken, we get the spec files though.

@stdweird
Copy link
Member Author

stdweird commented Oct 7, 2015

yes, but maven makes no SOURCES, populates the buildroot directly, so spec files are a bit useless

@jrha jrha modified the milestones: 16.2, 15.12 Dec 7, 2015
@jrha jrha removed this from the 16.2 milestone Feb 12, 2016
@stdweird
Copy link
Member Author

stdweird commented Aug 4, 2016

@jrha this is what i meant

@jrha
Copy link
Member

jrha commented Aug 4, 2016

Cool, thanks.

@jrha
Copy link
Member

jrha commented Oct 6, 2016

@wdpypere submitted a patch upstream for the maven rpm plugin, mojohaus/rpm-maven-plugin#66, if that gets merged we can avoid using @stdweird's workaround.

@wdpypere
Copy link
Contributor

the patch just got merged at mojohaus/rpm-maven-plugin#66

@ned21
Copy link
Contributor

ned21 commented Oct 26, 2017

The PR is tagged for release in 2.2.0 but last release was 2.1.5 in Feb 2016. 😢

@jrha
Copy link
Member

jrha commented Sep 5, 2024

2.2.0 (and 2.3.0) were eventually released, so we can look at this again.

@jrha jrha added this to the 25.next milestone Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants