commit f0102f1560d3395176283c248d7525fbd3a9e4c0
Author: Bartek Szady <[email protected]>
Date:   Wed Aug 15 12:21:38 2018 +0200

    - updated to 28
    - renamed to ngspice (like project name)
    - library version build by default

 ng-spice.spec                       |  59 --------------------
 ng-spice.desktop => ngspice.desktop |   0
 ngspice.spec                        | 104 ++++++++++++++++++++++++++++++++++++
 3 files changed, 104 insertions(+), 59 deletions(-)
---
diff --git a/ng-spice.spec b/ng-spice.spec
deleted file mode 100644
index 81689d9..0000000
--- a/ng-spice.spec
+++ /dev/null
@@ -1,59 +0,0 @@
-Summary:       Ngspice circuit simulator
-Summary(pl.UTF-8):     Ngspice symulator obwodów
-Name:          ng-spice
-Version:       17
-Release:       0.1
-License:       GPL
-Group:         Applications
-Source0:       
http://dl.sourceforge.net/ngspice/%{name}-rework-%{version}.tar.gz
-Source1:       %{name}.desktop
-# Source0-md5: abe283dea98b913a2122f085076865b1
-URL:           http://ngspice.sourceforge.net/
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is
-based on three open source software packages: Spice3f5, Cider1b1 and
-Xspice.
-
-%description -l pl.UTF-8
-Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is
-based on three open source software packages: Spice3f5, Cider1b1 and
-Xspice.
-
-%prep
-%setup -q -n %{name}-rework-%{version}
-find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
-
-%build
-%configure \
-       --enable-xspice \
-       --enable-cider \
-       --enable-xgraph \
-       --with-x
-%{__make}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
-
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-install -d $RPM_BUILD_ROOT%{_desktopdir}
-
-install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
-cp -R examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%doc ANALYSES AUTHORS ChangeLog NEWS README doc/ngspice.pdf doc 
doc/ngspice.info*
-%attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}-rework
-%{_libdir}/spice
-%{_desktopdir}/%{name}.desktop
-%{_mandir}/man1/ng*1*
-%{_infodir}/ngspice*
-%{_examplesdir}/%{name}-%{version}
diff --git a/ngspice.spec b/ngspice.spec
new file mode 100644
index 0000000..6afafd4
--- /dev/null
+++ b/ngspice.spec
@@ -0,0 +1,104 @@
+# Conditional build:
+%bcond_without shared  # build as shared library
+
+Summary:       Ngspice circuit simulator
+Summary(pl.UTF-8):     Ngspice symulator obwodów
+Name:          ngspice
+Version:       28
+Release:       0.1
+License:       GPL
+Group:         Applications
+Source0:       
https://sourceforge.net/projects/ngspice/files/ng-spice-rework/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 5ee9c0a5f52d69ae20b8ef9b46608769
+Source1:       %{name}.desktop
+URL:           http://ngspice.sourceforge.net/
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is
+based on three open source software packages: Spice3f5, Cider1b1 and
+Xspice.
+
+%description -l pl.UTF-8
+Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is
+based on three open source software packages: Spice3f5, Cider1b1 and
+Xspice.
+
+%package devel
+Summary:       Header files for ngspice library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki ngspice
+License:       GPL
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for ngspice library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki ngspice.
+
+%prep
+%setup -q
+find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
+%build
+
+%configure \
+       --enable-xspice \
+       --enable-cider \
+       --enable-openmp \
+%if %{with shared}
+       --with-ngshared
+%else
+       --enable-xgraph \
+       --with-x \
+       --with-readline=yes
+%endif
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT%{_desktopdir}
+
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+cp -R examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with shared}
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+%endif
+
+%files
+%defattr(644,root,root,755)
+%doc ANALYSES AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/*
+%dir %{_libdir}/ngspice
+%attr(755,root,root) %{_libdir}/ngspice/*.cm
+%{_mandir}/man1/cmpp*1*
+%{_examplesdir}/%{name}-%{version}
+%{_datadir}/%{name}
+
+%if %{without shared}
+%{_desktopdir}/%{name}.desktop
+%{_mandir}/man1/ng*1*
+%else
+%attr(755,root,root) %{_libdir}/libngspice.so.0.0.0
+%attr(755,root,root) %ghost %{_libdir}/libngspice.so.0
+%endif
+
+%files devel
+%defattr(644,root,root,755)
+%if %{with shared}
+%{_libdir}/libngspice.so
+%{_libdir}/libngspice.la
+%{_pkgconfigdir}/*.pc
+%{_includedir}/ngspice
+%endif
diff --git a/ng-spice.desktop b/ngspice.desktop
similarity index 100%
rename from ng-spice.desktop
rename to ngspice.desktop
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ngspice.git/commitdiff/f0102f1560d3395176283c248d7525fbd3a9e4c0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to