File mingw64-iverilog.spec of Package mingw64-iverilog

#
# spec file for package mingw64-iverilog
#
# Copyright (c) 2020-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/
#


%define _name   iverilog
Name:           mingw64-%{_name}
Version:        12.0
Release:        0
%define major_ver 12
Summary:        Simulation and synthesis tool for IEEE-1364
License:        GPL-2.0-or-later
Group:          Productivity/Scientific/Electronics
URL:            https://steveicarus.github.io/iverilog/
Source:         https://altushost-swe.dl.sourceforge.net/project/iverilog/iverilog/%{version}/verilog-%{version}.tar.gz
Patch1:         verilog-12.0-install-fixes.patch
BuildRequires:  autoconf
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  gperf
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-libbz2-devel
BuildRequires:  mingw64-readline-devel
BuildRequires:  mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Icarus Verilog is a Verilog compiler that generates a variety of
engineering formats, including simulation. It strives to be true
to the IEEE-1364 standard.

%package        devel
Summary:        Icarus Verilog development files
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description    devel
This package contains necessary header files for Icarus Verilog

%_mingw64_debug_package

%prep
%autosetup -p1 -n verilog-%{version}
chmod a+x autoconf.sh

%build
./autoconf.sh
%_mingw64_configure \
%_mingw64_make %{?_smp_mflags}

%install
%_mingw64_make_install

%if 0
%check
make check
%endif

%files
%license COPYING
%doc README.md BUGS.txt QUICK_START.txt ieee1364-notes.txt
%doc swift.txt netlist.txt t-dll.txt vpi.txt tgt-fpga/fpga.txt
%doc cadpli/cadpli.txt xilinx-hint.txt examples
%{_mingw64_bindir}/*.exe
%{_mingw64_libdir}/ivl
%exclude %{_mingw64_libdir}/ivl/*.debug
%{_mingw64_mandir}/man1/*

%files devel
%{_mingw64_includedir}/*
%{_mingw64_libdir}/lib*.a

%changelog
openSUSE Build Service is sponsored by