File magic.spec of Package magic

Name:           magic
Version:        7.5.186
Release:        1
License:        GPL
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  blt tcl-devel tk-devel xorg-x11-devel xgl tcsh compat-libstdc++ libstdc++ libstdc++-devel
%ifarch x86_64
BuildRequires:  tcl-32bit tcl tk-32bit tk
%endif
Requires:       blt tcl tk xgl tcsh compat-libstdc++ libstdc++
URL:            http://www.opencircuitdesign.com/magic/
#Source:http://opencircuitdesign.com/magic/archive/%{name}-%{version}.tgz
Source:         %{name}-%{version}.tgz
Packager:       Aaron Heck <aaron.heck@ubc.ca>
Group:          Productivity/Scientific/Electronics
Summary:        Magic VLSI
Patch0:		magic.tclsh.patch

%description
Magic is a venerable VLSI layout tool

%prep
%setup -q
%patch0 -p1

%build
#./configure --exec-prefix=/usr
%configure

make

%install
#make DESTDIR=$RPM_BUILD_ROOT install
%makeinstall

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%{_bindir}/magic
%{_bindir}/spice2sim
%{_bindir}/ext2sim
%{_bindir}/ext2spice
%{_libdir}/magic
%{_mandir}/man1/magic.1.gz
%{_mandir}/man1/ext2spice.1.gz
%{_mandir}/man1/extcheck.1.gz
%{_mandir}/man1/ext2sim.1.gz
%{_mandir}/man5/sim.5.gz
%{_mandir}/man5/cmap.5.gz
%{_mandir}/man5/glyphs.5.gz
%{_mandir}/man5/mag.5.gz
%{_mandir}/man5/net.5.gz
%{_mandir}/man5/dlys.5.gz
%{_mandir}/man5/dstyle.5.gz
%{_mandir}/man5/displays.5.gz
%{_mandir}/man5/ext.5.gz


%changelog
* Sun Aug 30 2009 - aaron.heck@ubc.ca
- Version bump 7.5.186
* Tue Feb 19 2008 - steve.cundy@ubc.ca
- Initial build of magic on the OBS
openSUSE Build Service is sponsored by