Arthur Ulfeldt
Arthur Ulfeldt

Reputation: 91617

building Debian and Redhat packages with leiningen

Moving my project from Ant to Leiningen went so smoothly that I am looking at new things to include in the build process. one of which would be to automatically create a .deb and .rpm file in the build. What is the easiest way to do this?

Upvotes: 2

Views: 632

Answers (3)

Andrew
Andrew

Reputation: 7516

I've come across the same problem. I followed rosejn's suggestion and created a Leiningen plugin that uses the RPM Maven Plugin to create an RPM. I've put it here.

Upvotes: 0

rosejn
rosejn

Reputation: 859

It would be really great to have a lein plugin to help with this. Since it already uses maven under the hood, you could look into using the maven-unix-plugin (http://mojo.codehaus.org/unix/) which can build .deb and .rpm files. Otherwise if that looks annoying I don't think either package format is especially complex. You could probably do it by hand in Clojure, in which case maybe looking at some example Ruby Rake tasks would help. (http://rubyforge.org/projects/pallet/)

Upvotes: 1

Rayne
Rayne

Reputation: 32675

I think your best bet would be to write your own Leiningen plugin for this (which I hear is pretty easy), or use the lein-scripts plugin and write a script/task for it.

Upvotes: 2

Related Questions