Package verilator: Specfile

%define _unpackaged_files_terminate_build 1

Name: verilator
Version: 4.222
Release: alt1
Summary: A fast and free Verilog HDL simulator

Group: Engineering
License: LGPLv3 or Artistic-2.0
Url: https://www.veripool.org/wiki/verilator

# VCS: https://github.com/verilator/verilator
Source: %name-%version.tar
Patch0: %name-%version-%release.patch
ExcludeArch: armh

BuildRequires: flex gcc-c++
BuildRequires: rpm-build-python3
BuildRequires: perl-podlators tex(dehypht.tex)
BuildRequires: python3-module-sphinx_rtd_theme
BuildRequires: python3-module-sphinx-sphinx-build-symlink
BuildRequires: gdb /proc

%description
Verilator is the fastest free Verilog HDL simulator, and beats most commercial
simulators. It compiles synthesizable Verilog, plus some PSL, SystemVerilog and
Synthesis assertions into C++ or SystemC code. It is designed for large projects
where fast simulation performance is of primary concern, and is especially well
suited to generate executable models of CPUs for embedded software design teams.

%package -n %name-doc
Summary: A fast and free Verilog HDL simulator - documentation and examples
Group: Engineering
BuildArch: noarch

%description -n %name-doc
Verilator is the fastest free Verilog HDL simulator, and beats most commercial
simulators. This package contains documentation and examples.

%prep
%setup

%build
autoconf
%configure
%make_build all info

%check
%make test

%install
%makeinstall_std
mkdir -p %buildroot%_pkgconfigdir/
mv %buildroot%_datadir/pkgconfig/%name.pc %buildroot%_pkgconfigdir/%name.pc
mkdir -p %buildroot%_docdir/%name/
mv %buildroot%_datadir/%name/examples %buildroot%_docdir/%name/


%files -n %name
%_bindir/*
%_datadir/%name/
%_man1dir/*
%_pkgconfigdir/%name.pc

%files -n %name-doc
%doc verilator.pdf docs/_build/html
%_docdir/%name/

%changelog
* Fri May 06 2022 Egor Ignatov <egori@altlinux.org> 4.222-alt1
- new version 4.222

* Thu Mar 17 2022 Egor Ignatov <egori@altlinux.org> 4.220-alt1
- new version 4.220

* Fri Jan 21 2022 Egor Ignatov <egori@altlinux.org> 4.218-alt1
- new version 4.218

* Tue Dec 21 2021 Egor Ignatov <egori@altlinux.org> 4.216-alt1
- new version 4.216
- Disable armh build

* Thu Oct 28 2021 Egor Ignatov <egori@altlinux.org> 4.214-alt1
- new version 4.214

* Mon Sep 13 2021 Egor Ignatov <egori@altlinux.org> 4.212-alt1
- new version 4.212

* Fri Jul 09 2021 Egor Ignatov <egori@altlinux.org> 4.210-alt1
- new version 4.210
- remove 0001-Fix-V3Hash-when-building-m32 patch

* Mon Jun 21 2021 Egor Ignatov <egori@altlinux.org> 4.204-alt1
- new version
- add patch to fix build on 32 bit systems
- documentation format changed

* Tue Apr 20 2021 Egor Ignatov <egori@altlinux.org> 4.200-alt1
- new version
- remove pkg-config-version-fix patch

* Sat Apr 18 2020 Michael Shigorin <mike@altlinux.org> 3.924-alt1.2
- added missing BR: /usr/bin/pod2html

* Fri Apr 03 2020 Igor Vlasenko <viy@altlinux.ru> 3.924-alt1.1
- NMU: applied logoved fixes

* Tue Jun 19 2018 Elvira Khabirova <lineprinter@altlinux.org> 3.924-alt1
- Initial build