1 %include /usr/lib/rpm/macros.python
2 Summary: An open-source CAD package built designed around Python
6 %define _ver %(echo %{version} | tr _ -)
9 Group: Applications/Engineering
10 Source0: http://www.pythoncad.org/releases/%{name}-%{_ver}.tar.bz2
11 URL: http://www.pythoncad.org/
13 Requires: python-pygtk-gtk >= 1.99.16
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 PythonCAD is an open-source CAD package built designed around Python. As
18 such, it aims to be a fully scriptable and customizable CAD program. It
19 is initially designed to run under Linux, one of the BSD flavors, or Unix.
24 %setup -q -n %{name}-%{_ver}
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_bindir}
33 python setup.py install \
35 --root=$RPM_BUILD_ROOT
37 install gtkpycad.py $RPM_BUILD_ROOT%{_bindir}
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
44 %doc README PKG-INFO NEWS
45 %attr(755,root,root) %{_bindir}/*
46 %{py_sitedir}/%{name}*