Skip to content

Instantly share code, notes, and snippets.

@pulecp
Last active May 29, 2018 06:48
Show Gist options
  • Save pulecp/f6ff882bdbb7d0ea003eef751a6f79b4 to your computer and use it in GitHub Desktop.
Save pulecp/f6ff882bdbb7d0ea003eef751a6f79b4 to your computer and use it in GitHub Desktop.
Build RPM package of Spring RabbitMQ Support
#!/bin/bash
VERSION=2.0.3
URL="http://central.maven.org/maven2/org/springframework/amqp/spring-rabbit/${VERSION}.RELEASE/"
SRC_FILE="spring-rabbit-${VERSION}.RELEASE.jar"
[ -f $SRC_FILE ] || wget "${URL}${SRC_FILE}"
rm -f *.rpm
chmod 7755 $SRC_FILE
fpm -s dir \
-t rpm \
-n storm-spring-rabbitmq \
--iteration 1 \
--version $VERSION \
--no-rpm-autoreqprov \
--architecture 'x86_64' \
--description 'Spring RabbitMQ Support' \
--maintainer 'Pavel Pulec <kayn@inuits.eu>' \
--vendor 'Inuits' \
--rpm-use-file-permissions \
--rpm-user storm \
--rpm-group storm \
$SRC_FILE=/opt/storm/lib/$SRC_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment