Skip to content

Instantly share code, notes, and snippets.

@pulecp
Created June 16, 2016 08:41
Show Gist options
  • Select an option

  • Save pulecp/d8c9faedbe584076afcf8f02c42b59d3 to your computer and use it in GitHub Desktop.

Select an option

Save pulecp/d8c9faedbe584076afcf8f02c42b59d3 to your computer and use it in GitHub Desktop.
The script to create rpm package from Drupal coder
#!/bin/bash
rm -f *.rpm
rm -rf coder
git clone https://git.drupal.org/project/coder.git
cd coder
PACKAGE_VERSION='2.0'
PACKAGE_RELEASE='2'
fpm -s dir -t rpm \
--name "drupal-coder" \
--version "${PACKAGE_VERSION}" \
--iteration "${PACKAGE_RELEASE}" \
--architecture x86_64 \
--prefix '/usr/share/drupal-coder' \
--vendor 'Inuits' \
--description 'Drupal Coder' \
--maintainer 'Jenkins' \
--epoch '1' \
--exclude '.git' \
.
mv *.rpm ../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment