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