%global commit db7e850ee85aa395aaa98ef4cc736378303f635a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: nextpnr
Version: 0
Release: 0.4.20190415git%{shortcommit}%{?dist}
Summary: FPGA place and route tool
License: ISC and BSD and MIT and (MIT or Public Domain)
URL: https://github.com/YosysHQ/nextpnr
Source0: https://github.com/YosysHQ/nextpnr/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: libglvnd-devel
BuildRequires: boost-filesystem
BuildRequires: boost-thread
BuildRequires: boost-program-options
BuildRequires: boost-iostreams
BuildRequires: qt5-qtconfiguration-devel
BuildRequires: cmake(QtConfiguration)
BuildRequires: boost-python3-devel
BuildRequires: icestorm >= 0-0.7.20190311
BuildRequires: trellis-devel
BuildRequires: eigen3-devel
# License: ISC
Provides: bundled(qtimgui)
# Qt5 enabled fork of QtPropertyBrowser
# License: BSD
Provides: bundled(QtPropertyBrowser)
# License: MIT
Provides: bundled(python-console)
# License: (MIT or Public Domain)
Provides: bundled(imgui) = 1.66-wip
%description
nextpnr aims to be a vendor neutral, timing driven, FOSS FPGA place and
route tool.
%prep
%autosetup -n %{name}-%{commit}
cp 3rdparty/imgui/LICENSE.txt LICENSE-imgui.txt
cp 3rdparty/qtimgui/LICENSE LICENSE-qtimgui.txt
cp 3rdparty/python-console/LICENSE LICENSE-python-console.txt
%build
%cmake . -DARCH=all \
-DICEBOX_ROOT=%{_datadir}/icestorm \
-DTRELLIS_ROOT=%{_datadir}/trellis
%make_build
# prepare examples doc. directory:
mkdir -p examples/ice40 examples/ecp5
cp -r ice40/examples/* examples/ice40
cp ecp5/synth/* examples/ecp5
%install
%make_install
%files
%{_bindir}/nextpnr-generic
%{_bindir}/nextpnr-ice40
%{_bindir}/nextpnr-ecp5
%doc README.md docs examples
%license COPYING
%license LICENSE-imgui.txt
%license LICENSE-qtimgui.txt
%license LICENSE-python-console.txt
%changelog
* Mon Apr 15 2019 Gabriel Somlo <gsomlo@gmail.com> - 0-0.4.20190415gitdb7e850
- Update to latest upstream dev snapshot
* Mon Apr 01 2019 Gabriel Somlo <gsomlo@gmail.com> - 0-0.3.20190401gitd27ec2c
- Update to latest dev snapshot containing fast HeAP-based analytical placer
- Package included ice40, ecp5 example projects as documentation
* Thu Mar 21 2019 Lubomir Rintel <lkundrak@v3.sk> - 0-0.2.20190319gitcadbf42
- Enable ecp5
* Tue Mar 19 2019 Lubomir Rintel <lkundrak@v3.sk> - 0-0.1.20190319gitcadbf42
- Initial packaging