|
|
0998145 |
%global commit0 5c4d4db08d39673b98ce953f1ab1d1368eeb2f44
|
|
|
0998145 |
|
|
|
0998145 |
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
0998145 |
|
|
|
0998145 |
%global __python %{__python3}
|
|
|
0998145 |
|
|
|
0998145 |
Name: icestorm
|
|
|
0998145 |
Version: 0
|
|
|
6932655 |
Release: 0.7.20170914git%{shortcommit0}%{?dist}
|
|
|
0998145 |
Summary: Lattice iCE40 FPGA bitstream creation/analysis/programming tools
|
|
|
0998145 |
License: ISC
|
|
|
0998145 |
URL: http://www.clifford.at/%{name}/
|
|
|
0998145 |
Source0: https://github.com/cliffordwolf/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
|
|
|
0998145 |
|
|
|
0998145 |
# Fedora-specific patch for datadir
|
|
|
0998145 |
Patch1: %{name}-datadir.patch
|
|
|
0998145 |
|
|
|
365d799 |
BuildRequires: gcc-c++
|
|
|
0998145 |
BuildRequires: python%{python3_pkgversion} libftdi-devel
|
|
|
0998145 |
|
|
|
0998145 |
%description
|
|
|
0998145 |
Project IceStorm aims at documenting the bitstream format of Lattice iCE40
|
|
|
0998145 |
FPGAs and providing simple tools for analyzing and creating bitstream files.
|
|
|
0998145 |
|
|
|
0998145 |
%prep
|
|
|
0998145 |
%setup -q -n %{name}-%{commit0}
|
|
|
0998145 |
%patch1 -p1 -b .datadir
|
|
|
0998145 |
# fix shebang lines in Python scripts
|
|
|
0998145 |
find . -name \*.py -exec sed -i 's|/usr/bin/env python3|/usr/bin/python3|' {} \;
|
|
|
0998145 |
# get rid of .gitignore files in examples
|
|
|
0998145 |
find . -name \.gitignore -delete
|
|
|
0998145 |
|
|
|
0998145 |
%build
|
|
|
72cb812 |
%global moreflags -I/usr/include/libftdi1
|
|
|
0998145 |
make %{?_smp_mflags} \
|
|
|
0998145 |
CFLAGS="%{optflags} %{moreflags}" \
|
|
|
0998145 |
CXXFLAGS="%{optflags} %{moreflags}" \
|
|
|
72cb812 |
PREFIX="%{_prefix}" \
|
|
|
72cb812 |
CHIPDB_SUBDIR="%{name}" \
|
|
|
0998145 |
LDFLAGS="$RPM_LD_FLAGS"
|
|
|
0998145 |
|
|
|
0998145 |
%install
|
|
|
0998145 |
%make_install PREFIX="%{_prefix}"
|
|
|
0998145 |
chmod +x %{buildroot}%{_bindir}/icebox.py
|
|
|
0998145 |
mv %{buildroot}%{_datarootdir}/icebox %{buildroot}%{_datarootdir}/%{name}
|
|
|
0998145 |
mv %{buildroot}%{_bindir}/iceboxdb.py %{buildroot}%{_datarootdir}/%{name}
|
|
|
0998145 |
|
|
|
0998145 |
# We could do a minimal check section by running make in the example
|
|
|
0998145 |
# directories, but that depends on arachne-pnr, which depends on this
|
|
|
0998145 |
# package, so it would create a circular dependency.
|
|
|
0998145 |
|
|
|
0998145 |
%files
|
|
|
0998145 |
%license README
|
|
|
0998145 |
%doc examples
|
|
|
0998145 |
%{_bindir}/*
|
|
|
0998145 |
%{_datarootdir}/%{name}
|
|
|
0998145 |
|
|
|
0998145 |
%changelog
|
|
|
6932655 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.7.20170914git5c4d4db
|
|
|
6932655 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
6932655 |
|
|
|
4cec0c1 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.6.20170914git5c4d4db
|
|
|
4cec0c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
4cec0c1 |
|
|
|
72cb812 |
* Thu Feb 15 2018 Lubomir Rintel <lkundrak@v3.sk> 0-0.5.20170914git5c4d4db
|
|
|
72cb812 |
- Fix the chipdb path for icetime
|
|
|
72cb812 |
|
|
|
b4e839a |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4.20170914git5c4d4db
|
|
|
b4e839a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b4e839a |
|
|
|
0998145 |
* Thu Sep 14 2017 Eric Smith <brouhaha@fedoraproject.org> 0-0.3.20170914git5c4d4db
|
|
|
0998145 |
- Updated per review comments.
|
|
|
0998145 |
- Updated to latest upstream.
|
|
|
0998145 |
|
|
|
0998145 |
* Sat Dec 10 2016 Eric Smith <brouhaha@fedoraproject.org> 0-0.2.20161101git01b9822
|
|
|
0998145 |
- Updated per review comments.
|
|
|
0998145 |
- Updated to latest upstream.
|
|
|
0998145 |
|
|
|
0998145 |
* Mon Sep 12 2016 Eric Smith <brouhaha@fedoraproject.org> 0-0.1.20160904git0b4b038
|
|
|
0998145 |
- Initial version.
|