diff -r 000000000000 -r 4f133201e207 gnucap/gnucap.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnucap/gnucap.spec Fri Mar 11 21:30:26 2011 +0100 @@ -0,0 +1,90 @@ +Name: gnucap +Version: 0.35 +Release: 7%{?dist} +Summary: The Gnu Circuit Analysis Package +Group: Applications/Engineering +License: GPLv2+ +URL: http://www.gnu.org/software/gnucap/ +Source0: http://www.gnucap.org/devel/gnucap-%{version}.tar.gz +Patch0: gnucap-0.34-debian.patch +Patch1: gnucap-0.35-gcc43.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: readline-devel + +%description +The primary component is a general purpose circuit simulator. It performs +nonlinear dc and transient analyses, fourier analysis, and ac analysis. Spice +compatible models for the MOSFET (level 1-7), BJT, and diode are included in +this release. Gnucap is not based on Spice, but some of the models have been +derived from the Berkeley models. 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 +%patch0 -p1 +%patch1 -p1 +# use ncurses instead of termcap (bz 226771) +sed -i 's/-ltermcap/-lncurses/g' configure + + +%build +%configure +make %{?_smp_mflags} + + +%install +# make install uses hardcoded /usr/bin etc paths, so we must do this DIY +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +# for %%doc +rm -fr $RPM_BUILD_ROOT%{_datadir}/%{name} +mv doc/acs-tutorial doc/gnucap-tutorial +rm examples/Makefile* + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc doc/COPYING doc/history doc/relnotes.* doc/gnucap-tutorial doc/whatisit +%doc man/gnucap-man.pdf examples +%{_bindir}/%{name}* +%{_mandir}/man1/%{name}.1.gz + + +%changelog +* Wed Jan 13 2010 Rakesh Pandit - 0.35-7 +- Fixed URL and Source0 + +* Fri Jul 24 2009 Fedora Release Engineering - 0.35-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 0.35-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Feb 19 2008 Fedora Release Engineering - 0.35-4 +- Autorebuild for GCC 4.3 + +* Tue Jan 8 2008 Hans de Goede 0.35-3 +- Fix building with gcc 4.3 + +* Tue Aug 7 2007 Hans de Goede 0.35-2 +- Update License tag for new Licensing Guidelines compliance + +* Wed Feb 14 2007 Hans de Goede 0.35-1 +- New upstream release 0.35 +- Link with -lncurses instead of -ltermcap (bz 226771) + +* Mon Aug 28 2006 Hans de Goede 0.34-3 +- FE6 Rebuild + +* Thu Apr 27 2006 Hans de Goede 0.34-2 +- add %%{?_smp_mflags} to the make command (bz 189699) + +* Sun Apr 23 2006 Hans de Goede 0.34-1 +- Initial spec file