File xc3sprog.spec of Package xc3sprog
#
# spec file for package xc3sprog
#
# Copyright (c) 2019 Frank Kunz
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: xc3sprog
Version: 1.1.1.003
Release: 0
Summary: Suite of utilities for programming Xilinx FPGAs, CPLDs, and EEPROMs
License: GPL-2.0
Group: Hardware/Other
Url: https://github.com/matrix-io/xc3sprog
Source0: https://github.com/matrix-io/xc3sprog/archive/refs/tags/v{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: 0001-adds-an-option-to-build-without-wiringpi.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libftdi0-devel
BuildRequires: libusb-devel
%description
xc3sprog is a suite of utilities for programming Xilinx FPGAs, CPLDs, and EEPROMs with the Xilinx Parallel Cable and other JTAG adapters under linux. Originally based on code written by Andrew Rogers (http://www.rogerstech.co.uk/).
%prep
%autosetup -p1
%build
%cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_STANDARD=14 \
-DUSE_WIRINGPI=OFF \
-Wno-dev
%cmake_build
%install
%cmake_install
install -m 644 -D -t %{buildroot}/%{_mandir}/man1 %{name}.1
gzip %{buildroot}/%{_mandir}/man1/%{name}.1
%files -n %{name}
%license COPYING
%doc README README.md Readme.JTAG_Timing Readme.DLC10 PERFORMANCE ToDo byte-order.txt cables/*.pdf
%{_bindir}/%{name}
%{_bindir}/bitparse
%{_bindir}/detectchain
%{_bindir}/jedecparse
%{_bindir}/readdna
%{_bindir}/srecparse
%{_bindir}/xc2c_warp
%{_mandir}/man1/%{name}.1.gz
%changelog