2024-01-05 20:32:10 +01:00
|
|
|
### AUTOUPDATE-OFF: 8
|
2024-01-05 20:32:10 +01:00
|
|
|
%define longversion %(echo 0%version | tr -d .)
|
|
|
|
|
|
|
|
Name: arduino
|
2024-01-05 20:32:10 +01:00
|
|
|
Version: 1.8.15
|
2024-01-05 20:32:10 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 20:32:10 +01:00
|
|
|
Summary: The open-source Arduino environment
|
|
|
|
Group: Graphical Desktop/Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 20:32:10 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.arduino.cc/en/software/
|
2024-01-05 20:32:10 +01:00
|
|
|
Source: https://github.com/arduino/Arduino.git/%{version}/Arduino-%{version}.tar.bz2
|
2024-01-05 20:32:10 +01:00
|
|
|
Source1: arduino-1.0.1-icons.tar.xz
|
|
|
|
Patch0: arduino-1.0.1-script.patch
|
|
|
|
# http://github.com/arduino/Arduino/pull/5
|
|
|
|
Patch1: arduino-1.0-use_system_rxtx.patch
|
|
|
|
# http://github.com/arduino/Arduino/pull/6:
|
|
|
|
Patch2: arduino-1.0-etc.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 20:32:10 +01:00
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-05 20:32:10 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: apache-ant
|
2024-01-05 20:32:10 +01:00
|
|
|
BuildRequires: javapackages
|
|
|
|
Requires: java-openjdk8-runtime
|
2024-01-05 20:32:10 +01:00
|
|
|
Requires: cross-avr-gcc
|
|
|
|
Requires: avr-libc
|
|
|
|
Requires: avrdude
|
|
|
|
Requires: java-rxtx
|
2024-01-05 20:32:10 +01:00
|
|
|
Obsoletes: arduino.noarch < 1.8.15
|
2024-01-05 20:32:10 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The open-source Arduino environment makes it easy to write code and upload it to the Arduino i/o board.
|
|
|
|
The environment is written in Java and based on Processing, avr-gcc, and other open source software.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 20:32:10 +01:00
|
|
|
%setup -q -n Arduino-%{version}
|
|
|
|
#%patch0 -p1
|
|
|
|
#%patch1 -p1
|
2024-01-05 20:32:10 +01:00
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
(
|
|
|
|
mkdir -p build/linux/icons
|
|
|
|
cd build/linux/icons
|
|
|
|
tar xf %{SOURCE1}
|
|
|
|
)
|
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
#find -name '*.class' -exec rm -f '{}' \;
|
|
|
|
#find -name '*.jar' -exec rm -f '{}' \;
|
|
|
|
#build-jar-repository -p -s app/lib/ ecj jna RXTXcomm
|
2024-01-05 20:32:10 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 20:32:10 +01:00
|
|
|
export JAVA_HOME=%{_jvmdir}/java-8
|
2024-01-05 20:32:10 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
export platform=linux64
|
|
|
|
%endif
|
|
|
|
%ifarch %{ix86}
|
|
|
|
export platform=linux32
|
|
|
|
%endif
|
|
|
|
%ifarch arm
|
|
|
|
export platform=linuxarm
|
|
|
|
export LD_PRELOAD=/usr/lib/libatomic.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
cd build
|
|
|
|
|
|
|
|
ant -Djava.net.preferIPv4Stack=true -Dplatform=${platform} dist << __END
|
|
|
|
|
|
|
|
__END
|
2024-01-05 20:32:10 +01:00
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
tar -xf linux/arduino-%{version}-${platform}.tar.xz
|
2024-01-05 20:32:10 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 20:32:10 +01:00
|
|
|
cd build/arduino-%{version}
|
2024-01-05 20:32:10 +01:00
|
|
|
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
cp -a arduino %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_datadir}/arduino
|
2024-01-05 20:32:10 +01:00
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
cp -a hardware lib libraries examples %{buildroot}%{_datadir}/arduino/
|
2024-01-05 20:32:10 +01:00
|
|
|
#rm %{buildroot}%{_datadir}/arduino/lib/*.jar
|
|
|
|
#rm -r %{buildroot}%{_datadir}/arduino/hardware/tools
|
2024-01-05 20:32:10 +01:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/arduino-%{version}
|
|
|
|
cp -a reference %{buildroot}%{_defaultdocdir}/arduino-%{version}/
|
|
|
|
ln -s %{_defaultdocdir}/arduino-%{version}/reference %{buildroot}%{_datadir}/arduino/reference
|
|
|
|
|
|
|
|
# Requested upstream in http://github.com/arduino/Arduino/pull/4:
|
|
|
|
find %{buildroot} -type f -iname '*.jpg' -or -iname '*.java' -or -iname '*.pde' -or -iname '*.h' -or -iname '*.cpp' -or -iname '*.c' -or -iname '*.txt' -or -iname 'makefile' -or -iname 'key*.txt' -or -iname 'pref*.txt' | xargs chmod -x;
|
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
#cp -a lib/core.jar lib/pde.jar %{buildroot}%{_datadir}/%{name}/
|
2024-01-05 20:32:10 +01:00
|
|
|
|
|
|
|
install -D -m 0644 ../linux/arduino.1 \
|
|
|
|
%{buildroot}%{_mandir}/man1/arduino.1
|
|
|
|
|
|
|
|
install -D -m 0644 ../linux/arduino.desktop \
|
|
|
|
%{buildroot}%{_datadir}/applications/arduino.desktop
|
|
|
|
|
|
|
|
for dir in ../linux/icons/*; do
|
|
|
|
size=`basename $dir`
|
|
|
|
install -D -m 0644 $dir/apps/arduino.png \
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/$size/apps/arduino.png
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_datadir}/applications/*
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
|
|
%{_mandir}/man1/arduino.*
|
|
|
|
%doc %{_defaultdocdir}/arduino-%{version}/reference
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 20:32:10 +01:00
|
|
|
* Wed May 19 2021 Automatic Build System <autodist@mambasoft.it> 1.8.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
* Sat Jul 11 2020 Automatic Build System <autodist@mambasoft.it> 1.8.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
* Thu Feb 13 2020 Automatic Build System <autodist@mambasoft.it> 1.8.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
* Sat Dec 07 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.9-2mamba
|
|
|
|
- obsolete arduino.noarch
|
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
* Sun Nov 24 2019 Automatic Build System <autodist@mambasoft.it> 1.8.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Dec 16 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.5-1mamba
|
|
|
|
- update to 1.8.5
|
|
|
|
|
2024-01-05 20:32:10 +01:00
|
|
|
* Wed May 23 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.0.1-1mamba
|
|
|
|
- update to 1.0.1
|
|
|
|
|
|
|
|
* Fri Feb 03 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.0-1mamba
|
|
|
|
- package created by autospec
|