Last active
May 29, 2018 06:48
-
-
Save pulecp/f6ff882bdbb7d0ea003eef751a6f79b4 to your computer and use it in GitHub Desktop.
Build RPM package of Spring RabbitMQ Support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 <[email protected]>' \ | |
--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