%global commit fe9f2c4eb258f9e4e20a60742750698b09c9ed4b %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: ghdlsynth Version: 0 Release: 0.1.20200121git%{shortcommit}%{?dist} Summary: VHDL synthesis License: GPLv3+ URL: https://github.com/tgingold/ghdlsynth-beta Source0: https://github.com/tgingold/ghdlsynth-beta/archive/%{commit}/%{name}-beta-%{shortcommit}.tar.gz BuildRequires: gcc-c++ BuildRequires: ghdl BuildRequires: libffi-devel BuildRequires: readline-devel BuildRequires: tcl-devel BuildRequires: yosys-devel Requires: yosys %description VHDL synthesis based on ghdl and yosys. %prep %autosetup -n %{name}-beta-%{commit} %build make %install mkdir -p %{buildroot}%{_datadir}/yosys/plugins install -p -m 755 ghdl.so %{buildroot}%{_datadir}/yosys/plugins %files %license LICENSE %doc README.md %dir %{_datadir}/yosys/plugins %{_datadir}/yosys/plugins/ghdl.so %changelog * Sat Feb 1 2020 Dan HorĂ¡k - 0-0.1.20200121gitfe9f2c4 - initial Fedora version