Package ngspice: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %define _pkgdocdir %_docdir/%name-%version Name: ngspice Version: 29 Release: alt1 Summary: A mixed level/signal circuit simulator License: BSD Group: Engineering Url: http://ngspice.sourceforge.net Packager: Anton Midyukov <antohami@altlinux.org> Source: %name-%version.tar Source1: https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/%version/ngspice-%version-manual.pdf # Link libspice.so with -lBLT or -lBLIlite, depending on whether in tk mode or # not (bug 1047056, debian bug 737279) Patch: ngspice-26-blt-linkage-workaround.patch BuildRequires: gcc libgomp-devel flex glibc-kernheaders-generic BuildRequires: libXaw-devel BuildRequires: libXext-devel BuildRequires: libtinfo-devel BuildRequires: mot-adms BuildRequires: libfftw3-devel BuildRequires: readline-devel libncurses-devel Requires: %name-data = %EVR Requires: lib%name = %EVR %description Ngspice is a general-purpose circuit simulator program. It implements three classes of analysis: - Nonlinear DC analyses - Nonlinear Transient analyses - Linear AC analyses Ngspice implements the usual circuits elements, like resistors, capacitors, inductors (single or mutual), transmission lines and a growing number of semiconductor devices like diodes, bipolar transistors, mosfets (both bulk and SOI), mesfets, jfet and HFET. Ngspice implements the EKV model but it cannot be distributed with the package since its license does not allow to redistribute EKV source code. Ngspice integrates Xspice, a mixed-mode simulator built upon spice3c1 (and then some tweak is necessary merge it with spice3f5). Xspice provides a codemodel interface and an event-driven simulation algorithm. Users can develop their own models for devices using the codemodel interface. It can be used for VLSI simulations as well. %package data Group: Engineering Summary: Data files for %name, a circuit simulator Buildarch: noarch %description data Data files for %name, a circuit simulator. %package -n lib%name Summary: Main library for %name Group: System/Libraries %description -n lib%name This package contains the library needed to run programs dynamically linked with %name. %package devel Group: Engineering Summary: Header files for %name, a circuit simulator Requires: lib%name = %EVR %description devel Header files for %name, a circuit simulator. %prep %setup %patch -p2 -b .link # make sure the examples are UTF-8... for nonUTF8 in \ examples/tclspice/tcl-testbench4/selectfromlist.tcl \ examples/tclspice/tcl-testbench1/testCapa.cir \ examples/tclspice/tcl-testbench1/capa.cir \ ChangeLog \ %nil do %_bindir/iconv -f ISO-8859-1 -t utf-8 $nonUTF8 > $nonUTF8.conv mv -f $nonUTF8.conv $nonUTF8 done %ifarch x86_64 sparc64 ppc64 amd64 %__subst "s|@XSPICEINIT@ codemodel @prefix@/@libname@|@XSPICEINIT@ codemodel %_libdir|" \ src/spinit.in %endif # Fixed minor CVS build sed -i \ "s|AM_CPPFLAGS =|AM_CPPFLAGS = -I\$(top_srcdir)/src/maths/ni |" \ src/spicelib/analysis/Makefile.am export ACLOCAL_FLAGS=-Im4 ./autogen.sh --adms chmod +x configure %build for opt in without-ngshared with-ngshared do %configure \ --disable-silent-rules \ --$opt \ --disable-xgraph \ --enable-adms \ --enable-xspice \ --enable-maintainer-mode \ --enable-dependency-tracking \ --enable-capzerobypass \ --enable-cider \ --enable-newpred \ --enable-expdevices \ --enable-intnoise \ --enable-openmp \ --enable-predictor \ --enable-numparam \ --enable-dot-global \ --enable-ndev \ --enable-shared \ --with-readline=yes \ --enable-oldapps make clean %make_build # Once install to the temp dir rm -rf $(pwd)/INST-NGSPICE-${opt} make INSTALL="install -p" install DESTDIR=$(pwd)/INST-NGSPICE-${opt} done %install mkdir -p %buildroot%prefix for opt in without-ngshared with-ngshared do pushd INST-NGSPICE-${opt} cp -a * %buildroot popd done # Ensuring that all docs are under %%_pkgdocdir mkdir -p %buildroot%_pkgdocdir cp -pr examples/ %buildroot%_pkgdocdir cp -p %SOURCE1 %buildroot%_pkgdocdir/%name-%version.pdf cp -a \ Stuarts_Poly_Notes \ FAQ \ DEVICES \ ANALYSES \ AUTHORS \ README* \ BUGS \ ChangeLog \ NEWS \ COPYING \ %buildroot%_pkgdocdir %files %_bindir/* %files -n lib%name %_libdir/*.so.* %_libdir/%name/ %files data %_datadir/%name/ %_man1dir/* %doc %_pkgdocdir %files devel %_libdir/*.so %_includedir/%name %_pkgconfigdir/%name.pc %changelog * Fri Nov 02 2018 Anton Midyukov <antohami@altlinux.org> 29-alt1 - new version 29 * Fri Jul 13 2018 Anton Midyukov <antohami@altlinux.org> 28-alt1 - new version 28 * Thu Jul 12 2018 Anton Midyukov <antohami@altlinux.org> 27-alt2 - build shared library - fix buildrequires - enable unpackaged files in buildroot should terminate build * Thu Nov 02 2017 Anton Midyukov <antohami@altlinux.org> 27-alt1 - Initial build for ALT Sisyphus. |