From 371377e0ac473cd2ef3ea1dec1c65bb7662501a0 Mon Sep 17 00:00:00 2001 From: Simon John Date: Mon, 30 Dec 2013 19:36:42 +0000 Subject: moved to better directory layout --- packaging/fedora/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packaging/fedora/README.md (limited to 'packaging/fedora/README.md') diff --git a/packaging/fedora/README.md b/packaging/fedora/README.md new file mode 100644 index 0000000..1798444 --- /dev/null +++ b/packaging/fedora/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 -- cgit v1.2.3