Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win32
mingw32-ngspice
mingw32-ngspice.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw32-ngspice.spec of Package mingw32-ngspice
# # spec file for package mingw32 # # Copyright (c) 2019 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/ # %global flavor @BUILD_FLAVOR@%{nil} %if "%flavor" == "shlibs" %define build_shared 1 %endif %define pname ngspice Name: mingw32-%pname%{?build_shared:-shared} %define so_ver 0 Version: 30 Release: 0 Summary: Mixed-level, Mixed-signal Circuit Simulator Based on spice3f5 License: BSD-2-Clause Group: Productivity/Scientific/Electronics Url: http://ngspice.sourceforge.net Source0: http://downloads.sourceforge.net/%{pname}/%{pname}-%{version}.tar.gz Source1: http://downloads.sourceforge.net/%{pname}/%{pname}-%{version}-manual.pdf Patch1: ngspice-Use-gnuplot-terminal-auto-detection.patch Patch2: 0001-fix-undefined-malloc-on-cross-compile.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison BuildRequires: flex BuildRequires: libtool BuildRequires: mingw32-cross-gcc BuildRequires: mingw32-cross-gcc-fortran BuildRequires: mingw32-cross-pkg-config BuildRequires: mingw32-fftw3-devel # should be a dependency of cross gcc BuildRequires: mingw32-filesystem BuildRequires: mingw32-ncurses-devel BuildRequires: mingw32-readline-devel BuildRequires: mingw32-termcap-devel Requires: mingw32-%{pname}-scripts = %{version} Requires: mingw32-%{pname}-xspice-cm = %{version} Requires: mingw32-lib%{pname}%{so_ver} = %{version} Recommends: mingw32-%{pname}-doc = %{version} Provides: mingw32-ng-spice-rework = %{version} %_mingw32_package_header_debug BuildArch: noarch %_mingw32_debug_package %description Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. %package doc Summary: Documentation for ngspice Group: Documentation/Other Requires: mingw32-%{pname} = %{version} %description doc Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. %package xspice-cm Summary: Xspice code model Plugins Group: Productivity/Scientific/Electronics %description xspice-cm Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. This package contains the Xspice code model plugins. %package scripts Summary: Ngspice init scripts Group: Productivity/Scientific/Electronics %description scripts Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. This package contains the ngspice init scripts shared between ngspice and libngspice. %package xspice-cm-devel Summary: Development files for Xspice code model plugins Group: Development/Libraries/Other Requires: mingw32-%{pname}-xspice-cm = %{version} %description xspice-cm-devel Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. This package contains the development files for Xspice code model plugins. %package -n mingw32-lib%{pname}%{so_ver} Summary: Shared libraries for ngspice Group: System/Libraries Requires: mingw32-%{pname}-scripts Requires: mingw32-%{pname}-xspice-cm %description -n mingw32-lib%{pname}%{so_ver} Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. This package contains the shared libraries. %package -n mingw32-lib%{pname}-devel Summary: Development files for ngspice Group: Development/Libraries/Other Requires: mingw32-lib%{pname}%{so_ver} = %{version} %description -n mingw32-lib%{pname}-devel Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. This package contains the development files. %prep %setup -q -n ngspice-%{version} cp %{S:1} . %patch -P 1 -p1 %patch -P 2 -p1 %build ./autogen.sh %_mingw32_configure\ %if 0%{!?build_shared:1} --with-wingui \ %else --with-ngshared \ %endif --with-readline=yes \ --enable-xspice \ --enable-cider \ --enable-openmp %_mingw32_make V=1 %{?_smp_mflags} %install %_mingw32_makeinstall find %{buildroot} -type f -name "*.la" -delete -print %if 0%{!?build_shared:1} rm %{buildroot}%{_mingw32_includedir}/%{pname}/sharedspice.h %else rm -rf %{buildroot}%{_mingw32_bindir}/cmpp.exe %{buildroot}/%{_mingw32_mandir} \ %{buildroot}%{_mingw32_libdir}/%{pname} \ %{buildroot}%{_mingw32_datadir}/%{pname}/dlmain.c \ %{buildroot}%{_mingw32_datadir}/%{pname}/scripts \ %{buildroot}%{_mingw32_includedir}/%{pname}/[^s]*.h \ %{buildroot}%{_mingw32_includedir}/%{pname}/s[^h]*.h %endif %if 0%{!?build_shared:1} %files %license COPYING %doc ANALYSES AUTHORS BUGS DEVICES FAQ NEWS README %{_mingw32_bindir}/ngspice.exe %{_mingw32_mandir}/man1/ngspice.1%{?ext_man} %dir %{_mingw32_datadir}/ngspice %files scripts %{_mingw32_datadir}/ngspice/scripts %files doc %doc ngspice-%{version}-manual.pdf %files xspice-cm %{_mingw32_bindir}/cmpp.exe %{_mingw32_mandir}/man1/cmpp.1%{?ext_man} %{_mingw32_libdir}/%{pname} %files xspice-cm-devel %doc Stuarts_Poly_Notes src/xspice/icm/README %{_mingw32_includedir}/%{pname} %{_mingw32_datadir}/%{pname}/dlmain.c %else %files -n mingw32-lib%{pname}%{so_ver} %{_mingw32_bindir}/lib%{pname}*.dll %files -n mingw32-lib%{pname}-devel %dir %{_mingw32_includedir}/%{pname} %{_mingw32_includedir}/%{pname}/sharedspice.h %{_mingw32_libdir}/lib%{pname}.dll.a %{_mingw32_libdir}/pkgconfig/%{pname}.pc %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor