%define with_tcl 0 Summary: Electronic circuit schematic drawing program Name: xcircuit Version: 3.1.34 Release: 1_mlb1 License: GPL Group: Applications/Engineering Source: http://xcircuit.ece.jhu.edu/archive/xcircuit-%{version}.tgz URL: http://xcircuit.ece.jhu.edu/ BuildRoot: /var/tmp/%{name}-root %if %{with_tcl} Requires: tcl tk %endif Patch1: xcircuit-3.1.34.patch %description Xcircuit is a general-purpose drawing program and also a specific-purpose CAD program for circuit schematic drawing and schematic capture. Output is PostScript. %if %{with_tcl} This is Tcl/Tk version. %endif %prep %setup -q %patch1 -p1 -b .orig rm -rf examples/CVS %build aclocal automake %if %{with_tcl} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --with-tcl make tcl %else ./configure --prefix=%{_prefix} --mandir=%{_mandir} make %endif %install rm -rf ${RPM_BUILD_ROOT} %if %{with_tcl} make install-tcl DESTDIR=${RPM_BUILD_ROOT} %else make install DESTDIR=${RPM_BUILD_ROOT} %endif %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc COPYRIGHT CHANGES TODO README README.notes README.ISOLatin2 %if %{with_tcl} %doc README.Tcl %endif %doc examples %{_bindir}/xcircuit %{_libdir}/xcircuit-3.1 %if ! %{with_tcl} %{_mandir}/man1/xcircuit.1* %endif %changelog * Sat Jan 10 2004 KAWAMURA Masao - update 3.1.34 * Tue Jan 6 2004 KAWAMURA Masao - build for MLD Science