diff options
| author | Sudar <sudar@sudarmuthu.com> | 2014-01-01 05:19:27 -0800 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2014-01-01 05:19:27 -0800 |
| commit | d3af7ca19dd09148d4f8fd42dd328f49eae08ec8 (patch) | |
| tree | d6d37259ed793f00252df51d0b29d77ea0b303d3 /packaging/fedora/README.md | |
| parent | 6e2708a446866a6a4d1590da86827afa7340c70a (diff) | |
| parent | 4e2b945dd1991f37d3f0b2ceb3bd54c020658bc1 (diff) | |
Merge pull request #145 from sej7278/master
Added package directory with RPM SPECfile (and instructions!)
Diffstat (limited to 'packaging/fedora/README.md')
| -rw-r--r-- | packaging/fedora/README.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packaging/fedora/README.md b/packaging/fedora/README.md new file mode 100644 index 0000000..dbd6334 --- /dev/null +++ b/packaging/fedora/README.md @@ -0,0 +1,23 @@ +# How to compile an RPM + +First install the dependencies as root: + + yum install arduino-core perl-Device-SerialPort help2man rpm-build + +From the top-level Arduino-Makefile directory you've checked out of github, run the following (as unprivileged user) 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 those directories: + + cp ../arduino-mk-1.1.0.tar.gz ~/rpmbuild/SOURCES/ + cp packaging/fedora/arduino-mk.spec ~/rpmbuild/SPECS/ + +Then compile. This will create a binary and source RPM: + + cd ~/rpmbuild/SPECS/ + rpmbuild -ba arduino-mk.spec |
