diff options
| author | Simon John <git@the-jedi.co.uk> | 2013-12-30 16:07:36 +0000 |
|---|---|---|
| committer | Simon John <git@the-jedi.co.uk> | 2013-12-30 16:07:36 +0000 |
| commit | 9ad2c858ce2980461d23e65b5ce702fe4e1b3edc (patch) | |
| tree | f4404ec3313de16b7c3e2f1882f55b133df88fdc /package/README.md | |
| parent | 6e2708a446866a6a4d1590da86827afa7340c70a (diff) | |
Added package directory with RPM SPECfile (and instructions!)
Linked to issue #144
Tested on Fedora 18, works fine except the ard-reset-arduino manpage displays
[1m and [0m around some headings, might be a bug in help2man 1.41.2 as it
works fine on Debian with 1.43.3, will try CentOS/OEL 6.5 next.
I didn't update the changelog as I didn't know what the new development
version is going to be.
Diffstat (limited to 'package/README.md')
| -rw-r--r-- | package/README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/README.md b/package/README.md new file mode 100644 index 0000000..1798444 --- /dev/null +++ b/package/README.md @@ -0,0 +1,19 @@ +# How to compile an RPM + +From the top-level Arduino-Makefile directory you've checked out of github, run the following to create a compressed tarball using the naming conventions required by rpmbuild: + + git archive --prefix=arduino-mk-1.1.0/ --format=tar -o ../arduino-mk-1.1.0.tar.gz -v HEAD | gzip + +If you don't already have a rpmbuild setup (e.g. you've not installed the SRPM) you will need to create the directories: + + mkdir -p ~/rpmbuild/{SOURCES,SPECS} + +Then copy the tarball and specfile into place: + + cp ../arduino-mk-1.1.0.tar.gz ~/rpmbuild/SOURCES/ + cp package/arduino-mk.spec ~/rpmbuild/SPECS/ + +Then compile. This will create a binary and source RPM: + + cd ~/rpmbuild/SPECS/ + rpmbuild -ba arduino-mk.spec |
