Gabriel Somlo 1ce91d3
%global commit 85f4452b0a3bd47ccb25be023859542ffef888f7
95561c3
%global shortcommit %(c=%{commit}; echo ${c:0:7})
95561c3
Gabriel Somlo 1ce91d3
%global snapdate 20200129
Gabriel L. Somlo a897923
95561c3
Name:		nextpnr
95561c3
Version:	0
Gabriel Somlo a19a809
Release:	0.10.%{snapdate}git%{shortcommit}%{?dist}
95561c3
Summary:	FPGA place and route tool
95561c3
95561c3
License:	ISC and BSD and MIT and (MIT or Public Domain)
95561c3
URL:		https://github.com/YosysHQ/nextpnr
95561c3
Source0:	https://github.com/YosysHQ/nextpnr/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
95561c3
95561c3
BuildRequires:	cmake
95561c3
BuildRequires:	gcc-c++
95561c3
BuildRequires:	make
95561c3
BuildRequires:	python3-devel
95561c3
BuildRequires:	libglvnd-devel
95561c3
BuildRequires:	boost-filesystem
95561c3
BuildRequires:	boost-thread
95561c3
BuildRequires:	boost-program-options
95561c3
BuildRequires:	boost-iostreams
95561c3
BuildRequires:	qt5-qtconfiguration-devel
95561c3
BuildRequires:	cmake(QtConfiguration)
95561c3
BuildRequires:	boost-python3-devel
95561c3
BuildRequires:	icestorm >= 0-0.7.20190311
95561c3
BuildRequires:	trellis-devel
Gabriel L. Somlo 16b4c9f
BuildRequires:	eigen3-devel
95561c3
95561c3
# License: ISC
95561c3
Provides:	bundled(qtimgui)
95561c3
95561c3
# Qt5 enabled fork of QtPropertyBrowser
95561c3
# License: BSD
95561c3
Provides:	bundled(QtPropertyBrowser)
95561c3
95561c3
# License: MIT
95561c3
Provides:	bundled(python-console)
95561c3
95561c3
# License: (MIT or Public Domain)
95561c3
Provides:	bundled(imgui) = 1.66-wip
95561c3
95561c3
95561c3
%description
95561c3
nextpnr aims to be a vendor neutral, timing driven, FOSS FPGA place and
95561c3
route tool.
95561c3
95561c3
95561c3
%prep
95561c3
%autosetup -n %{name}-%{commit}
11c6337
cp 3rdparty/imgui/LICENSE.txt LICENSE-imgui.txt
11c6337
cp 3rdparty/qtimgui/LICENSE LICENSE-qtimgui.txt
11c6337
cp 3rdparty/python-console/LICENSE LICENSE-python-console.txt
95561c3
95561c3
95561c3
%build
95561c3
%cmake . -DARCH=all \
95561c3
	-DICEBOX_ROOT=%{_datadir}/icestorm \
95561c3
	-DTRELLIS_ROOT=%{_datadir}/trellis
Gabriel L. Somlo 72c3739
%make_build
Gabriel L. Somlo 16b4c9f
# prepare examples doc. directory:
Gabriel Somlo 1ce91d3
mkdir -p examples/ice40
Gabriel L. Somlo 16b4c9f
cp -r ice40/examples/* examples/ice40
95561c3
95561c3
95561c3
%install
95561c3
%make_install
95561c3
95561c3
95561c3
%files
95561c3
%{_bindir}/nextpnr-generic
95561c3
%{_bindir}/nextpnr-ice40
95561c3
%{_bindir}/nextpnr-ecp5
Gabriel L. Somlo 16b4c9f
%doc README.md docs examples
95561c3
%license COPYING
11c6337
%license LICENSE-imgui.txt
11c6337
%license LICENSE-qtimgui.txt
11c6337
%license LICENSE-python-console.txt
95561c3
95561c3
95561c3
%changelog
Gabriel Somlo a19a809
* Tue Feb 11 2020 Gabriel Somlo <gsomlo@gmail.com> - 0-0.10.20200129git85f4452
Gabriel Somlo a19a809
- Rebuilt for trellis dependency.
Gabriel Somlo a19a809
Gabriel Somlo 1ce91d3
* Wed Jan 29 2020 Gabriel Somlo <gsomlo@gmail.com> - 0-0.9.20200129git85f4452
Gabriel Somlo 1ce91d3
- Update to newer snapshot.
Gabriel Somlo 1ce91d3
- Fix Python 3.9 build (BZ #1795549).
Gabriel Somlo 1ce91d3
Gabriel Somlo 1ce91d3
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.8.20190821gitc192ba2
Gabriel Somlo 1ce91d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Gabriel Somlo 1ce91d3
Gabriel L. Somlo a897923
* Wed Aug 21 2019 Gabriel Somlo <gsomlo@gmail.com> - 0-0.7.20190821gitc192ba2
Gabriel L. Somlo a897923
- Update to newer snapshot
Gabriel L. Somlo a897923
- Spec file: add 'snapdate' variable
Gabriel L. Somlo a897923
- Fix python 3.8 build (BZ #1743893)
Gabriel L. Somlo a897923
Gabriel L. Somlo a897923
* Mon Aug 19 2019 Miro HronĨok <mhroncok@redhat.com> - 0-0.6.20190415gitdb7e850
Gabriel L. Somlo a897923
- Rebuilt for Python 3.8
Gabriel L. Somlo a897923
32dc170
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5.20190415gitdb7e850
32dc170
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
32dc170
Gabriel L. Somlo 9dec259
* Mon Apr 15 2019 Gabriel Somlo <gsomlo@gmail.com> - 0-0.4.20190415gitdb7e850
Gabriel L. Somlo a897923
- Update to newer snapshot
Gabriel L. Somlo 9dec259
Gabriel L. Somlo 72c3739
* Mon Apr 01 2019 Gabriel Somlo <gsomlo@gmail.com> - 0-0.3.20190401gitd27ec2c
Gabriel L. Somlo a897923
- Update to snapshot with fast HeAP-based analytical placer
Gabriel L. Somlo 16b4c9f
- Package included ice40, ecp5 example projects as documentation
Gabriel L. Somlo 16b4c9f
95561c3
* Thu Mar 21 2019 Lubomir Rintel <lkundrak@v3.sk> - 0-0.2.20190319gitcadbf42
95561c3
- Enable ecp5
95561c3
95561c3
* Tue Mar 19 2019 Lubomir Rintel <lkundrak@v3.sk> - 0-0.1.20190319gitcadbf42
95561c3
- Initial packaging