update to 20210107 [release 20210107-1mamba;Thu Dec 23 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:16:23 +01:00
parent f59074ceec
commit 6f67732fb1
2 changed files with 30 additions and 10 deletions

View File

@ -0,0 +1,11 @@
--- gnucap-20210107/main/configure.orig 2021-12-28 08:41:28.405969952 +0100
+++ gnucap-20210107/main/configure 2021-12-28 08:41:44.960231518 +0100
@@ -36,7 +36,7 @@
-e "s#@includedir@#$\{prefix\}/include#" \
-e "s#@datarootdir@#$\{prefix\}/share/gnucap#" \
-e "s#@docdir@#$\{prefix\}/share/doc/gnucap#" \
- -e "s#@sysconfdir@#$\{prefix\}/etc#" \
+ -e "s#@sysconfdir@#/etc#" \
-e "s#@pkglibdir@#$pkglibdir#" \
-e "s#@pkglibdir_expanded@#$pkglibdir_expanded#" \
-e "s#@CXXFLAGS@#$CCFLAGS#" \

View File

@ -1,7 +1,7 @@
%define pckver %(echo %version | tr . -) %define pckver %(echo %version | tr . -)
Name: gnucap Name: gnucap
Epoch: 1 Epoch: 1
Version: 2013.04.23 Version: 20210107
Release: 1mamba Release: 1mamba
Summary: A general purpose circuit simulator Summary: A general purpose circuit simulator
Group: Applications/Scientific Group: Applications/Scientific
@ -9,11 +9,12 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gnucap.org/dokuwiki/doku.php?id=gnucap:start URL: http://gnucap.org/dokuwiki/doku.php?id=gnucap:start
Source: http://gnucap.org/devel/gnucap-%{pckver}.tar.gz Source: https://codeberg.org/gnucap/gnucap.git/%{version}/gnucap-%{version}.tar.bz2
Patch0: %{name}-0.34-install.patch Patch0: %{name}-0.34-install.patch
Patch1: %{name}-0.34-libtermcap.patch Patch1: %{name}-0.34-libtermcap.patch
Patch2: gnucap-2013.04.23-readline.patch Patch2: gnucap-2013.04.23-readline.patch
Patch3: gnucap-2013.04.23-gcc-4.3.patch Patch3: gnucap-2013.04.23-gcc-4.3.patch
Patch4: gnucap-20210107-sysconfdir.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -23,8 +24,6 @@ BuildRequires: libstdc++6-devel
BuildRequires: libtermcap-devel BuildRequires: libtermcap-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# patches http://www.redhat.com/archives/fedora-extras-commits/2006-April/msg02132.html
%description %description
Gnucap is a general purpose circuit simulator. Gnucap is a general purpose circuit simulator.
@ -39,20 +38,24 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel %description devel
This package contains libraries and header files for developing applications that use %{name}. This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep %prep
%setup -q -n gnucap-%{pckver} %setup -q -n gnucap-%{pckver}
%patch2 -p1 #%patch2 -p1
%patch3 -p1 #%patch3 -p1
%patch4 -p1
%build %build
%configure --prefix=%{_prefix} %configure \
--prefix=%{_prefix}
#export CCFLAGS="%{optflags}" #export CCFLAGS="%{optflags}"
%make -j1 %make -j1
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall PREFIX=%{buildroot}%{_prefix} %makeinstall PREFIX=%{_prefix} INSTALL_SYSCONF_DIR=%{_sysconfdir}
%ifarch x86_64 %ifarch x86_64
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir} mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
@ -68,21 +71,27 @@ mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/gnucap.conf
%{_bindir}/gnucap %{_bindir}/gnucap
%{_bindir}/gnucap-modelgen %{_bindir}/gnucap-modelgen
%{_libdir}/libgnucap-default-plugins.so %dir %{_libdir}/gnucap
%{_libdir}/gnucap/gnucap-default-plugins.so
%{_libdir}/libgnucap.so %{_libdir}/libgnucap.so
%doc AUTHORS COPYING %doc AUTHORS COPYING
#%doc examples/* #%doc examples/*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/gnucap-conf
%dir %{_includedir}/gnucap %dir %{_includedir}/gnucap
%{_includedir}/gnucap/*.h %{_includedir}/gnucap/*.h
%{_includedir}/gnucap/spice-wrapper.cc %{_includedir}/gnucap/spice-wrapper.cc
%doc NEWS README #%doc NEWS README
%changelog %changelog
* Thu Dec 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20210107-1mamba
- update to 20210107
* Sat Apr 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2013.04.23-1mamba * Sat Apr 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2013.04.23-1mamba
- update to 2013.04.23 - update to 2013.04.23