]> git.pld-linux.org Git - packages/ngspice.git/blame - ngspice.spec
- updated to 34
[packages/ngspice.git] / ngspice.spec
CommitLineData
f0102f15
BS
1# Conditional build:
2%bcond_without shared # build as shared library
3
4Summary: Ngspice circuit simulator
5Summary(pl.UTF-8): Ngspice symulator obwodów
6Name: ngspice
56e3a399 7Version: 34
0e7eda1e 8Release: 1
f0102f15
BS
9License: GPL
10Group: Applications
11Source0: https://sourceforge.net/projects/ngspice/files/ng-spice-rework/%{version}/%{name}-%{version}.tar.gz
56e3a399 12# Source0-md5: e88377ff1e5a466dcd240fa235de7551
f0102f15
BS
13Source1: %{name}.desktop
14URL: http://ngspice.sourceforge.net/
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is
19based on three open source software packages: Spice3f5, Cider1b1 and
20Xspice.
21
22%description -l pl.UTF-8
23Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is
24based on three open source software packages: Spice3f5, Cider1b1 and
25Xspice.
26
27%package devel
28Summary: Header files for ngspice library
29Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ngspice
30License: GPL
31Group: Development/Libraries
32Requires: %{name} = %{version}-%{release}
33
34%description devel
35Header files for ngspice library.
36
37%description devel -l pl.UTF-8
38Pliki nagłówkowe biblioteki ngspice.
39
40%prep
41%setup -q
42find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
43
44%build
45
46%configure \
56e3a399 47 --disable-silent-rules \
f0102f15
BS
48 --enable-xspice \
49 --enable-cider \
50 --enable-openmp \
51%if %{with shared}
52 --with-ngshared
53%else
54 --enable-xgraph \
55 --with-x \
56 --with-readline=yes
57%endif
56e3a399 58
f0102f15
BS
59%{__make}
60
61%install
62rm -rf $RPM_BUILD_ROOT
63
64%{__make} install \
65 DESTDIR=$RPM_BUILD_ROOT
66
67install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68install -d $RPM_BUILD_ROOT%{_desktopdir}
69
bcec57da 70%if %{without shared}
f0102f15 71cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
bcec57da 72%endif
f0102f15
BS
73cp -R examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
74
56e3a399
BS
75%{__rm} $RPM_BUILD_ROOT%{_includedir}/config.h
76%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/cmpp*1*
77
f0102f15
BS
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%if %{with shared}
82%post -p /sbin/ldconfig
83%postun -p /sbin/ldconfig
84%endif
85
86%files
87%defattr(644,root,root,755)
88%doc ANALYSES AUTHORS ChangeLog NEWS README
f0102f15
BS
89%dir %{_libdir}/ngspice
90%attr(755,root,root) %{_libdir}/ngspice/*.cm
f0102f15
BS
91%{_examplesdir}/%{name}-%{version}
92%{_datadir}/%{name}
93
94%if %{without shared}
56e3a399 95%attr(755,root,root) %{_bindir}/ngspice
f0102f15
BS
96%{_desktopdir}/%{name}.desktop
97%{_mandir}/man1/ng*1*
98%else
99%attr(755,root,root) %{_libdir}/libngspice.so.0.0.0
100%attr(755,root,root) %ghost %{_libdir}/libngspice.so.0
101%endif
102
103%files devel
104%defattr(644,root,root,755)
105%if %{with shared}
106%{_libdir}/libngspice.so
107%{_libdir}/libngspice.la
108%{_pkgconfigdir}/*.pc
109%{_includedir}/ngspice
110%endif
This page took 0.109356 seconds and 4 git commands to generate.