2024-01-06 08:15:27 +01:00
|
|
|
Name: openocd
|
2024-01-06 08:15:28 +01:00
|
|
|
Version: 0.12.0
|
2024-01-06 08:15:27 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 08:15:27 +01:00
|
|
|
Summary: Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 08:15:28 +01:00
|
|
|
URL: https://openocd.sourceforge.io/
|
2024-01-06 08:15:27 +01:00
|
|
|
Source: http://downloads.sourceforge.net/project/openocd/openocd/%{version}/openocd-%{version}.tar.bz2
|
|
|
|
Source1: openocd-board-guruplug.cfg
|
|
|
|
Source2: openocd-interface-guruplug.cfg
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 08:15:28 +01:00
|
|
|
BuildRequires: libftdi1-devel
|
|
|
|
BuildRequires: libhidapi-devel
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: libusb-devel
|
2024-01-06 08:15:27 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires(post): %{__install_info}
|
|
|
|
Requires(preun): %{__install_info}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The "Open On-Chip Debugger" provides JTAG/SWD access from GDB (or directly with TCL scripts) to processors with ARM and MIPS based cores.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2024-01-06 08:15:27 +01:00
|
|
|
--enable-ftdi \
|
2024-01-06 08:15:27 +01:00
|
|
|
--enable-libusb0 \
|
|
|
|
--enable-stlink \
|
|
|
|
--enable-rlink
|
|
|
|
|
2024-01-06 08:15:27 +01:00
|
|
|
# --enable-ft2232_libftdi \
|
|
|
|
|
2024-01-06 08:15:27 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/openocd/scripts/board/guruplug.cfg
|
|
|
|
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/openocd/scripts/interface/guruplug.cfg
|
|
|
|
|
2024-01-06 08:15:27 +01:00
|
|
|
#install -d -m0755 %{buildroot}/lib/udev/rules.d
|
|
|
|
#mv %{buildroot}%{_datadir}/openocd/contrib/openocd.udev %{buildroot}/lib/udev/rules.d/90-openocd.rules
|
2024-01-06 08:15:27 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info %{name}.info
|
|
|
|
%install_info %{name}.info-1
|
|
|
|
%install_info %{name}.info-2
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%uninstall_info %{name}.info
|
|
|
|
%uninstall_info %{name}.info-1
|
|
|
|
%uninstall_info %{name}.info-2
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/openocd
|
2024-01-06 08:15:27 +01:00
|
|
|
#%{_libdir}/libopenocd.a
|
|
|
|
#%{_libdir}/libopenocd.la
|
2024-01-06 08:15:27 +01:00
|
|
|
%dir %{_datadir}/openocd
|
|
|
|
%dir %{_datadir}/openocd/contrib
|
|
|
|
%{_datadir}/openocd/contrib/*
|
|
|
|
%dir %{_datadir}/openocd/scripts
|
|
|
|
%{_datadir}/openocd/scripts/*
|
2024-01-06 08:15:27 +01:00
|
|
|
%dir %{_datadir}/openocd/OpenULINK
|
|
|
|
%{_datadir}/openocd/OpenULINK/ulink_firmware.hex
|
|
|
|
#/lib/udev/rules.d/90-openocd.rules
|
|
|
|
%{_infodir}/openocd.info-1*
|
|
|
|
%{_infodir}/openocd.info-2*
|
|
|
|
%{_infodir}/openocd.info*
|
|
|
|
%{_mandir}/man1/openocd.1*
|
2024-01-06 08:15:27 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:15:28 +01:00
|
|
|
* Sun Jan 15 2023 Automatic Build System <autodist@mambasoft.it> 0.12.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:15:27 +01:00
|
|
|
* Mon Jan 23 2017 Automatic Build System <autodist@mambasoft.it> 0.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:15:27 +01:00
|
|
|
* Tue May 19 2015 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 08:15:27 +01:00
|
|
|
* Tue Jul 22 2014 Automatic Build System <autodist@mambasoft.it> 0.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:15:27 +01:00
|
|
|
* Fri Aug 16 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-2mamba
|
|
|
|
- configured with --enable-stlink and --enable-rlink
|
|
|
|
|
|
|
|
* Sun May 05 2013 Automatic Build System <autodist@mambasoft.it> 0.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Dec 19 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.1-2mamba
|
|
|
|
- provide guruplug server scripts from http://www.plugcomputer.org/405/us/guru-plug/docs/Guruplug-installer.tar.gz
|
|
|
|
- install udev rules file in proper directory
|
|
|
|
|
|
|
|
* Wed Dec 19 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.1-1mamba
|
|
|
|
- package created by silvan using the webbuild interface
|