SHA256
1
0
forked from pool/gnucap

- beautify specfile

- move documentation and examples to the default places in openSUSE:
  gnucap-docpath.patch
- split out runall patch
- added gnucap-modelgen manpage

OBS-URL: https://build.opensuse.org/package/show/Education/gnucap?expand=0&rev=4
This commit is contained in:
Lars Vogdt 2012-06-26 13:06:11 +00:00 committed by Git OBS Bridge
parent f67e1ba339
commit 06a39cb472
7 changed files with 158 additions and 60 deletions

View File

@ -1 +0,0 @@
<link project='science' package='gnucap'/>

View File

@ -213,38 +213,3 @@
}else{
delete m;
file.warn(0, "what's this??");
--- gnucap-0.35/examples/runall.debian 2000-09-05 06:22:00.000000000 +0200
+++ gnucap-0.35/examples/runall 2007-02-14 13:04:05.000000000 +0100
@@ -1,16 +1,16 @@
-#
-$1 -b eq2-145.ckt
-$1 -b eq2-289.ckt
-$1 -b eq2-577.ckt
-$1 -b eq3-1153.ckt
-$1 -b eq4-2305.ckt
-$1 -b eqboost.ckt
-$1 -b eqflat.ckt
-$1 -b eqmodify.ckt
-$1 -b killzap.ckt
-$1 -b nmos100.ckt
-$1 -b nmos18.ckt
-$1 -b nmos30.ckt
-$1 -b nmp100.ckt
-$1 -b opamp-ol.ckt
-$1 -b opamp-vf.ckt
+#!/bin/sh
+gnucap -b eq2-145.ckt
+gnucap -b eq2-289.ckt
+gnucap -b eq2-577.ckt
+gnucap -b eq3-1153.ckt
+gnucap -b eq4-2305.ckt
+gnucap -b eqboost.ckt
+gnucap -b eqflat.ckt
+gnucap -b eqmodify.ckt
+gnucap -b killzap.ckt
+gnucap -b nmos100.ckt
+gnucap -b nmos18.ckt
+gnucap -b nmos30.ckt
+gnucap -b nmp100.ckt
+gnucap -b opamp-ol.ckt
+gnucap -b opamp-vf.ckt

52
gnucap-docpath.patch Normal file
View File

@ -0,0 +1,52 @@
Index: doc/Makefile.am
===================================================================
--- doc/Makefile.am.orig
+++ doc/Makefile.am
@@ -3,7 +3,7 @@
dist_man_MANS= gnucap.1
-pkgdocsdir= ${pkgdatadir}/doc
+pkgdocsdir= ${docdir}
dist_pkgdocs_DATA= \
acs-tutorial COPYING history INSTALL relnotes.029 \
relnotes.030 relnotes.031 relnotes.032 relnotes.033 \
Index: doc/Makefile.in
===================================================================
--- doc/Makefile.in.orig
+++ doc/Makefile.in
@@ -152,7 +152,7 @@ sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
dist_man_MANS = gnucap.1
-pkgdocsdir = ${pkgdatadir}/doc
+pkgdocsdir = ${docdir}
dist_pkgdocs_DATA = \
acs-tutorial COPYING history INSTALL relnotes.029 \
relnotes.030 relnotes.031 relnotes.032 relnotes.033 \
Index: examples/Makefile.am
===================================================================
--- examples/Makefile.am.orig
+++ examples/Makefile.am
@@ -1,7 +1,7 @@
## $Id$
##
-pkgexamplesdir= ${pkgdatadir}/examples
+pkgexamplesdir= ${docdir}/examples
dist_pkgexamples_DATA= ${EXFILES}
EXFILES= \
Index: examples/Makefile.in
===================================================================
--- examples/Makefile.in.orig
+++ examples/Makefile.in
@@ -148,7 +148,7 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-pkgexamplesdir = ${pkgdatadir}/examples
+pkgexamplesdir = ${docdir}/examples
dist_pkgexamples_DATA = ${EXFILES}
EXFILES = \
eq2-145.ckt eq2-289.ckt eq2-577.ckt eq3-1153.ckt eq4-2305.ckt \

37
gnucap-fix_runall.patch Normal file
View File

@ -0,0 +1,37 @@
Index: examples/runall
===================================================================
--- examples/runall.orig
+++ examples/runall
@@ -1,16 +1,16 @@
-#
-$1 -b eq2-145.ckt
-$1 -b eq2-289.ckt
-$1 -b eq2-577.ckt
-$1 -b eq3-1153.ckt
-$1 -b eq4-2305.ckt
-$1 -b eqboost.ckt
-$1 -b eqflat.ckt
-$1 -b eqmodify.ckt
-$1 -b killzap.ckt
-$1 -b nmos100.ckt
-$1 -b nmos18.ckt
-$1 -b nmos30.ckt
-$1 -b nmp100.ckt
-$1 -b opamp-ol.ckt
-$1 -b opamp-vf.ckt
+#/bin/bash
+gnucap -b eq2-145.ckt
+gnucap -b eq2-289.ckt
+gnucap -b eq2-577.ckt
+gnucap -b eq3-1153.ckt
+gnucap -b eq4-2305.ckt
+gnucap -b eqboost.ckt
+gnucap -b eqflat.ckt
+gnucap -b eqmodify.ckt
+gnucap -b killzap.ckt
+gnucap -b nmos100.ckt
+gnucap -b nmos18.ckt
+gnucap -b nmos30.ckt
+gnucap -b nmp100.ckt
+gnucap -b opamp-ol.ckt
+gnucap -b opamp-vf.ckt

13
gnucap-modelgen.1 Normal file
View File

@ -0,0 +1,13 @@
.TH GNUCAP-MODELGEN 1 "Jun 26, 2012"
.SH NAME
gnucap-modelgen \- Creates mathematical models
.SH SYNOPSIS
.B gnucap-modelgen
.RI " <filename>"
.br
.SH DESCRIPTION
\fBgnucap-modelgen\fP creates mathematical models from *.ckt files.
.SH OPTIONS
This program only allows a filename as option.
.SH AUTHOR
This manual page was written by Lars Vogdt <lars@linux-schulserver.de>..

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Jun 26 10:29:17 UTC 2012 - lars@linux-schulserver.de
- beautify specfile
- move documentation and examples to the default places in openSUSE:
gnucap-docpath.patch
- split out runall patch
- added gnucap-modelgen manpage
-------------------------------------------------------------------
Thu Oct 9 00:13:57 CEST 2008 - lars@linux-schulserver.de

View File

@ -1,33 +1,53 @@
#
# spec file for package gnucap
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gnucap
Summary: Gnucap is the Gnu Circuit Analysis Package
Version: 0.35
Release: 10
License: GPL
License: GPL-2.0+
Summary: Gnu Circuit Analysis Package
Url: http://www.gnu.org/software/gnucap/
Group: Productivity/Scientific/Electronics
Url: http://www.geda.seul.org/tools/gnucap
Vendor: openSUSE-Education
Source: http://www.gnucap.org/dist/%name-%version.tar.bz2
Source: http://www.gnucap.org/dist/%{name}-%{version}.tar.bz2
Source1: gnucap-modelgen.1
# PATCH-FIX-UPSTREAM -- fix build with GCC 4.3
Patch1: gnucap-0.35-gcc43.patch
# PATCH-FIX-UPSTREAM -- ACS -> Gnucap
Patch2: gnucap-0.34-debian.patch
BuildRequires: gcc-c++ libpng-devel readline-devel
# PATCH-FIX-OPENSUSE -- move documentation and example to the standard directories
Patch3: gnucap-docpath.patch
# PATCH-FIX-OPENSUSE -- from Debian: add shebang, and explicitly call gnucap
Patch4: gnucap-fix_runall.patch
BuildRequires: gcc-c++
BuildRequires: libpng-devel
BuildRequires: ncurses-devel
BuildRequires: readline-devel
%if 0%{?suse_version}
%if 0%{?suse_version} > 1020
BuildRequires: texlive-devel texlive-latex
BuildRequires: texlive-devel
BuildRequires: texlive-latex
%else
BuildRequires: te_latex tetex
BuildRequires: te_latex
BuildRequires: tetex
%endif
%endif
%if 0%{?mandriva_version}
BuildRequires: tetex-latex tetex
BuildRequires: tetex
BuildRequires: tetex-latex
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -44,34 +64,37 @@ Unlike Spice, the engine is designed to do true mixed-mode
simulation. Most of the code is in place for future support of event
driven analog simulation, and true multi-rate simulation.
%prep
%setup -q
# use ncurses instead of termcap
sed -i 's/-ltermcap/-lncurses/g' configure
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p0
rm INSTALL
%build
%configure
%{__make} %{?jobs:-j%jobs}
%configure --docdir=%{_defaultdocdir}/%{name}
make %{?_smp_mflags}
%install
%makeinstall
%make_install
rm %{buildroot}/%{_defaultdocdir}/%{name}/INSTALL
install -Dm644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/gnucap-modelgen.1
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_prefix}/bin/*
%{_bindir}/*
%{_mandir}/man1/*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/doc
%dir %{_datadir}/%{name}/examples
%dir %{_datadir}/%{name}/manual
%doc %{_datadir}/%{name}/doc/*
%doc %{_datadir}/%{name}/examples/*
%doc %{_datadir}/%{name}/manual/*
%dir %{_defaultdocdir}/%{name}
%dir %{_defaultdocdir}/%{name}/examples
%doc %{_defaultdocdir}/%{name}*
%changelog