Skip to content
lein-rpm
Clojure
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/leiningen
test/plugin/test
.gitignore
README.md
example-project.clj
project.clj

README.md

RPM plugin

A Leiningen plugin to create an RPM from build output. At the moment it only works with Leiningen 2.

Usage

Add lein-rpm "0.0.6" to the plugins in project.clj and then add an :rpm key to the project. This example shows most of the options that are available.

(defproject example "0.1-SNAPSHOT"
  :description "Create an RPM"
  :plugins [[lein-rpm "0.0.5"]]
  :rpm {:name "Name"
        :summary "RPM summary"
        :copyright "Andrew H Jones"
        :workarea "target"
        :requires ["trash-truck > 1.0"]
		:preinstall {:scriptfile "script.sh"}
        :mappings [{:directory "/usr/local/bin/landfill"
                    :filemode "440"
                    :username "dumper"
                    :groupname "dumpgroup"
                    ;; There are also postinstall, preremove and postremove
                    :sources {:source [{:location "target/classes"}
                                       {:location "src"}]
                              :softlinkSource [{:location "/usr/local/bin/new.sh"
                                                :destination "old.sh"}]}}]})

To create the RPM run lein rpm.

License

Copyright (C) 2012-2016 Andrew Jones

Distributed under the Eclipse Public License, the same as Clojure.

You can’t perform that action at this time.