2 %bcond_without shared # build as shared library
4 Summary: Ngspice circuit simulator
5 Summary(pl.UTF-8): Ngspice symulator obwodów
11 Source0: https://sourceforge.net/projects/ngspice/files/ng-spice-rework/%{version}/%{name}-%{version}.tar.gz
12 # Source0-md5: e88377ff1e5a466dcd240fa235de7551
13 Source1: %{name}.desktop
14 URL: http://ngspice.sourceforge.net/
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is
19 based on three open source software packages: Spice3f5, Cider1b1 and
22 %description -l pl.UTF-8
23 Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is
24 based on three open source software packages: Spice3f5, Cider1b1 and
28 Summary: Header files for ngspice library
29 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ngspice
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
35 Header files for ngspice library.
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki ngspice.
42 find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
47 --disable-silent-rules \
62 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 install -d $RPM_BUILD_ROOT%{_desktopdir}
71 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
73 cp -R examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
75 %{__rm} $RPM_BUILD_ROOT%{_includedir}/config.h
76 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/cmpp*1*
79 rm -rf $RPM_BUILD_ROOT
82 %post -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
87 %defattr(644,root,root,755)
88 %doc ANALYSES AUTHORS ChangeLog NEWS README
89 %dir %{_libdir}/ngspice
90 %attr(755,root,root) %{_libdir}/ngspice/*.cm
91 %{_examplesdir}/%{name}-%{version}
95 %attr(755,root,root) %{_bindir}/ngspice
96 %{_desktopdir}/%{name}.desktop
99 %attr(755,root,root) %{_libdir}/libngspice.so.0.0.0
100 %attr(755,root,root) %ghost %{_libdir}/libngspice.so.0
104 %defattr(644,root,root,755)
106 %{_libdir}/libngspice.so
107 %{_libdir}/libngspice.la
108 %{_pkgconfigdir}/*.pc
109 %{_includedir}/ngspice