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