1893199dad
so that installations using only the arduino-core packages that don't have the $(ARDUINO_DIR)/hardware/tools/avr directory can still use the avr-g++ tools found in the $PATH (/usr/bin) Previously BUNDLED_AVR_TOOLS_DIR was set to an empty string as the directory doesn't exist, which meant that "ifdef BUNDLED_AVR_TOOLS_DIR..." was set rather than skipping to "else SYSTEMPATH_AVR_TOOLS_DIR...." No user would set BUNDLED_AVR_TOOLS_DIR so the assignment operator := should be used not ?= Updated the version info/changes in various locations.
23 lines
868 B
Markdown
23 lines
868 B
Markdown
# 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 HEAD --prefix=arduino-mk-1.3.1/ -o ../arduino-mk-1.3.1.tar.gz
|
|
|
|
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.3.1.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
|