Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37040678
en ru br
ALT Linux repos
S:0.0.0.777.gc495861-alt1

Group :: Engineering
RPM: icestorm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Name: icestorm
Version: 0.0.0.777.gc495861
Release: alt1

Summary: Tools for working with Lattice iCE40 bitstream files
License: ISC
Group: Engineering
Url: http://www.clifford.at/icestorm/

Source: %name-%version.tar

# Automatically added by buildreq on Tue Jun 19 2018

# optimized out: glibc-kernheaders-generic glibc-kernheaders-x86 libstdc++-devel libusb-devel pkg-config python-base python3-base
BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++ libftdi1-devel python3
Requires: %name = %version-%release

%description
Project IceStorm aims at reverse engineering and documenting the bitstream
format of Lattice iCE40 FPGAs and providing simple tools for analyzing and
creating bitstream files. The IceStorm Tools are a couple of small programs for
working with iCE40 bitstream files and our ASCII representation of it. The
complete Open Source iCE40 Flow consists of the IceStorm Tools, Arachne-PNR, and
Yosys.

%package -n %name-chipdb
Summary: Tools for working with Lattice iCE40 bitstream files - chipdb files
Group: Engineering
BuildArch: noarch

%description -n %name-chipdb
Project IceStorm aims at reverse engineering and documenting the bitstream
format of Lattice iCE40 FPGAs and providing simple tools for analyzing and
creating bitstream files.
This package contains chipdb files.

%prep
%setup

%build
%add_optflags -Wextra
%make_build CC=gcc CXX=g++ CFLAGS="%optflags $(pkg-config --cflags libftdi1)" \
   CXXFLAGS='%optflags' LDLIBS="$(pkg-config --libs libftdi1) -lm"

%install
%makeinstall_std PREFIX=%prefix
mkdir -p %buildroot%python3_sitelibdir
mv %buildroot%_bindir/iceboxdb.py %buildroot%python3_sitelibdir/
ln -rs %buildroot%python3_sitelibdir/iceboxdb.py %buildroot%_bindir/
chmod a+x %buildroot%_bindir/icebox.py

%files
%_bindir/ice*
%python3_sitelibdir/iceboxdb.py*
%python3_sitelibdir/__pycache__/iceboxdb*

%files -n %name-chipdb
%_datadir/icebox

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin