Fri, 11 Mar 2011 21:36:51 +0100
Adjust specification build configurations to port packages to MeeGo.
1 Name: gnucap
2 Version: 0.35
3 Release: 20101201
4 Summary: The Gnu Circuit Analysis Package
5 Vendor: Europalab Software
6 Packager: Michael Schloh von Bennewitz
7 Distribution: MeeGo Thirdparty
8 Group: Applications/Engineering
9 License: GPLv2+
10 URL: http://www.gnu.org/software/gnucap/
11 Source0: http://www.gnucap.org/devel/gnucap-%{version}.tar.gz
12 Patch0: gnucap-0.34-debian.patch
13 Patch1: gnucap-0.35-gcc43.patch
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
17 %description
18 The primary component is a general purpose circuit simulator. It performs
19 nonlinear dc and transient analyses, fourier analysis, and ac analysis. Spice
20 compatible models for the MOSFET (level 1-7), BJT, and diode are included in
21 this release. Gnucap is not based on Spice, but some of the models have been
22 derived from the Berkeley models. Unlike Spice, the engine is designed to do
23 true mixed-mode simulation. Most of the code is in place for future support of
24 event driven analog simulation, and true multi-rate simulation.
27 %prep
28 %setup -q
29 %patch0 -p1
30 %patch1 -p1
31 # use ncurses instead of termcap (bz 226771)
32 sed -i 's/-ltermcap/-lncurses/g' configure
35 %build
36 %configure
37 make %{?_smp_mflags}
40 %install
41 # make install uses hardcoded /usr/bin etc paths, so we must do this DIY
42 rm -rf $RPM_BUILD_ROOT
43 make install DESTDIR=$RPM_BUILD_ROOT
45 # for %%doc
46 rm -fr $RPM_BUILD_ROOT%{_datadir}/%{name}
47 mv doc/acs-tutorial doc/gnucap-tutorial
48 rm examples/Makefile*
51 %clean
52 rm -rf $RPM_BUILD_ROOT
55 %files
56 %defattr(-,root,root,-)
57 %doc doc/COPYING doc/history doc/relnotes.* doc/gnucap-tutorial doc/whatisit
58 %doc man/gnucap-man.pdf examples
59 %{_bindir}/%{name}*
60 %{_mandir}/man1/%{name}.1.gz
63 %changelog
64 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.35-20101201
65 - Repackaged for MeeGo
67 * Wed Jan 13 2010 Rakesh Pandit <rakesh@fedoraproject.org> - 0.35-7
68 - Fixed URL and Source0
70 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.35-6
71 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
73 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.35-5
74 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
76 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.35-4
77 - Autorebuild for GCC 4.3
79 * Tue Jan 8 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.35-3
80 - Fix building with gcc 4.3
82 * Tue Aug 7 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.35-2
83 - Update License tag for new Licensing Guidelines compliance
85 * Wed Feb 14 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.35-1
86 - New upstream release 0.35
87 - Link with -lncurses instead of -ltermcap (bz 226771)
89 * Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.34-3
90 - FE6 Rebuild
92 * Thu Apr 27 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.34-2
93 - add %%{?_smp_mflags} to the make command (bz 189699)
95 * Sun Apr 23 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.34-1
96 - Initial spec file