rpms/pcb/devel pcb.spec,NONE,1.1

Peter Jones (pjones) fedora-extras-commits at redhat.com
Thu Apr 20 23:29:04 UTC 2006


Author: pjones

Update of /cvs/extras/rpms/pcb/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3214

Added Files:
	pcb.spec 
Log Message:
add a spec file.  wheeee.



--- NEW FILE pcb.spec ---
Summary:	An interactive printed circuit board editor
Name:		pcb
%define		pcbver 20060414
Version:	0.%{pcbver}
Release:	1
License:	GPL
Group:		Applications/Engineering
URL:		http://pcb.sourceforge.net
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	tcl, bison, flex, gawk, netpbm-progs, ImageMagick
BuildRequires:	m4, gtk2-devel, pkgconfig, glib2-devel, gd-devel
BuildRequires:	libpng-devel, libjpeg-devel, fontconfig-devel, freetype-devel
BuildRequires:	zlib-devel, cups, tetex-latex, libICE-devel
Source0:	http://prdownloads.sourceforge.net/pcb/pcb-%{pcbver}.tar.gz

%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. 

%prep
%setup -q -n pcb-%{pcbver}

%build
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}

%clean
rm -rf %{buildroot}

%post
/sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/pcb.info.gz >/dev/null 2>&1

%preun
if [ $1 = 0 ]; then
  /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/pcb.info.gz >/dev/null 2>&1
fi

%files
%defattr(-, root, root)
%doc AUTHORS COPYING README README.* NEWS ChangeLog
%{_mandir}/man1/*
%{_datadir}/pcb*
%{_bindir}/*
%{_infodir}/*

%changelog
* Wed Apr 19 2006 <pjones at redhat.com> - 0.20060414-1
- Let there be pcb packaging.




More information about the fedora-extras-commits mailing list