File graywolf.spec of Package graywolf
#
# spec file for package graywolf
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: graywolf
Summary: Yosys open synthesis suite - placement tool
Version: 0.1.6
Release: 0
License: GPL-2.0
Group: Productivity/Scientific/Electronics
Source0: https://github.com/rubund/graywolf/archive/%{version}.tar.gz#/graywolf-%{version}.tar.gz
# PATCH-FIX-OPENSUSE 0001-Avoid-symbol-reference-from-library-to-hosting-progr.patch -- fix build issue, recheck
Patch0: 0001-Avoid-symbol-reference-from-library-to-hosting-progr.patch
Patch1: 0001-Fix-function-prototype-for-TWdialog-user-callback.patch
Patch2: 0002-Fix-uninialized-return-value-warning.patch
Patch3: 0003-twsc-correct-prototype-for-add_port-declare-prototyp.patch
Patch4: 0004-twmc-correct-prototype-for-set_cur_orient-declare-fu.patch
Patch5: 0005-Apply-patch-for-build-with-GCC-10.patch
Patch6: 0006-Remove-unneeded-return-value.patch
URL: https://github.com/rubund/graywolf
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gsl-devel
BuildRequires: libX11-devel
BuildRequires: pkg-config
%description
VLSI design placement tool, mainly used together with qflow.
This is a fork of TimberWolf 6.3.5, which was developed at Yale University,
and was distributed as open source for a time until it was taken commercial.
The last open-source version of TimberWolf does not perform detail routing,
but is a professional-grade placement tool. In order to continue improving
the open-source version, graywolf has been forked off from version 6.3.5
of TimberWolf.
%prep
%autosetup -p1 graywolf-%{version}
%build
%cmake
%cmake_build
%install
%cmake_install
mv %{buildroot}/usr/lib/%{name}/bin/splt_file.{a,awk}
rm %{buildroot}%{_libdir}/lib*.so
%check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING LICENSE
%doc README.md
%{_bindir}/*
%{_libdir}/*
/usr/lib/%{name}
%changelog