-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathexample-project.clj
23 lines (22 loc) · 1022 Bytes
/
example-project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;; Example project
(defproject lein-rpm "0.1-SNAPSHOT"
:description "Create an RPM"
:dependencies [[org.codehaus.mojo/rpm-maven-plugin "2.1-alpha-1"]]
:eval-in-leiningen true
:plugins [[lein-pprint "1.1.1"]
[lein-rpm "0.0.3"]]
:rpm {:name "Name"
:summary "RPM summary"
:copyright "Andrew H Jones"
:mappings [{:directory "/usr/local/bin/landfill"
:filemode "440"
:username "dumper"
:groupname "dumpgroup"
:prefix "/usr/local"
:requires ["trash-truck > 1.0"]
:preinstall {:scriptfile "script.sh"}
;; There are also postinstall, preremove and postremove
:sources {:source [{:location "target/classes"}
{:location "src"}]
:softlinkSource [{:location "/usr/local/bin/new.sh"
:destination "old.sh"}]}}]})