File trellis-db.spec of Package trellis-db
#
# spec file for package trellis-db
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global commit 4dda149
%global commit_long 4dda149b9e4f1753ebc8b011ece2fe794be1281a
Name: trellis-db
Version: 1.4
Release: 0
Summary: Lattice ECP5 Bitstream Documentation database
License: CC0-1.0
URL: https://github.com/YosysHQ/prjtrellis-db
Source0: https://github.com/YosysHQ/prjtrellis-db/archive/%{commit}.tar.gz#/prjtrellis-db-%{commit}.tar.gz
BuildRequires: fdupes
BuildArch: noarch
%description
Project Trellis enables a fully open-source flow for ECP5 FPGAs using Yosys for
Verilog synthesis and nextpnr for place and route.
This package provides the bistream documentation database.
%prep
%setup -q -n prjtrellis-db-%{commit_long}
find . -name .gitignore -delete
%build
%install
mkdir -p %{buildroot}/%{_datadir}/trellis/database
cp -ra * %{buildroot}/%{_datadir}/trellis/database
rm %{buildroot}/%{_datadir}/trellis/database/README.md %{buildroot}/%{_datadir}/trellis/database/COPYING
%fdupes %{buildroot}/%{_datadir}
%files
%license COPYING
%doc README.md
%{_datadir}/trellis
%changelog