quattor / release

Release Management Tools
https://www.quattor.org/release
Apache License 2.0
3 stars 12 forks source link

make src rpms #117

Open stdweird opened 8 years ago

stdweird commented 8 years ago

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

#!/bin/bash
# First arg of rpmbuild in mvn package is -bb
shift
/usr/bin/rpmbuild -ba "$@"
exit $?
export PATH=$PWD:$PATH
chmod +x rpmbuild
stdweird commented 8 years ago

@jrha this produces both src and regular rpms

jrha commented 8 years ago

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

stdweird commented 8 years ago

how do you produce them?

jrha commented 8 years ago

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

stdweird commented 8 years ago

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

stdweird commented 8 years ago

@jrha this is what i meant

jrha commented 8 years ago

Cool, thanks.

jrha commented 7 years ago

@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 commented 7 years ago

the patch just got merged at https://github.com/mojohaus/rpm-maven-plugin/pull/66

ned21 commented 6 years ago

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

jrha commented 1 week ago

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