%define pcbver 20060822 Name: pcb Version: 0.%{pcbver} Release: 5%{?dist} Summary: An interactive printed circuit board editor License: GPL Group: Applications/Engineering URL: http://pcb.sourceforge.net BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: tcl, bison, flex, gawk, ImageMagick, gtk2-devel, gd-devel, fontconfig-devel BuildRequires: cups, tetex-latex, libICE-devel, desktop-file-utils Requires: m4 Source0: http://optusnet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{pcbver}.tar.gz Source1: %{name}.desktop Source2: %{name}.png %description PCB is an interactive printed circuit board editor for the X window system. PCB includes a rats nest feature, design rule checking, and can provide industry standard RS-274-X (Gerber), NC drill, and centroid data (X-Y data) output for use in the board fabrication and assembly process. PCB offers high end features such as an autorouter and trace optimizer which can tremendously reduce layout time. %package doc Summary: Documentation for PCB, an interactive printed circuit board editor Group: Documentation Requires: pcb = %{version} Requires(post): /sbin/install-info Requires(preun): /sbin/install-info %description doc This package contains the documentation of pcb in html, pdf, postscript and info format. %prep %setup -q -n %{name}-%{pcbver} %build WISH=/usr/bin/wish export WISH CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --bindir=%{_bindir} \ --datadir=%{_datadir} --includedir=%{_includedir} \ --libdir=%{_libdir} --mandir=%{_mandir} --sysconfdir=%{_sysconfdir} \ --infodir=%{_infodir} make %{?_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=$RPM_BUILD_ROOT install rm $RPM_BUILD_ROOT/%{_datadir}/pcb/tools/gerbertotk.c chmod 0755 $RPM_BUILD_ROOT/%{_datadir}/pcb/tools/{PCB2HPGL,Merge*,tgo2pcb.tcl} rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/ cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png desktop-file-install --vendor fedora \ --add-category Engineering \ --add-category X-Fedora \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE1} %clean rm -rf %{buildroot} %post doc /sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/pcb.info.gz >/dev/null 2>&1 touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %preun doc if [ $1 = 0 ]; then /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/pcb.info.gz >/dev/null 2>&1 fi touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files %defattr(-, root, root, -) %doc AUTHORS COPYING README README.* NEWS ChangeLog %{_datadir}/applications/fedora-%{name}.desktop %{_bindir}/* %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_datadir}/%{name}/CreateLibrary* %{_datadir}/%{name}/ListLibraryContents.sh %{_datadir}/%{name}/Pcb %{_datadir}/%{name}/QueryLibrary.sh %{_datadir}/%{name}/default_font %{_datadir}/%{name}/examples/ %{_datadir}/%{name}/m4/ %{_datadir}/%{name}/newlib/ %{_datadir}/%{name}/pcb-menu.res %{_datadir}/%{name}/pcblib* %{_datadir}/%{name}/qfp* %{_datadir}/%{name}/tools/ %files doc %defattr(-, root, root, 0755) %{_infodir}/* %{_mandir}/man1/* %{_datadir}/%{name}/pad* %{_datadir}/%{name}/pcb.* %{_datadir}/%{name}/puller.* %{_datadir}/%{name}/refcard.* %{_datadir}/%{name}/thermal* %{_datadir}/%{name}/tutorial/ %Changelog * Fri Sep 01 2006 Chitlesh Goorah - 0.20060822-5 - release for devel * Fri Sep 01 2006 Chitlesh Goorah - 0.20060822-4 - Added m4 as requires: to fix the error msg: - can't find default font-symbol-file 'default_font' * Fri Aug 25 2006 Chitlesh Goorah - 0.20060822-3 - release for devel * Fri Aug 25 2006 Chitlesh Goorah - 0.20060822-2 - release for FC5 and minor fixes * Fri Aug 25 2006 Chitlesh Goorah - 0.20060822-1 - updated to 20060822's snapshot * Wed Jul 11 2006 Chitlesh Goorah - 0.20060422-4 - pcbver corrected in pcb.desktop * Sun Jul 09 2006 Chitlesh Goorah - 0.20060422-3 - fixed the icon of pcb * Sun Jul 09 2006 Chitlesh Goorah - 0.20060422-2 - fixed E: pcb info-dir-file /usr/share/info/dir - added /sbin/install-info as requires for %%post and %%preun - added icon and treated GTK+ icon cache as required * Thu Jul 06 2006 Chitlesh Goorah - 0.20060422-1 - New upstream release 20060422 - Minor fixes to work under mock * Wed Apr 19 2006 - 0.20060414-1 - Let there be pcb packaging.