SHA256
1
0
forked from pool/openocd
openocd/openocd.spec
Andreas Jaeger d66fb7ab9c Accepting request 221774 from home:matwey:atsamd20_xpro
Hi, I fixed the _service file. Please, see 215239 for full description of the package.

OBS-URL: https://build.opensuse.org/request/show/221774
OBS-URL: https://build.opensuse.org/package/show/hardware/openocd?expand=0&rev=1
2014-03-13 15:23:47 +00:00

119 lines
3.1 KiB
RPMSpec

Name: openocd
Version: 0.7.99+git20140206
Release: 0
License: GPL-2.0
Summary: Debugging, in-system programming and boundary-scan testing for embedded devices
Url: http://openocd.sourceforge.net/
Group: Development/Tools/Debuggers
Source0: http://downloads.sourceforge.net/project/openocd/openocd/%{version}/%{name}-%{version}.tar.bz2
BuildRequires: automake
BuildRequires: autoconf >= 2.64
BuildRequires: libtool
BuildRequires: makeinfo
BuildRequires: jimtcl-devel
BuildRequires: pkg-config >= 0.23
BuildRequires: libftdi1-devel
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: libhidapi-devel
BuildRequires: libudev-devel
Requires(post): udev
Requires(postun): udev
Requires: %{name}-data == %{version}-%{release}
%description
The Open On-Chip Debugger (OpenOCD) provides debugging, in-system programming
and boundary-scan testing for embedded devices. Various different boards,
targets, and interfaces are supported to ease development time.
Install OpenOCD if you are looking for an open source solution for hardware
debugging.
%package data
Summary: Hardware Scripts for OpenOCD
Group: Development/Tools/Debuggers
BuildArch: noarch
Requires: %{name} == %{version}-%{release}
%description data
The Open On-Chip Debugger (OpenOCD) provides debugging, in-system programming
and boundary-scan testing for embedded devices.
This package provides hardware description files and documentation.
%prep
%setup -q
%build
./bootstrap nosubmodule
%configure \
--disable-werror \
--enable-static \
--disable-shared \
--disable-internal-jimtcl \
--disable-doxygen-html \
--enable-sysfsgpio \
--enable-ioutil \
--enable-ftdi \
--enable-gw16012 \
--enable-buspirate \
--enable-ti-icdi \
--enable-amtjtagaccel \
--enable-arm-jtag-ew \
--enable-oocd_trace \
--enable-osbdm \
--enable-opendous \
--enable-aice \
--enable-remote-bitbang \
--enable-jlink \
--enable-rlink \
--enable-stlink \
--enable-ulink \
--enable-cmsis-dap \
--enable-vsllink
# --enable-zy1000 \
# --enable-ft2232_libftdi \
# --enable-openjtag_ftdi \
# --enable-usb_blaster_libftdi \
# --enable-presto_libftdi \
# --enable-bcm2835gpio \ // raspberry
# --enable-ep39xx \ // arm only
# --enable-at91rm9200 \ // arm only
# --enable-parport \
# --enable-parport_ppdev \
make %{?_smp_mflags} V=1
%install
%make_install
rm -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_libdir}/libopenocd.*
mkdir -p %buildroot/etc/udev/rules.d
mv %{buildroot}%{_datadir}/%{name}/contrib/openocd.udev %buildroot/etc/udev/rules.d/99-openocd.rules
%post
udevadm control --reload
%postun
udevadm control --reload
%post data
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%preun data
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%config /etc/udev/rules.d/99-openocd.rules
%files data
%defattr(-,root,root,-)
%{_datadir}/%{name}
%doc %{_mandir}/man1/*
%doc %{_infodir}/%{name}.info*.gz
%changelog