100 lines
2.9 KiB
RPMSpec
100 lines
2.9 KiB
RPMSpec
Name: openocd
|
|
Version: 0.7.0
|
|
Release: 2mamba
|
|
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>
|
|
URL: http://openocd.sourceforge.net/
|
|
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
|
|
BuildRequires: libftdi-devel
|
|
BuildRequires: libpcre-devel
|
|
BuildRequires: libselinux-devel
|
|
BuildRequires: libsepol-devel
|
|
BuildRequires: libusb-compat-devel
|
|
BuildRequires: libusbx-devel
|
|
BuildRequires: udev-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires(post): %{__install_info}
|
|
Requires(preun): %{__install_info}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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 \
|
|
--enable-ft2232_libftdi \
|
|
--enable-libusb0 \
|
|
--enable-stlink \
|
|
--enable-rlink
|
|
|
|
%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
|
|
|
|
install -d -m0755 %{buildroot}/lib/udev/rules.d
|
|
mv %{buildroot}%{_datadir}/openocd/contrib/openocd.udev %{buildroot}/lib/udev/rules.d/90-openocd.rules
|
|
|
|
%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
|
|
%{_libdir}/libopenocd.a
|
|
%{_libdir}/libopenocd.la
|
|
/lib/udev/rules.d/90-openocd.rules
|
|
%{_infodir}/openocd.info-1.gz
|
|
%{_infodir}/openocd.info-2.gz
|
|
%{_infodir}/openocd.info.gz
|
|
%{_mandir}/man1/openocd.1.gz
|
|
%dir %{_datadir}/openocd
|
|
%dir %{_datadir}/openocd/contrib
|
|
%{_datadir}/openocd/contrib/*
|
|
%dir %{_datadir}/openocd/scripts
|
|
%{_datadir}/openocd/scripts/*
|
|
%doc AUTHORS COPYING
|
|
|
|
%changelog
|
|
* 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
|