2024-01-05 23:16:22 +01:00
|
|
|
%define pckver %(echo %version | tr . -)
|
|
|
|
Name: gnucap
|
|
|
|
Epoch: 1
|
2024-01-05 23:16:23 +01:00
|
|
|
Version: 20210107
|
2024-01-05 23:16:22 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A general purpose circuit simulator
|
|
|
|
Group: Applications/Scientific
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://gnucap.org/dokuwiki/doku.php?id=gnucap:start
|
2024-01-05 23:16:23 +01:00
|
|
|
Source: https://codeberg.org/gnucap/gnucap.git/%{version}/gnucap-%{version}.tar.bz2
|
2024-01-05 23:16:22 +01:00
|
|
|
Patch0: %{name}-0.34-install.patch
|
|
|
|
Patch1: %{name}-0.34-libtermcap.patch
|
|
|
|
Patch2: gnucap-2013.04.23-readline.patch
|
|
|
|
Patch3: gnucap-2013.04.23-gcc-4.3.patch
|
2024-01-05 23:16:23 +01:00
|
|
|
Patch4: gnucap-20210107-sysconfdir.patch
|
2024-01-05 23:16:22 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libreadline-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libtermcap-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
%description
|
|
|
|
Gnucap is a general purpose circuit simulator.
|
|
|
|
It performs nonlinear dc and transient analyses, fourier analysis, and ac analysis. It can also be run in batch mode or as a server.
|
|
|
|
In batch mode it is mostly Spice compatible, so it is often possible to use the same file for both Gnucap and Spice.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-01-05 23:16:23 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 23:16:22 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n gnucap-%{pckver}
|
2024-01-05 23:16:23 +01:00
|
|
|
#%patch2 -p1
|
|
|
|
#%patch3 -p1
|
|
|
|
%patch4 -p1
|
2024-01-05 23:16:22 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 23:16:23 +01:00
|
|
|
%configure \
|
|
|
|
--prefix=%{_prefix}
|
2024-01-05 23:16:22 +01:00
|
|
|
|
|
|
|
#export CCFLAGS="%{optflags}"
|
|
|
|
%make -j1
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
2024-01-05 23:16:23 +01:00
|
|
|
%makeinstall PREFIX=%{_prefix} INSTALL_SYSCONF_DIR=%{_sysconfdir}
|
2024-01-05 23:16:22 +01:00
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
#install -D -m644 doc/gnucap.1 \
|
|
|
|
# %{buildroot}%{_mandir}/man1/gnucap.1
|
|
|
|
#install -D -m644 doc/gnucap-ibis.1 \
|
|
|
|
# %{buildroot}%{_mandir}/man1/gnucap-ibis.1
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 23:16:23 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/gnucap.conf
|
2024-01-05 23:16:22 +01:00
|
|
|
%{_bindir}/gnucap
|
|
|
|
%{_bindir}/gnucap-modelgen
|
2024-01-05 23:16:23 +01:00
|
|
|
%dir %{_libdir}/gnucap
|
|
|
|
%{_libdir}/gnucap/gnucap-default-plugins.so
|
2024-01-05 23:16:22 +01:00
|
|
|
%{_libdir}/libgnucap.so
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
#%doc examples/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 23:16:23 +01:00
|
|
|
%{_bindir}/gnucap-conf
|
2024-01-05 23:16:22 +01:00
|
|
|
%dir %{_includedir}/gnucap
|
|
|
|
%{_includedir}/gnucap/*.h
|
|
|
|
%{_includedir}/gnucap/spice-wrapper.cc
|
2024-01-05 23:16:23 +01:00
|
|
|
#%doc NEWS README
|
2024-01-05 23:16:22 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:16:23 +01:00
|
|
|
* Thu Dec 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20210107-1mamba
|
|
|
|
- update to 20210107
|
|
|
|
|
2024-01-05 23:16:22 +01:00
|
|
|
* Sat Apr 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2013.04.23-1mamba
|
|
|
|
- update to 2013.04.23
|
|
|
|
|
|
|
|
* Thu Jan 31 2013 Automatic Build System <autodist@mambasoft.it> 20091207-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jul 20 2008 gil <puntogil@libero.it> 2008-05-27-1mamba
|
|
|
|
- update to 2008-05-27
|
|
|
|
- removed patches
|
|
|
|
|
|
|
|
* Mon Mar 20 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2006-01-17-1qilnx
|
|
|
|
- package created by autospec
|