1 Summary: An open-source CAD package built designed around Python
2 Summary(pl): Wolnodostêpny pakiet CAD oparty o Pythona
5 %define _ver %(echo %{version} | tr _ -)
8 Group: Applications/Engineering
9 Source0: http://www.pythoncad.org/releases/%{name}-%{_ver}.tar.bz2
10 # Source0-md5: 3bfeb558044591c485fd569961d8b5a8
11 URL: http://www.pythoncad.org/
12 BuildRequires: python-devel
13 Requires: python-pygtk-gtk >= 1.99.16
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 PythonCAD is an open-source CAD package built designed around Python.
19 As such, it aims to be a fully scriptable and customizable CAD
20 program. It is initially designed to run under Linux, one of the BSD
24 PythonCAD jest wolnodostêpnym pakietem CAD zbudowanym w oparciu o
25 Pythona. Dlatego ma byæ w pe³ni skryptowalnym i konfigurowalnym
26 programem CAD. Pocz±tkowo jest przeznaczony do uruchamiania pod
27 Linuksem, jedn± z wersji BSD lub Uniksem.
30 %setup -q -n %{name}-%{_ver}
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_bindir}
39 python setup.py install \
41 --root=$RPM_BUILD_ROOT
43 install gtkpycad.py $RPM_BUILD_ROOT%{_bindir}
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc README PKG-INFO NEWS
51 %attr(755,root,root) %{_bindir}/*
52 %dir %{py_sitescriptdir}/%{name}
53 %dir %{py_sitescriptdir}/%{name}/Generic
54 %{py_sitescriptdir}/%{name}/Generic/*.py[oc]
55 %dir %{py_sitescriptdir}/%{name}/Interface
56 %dir %{py_sitescriptdir}/%{name}/Interface/Gtk
57 %{py_sitescriptdir}/%{name}/Interface/Gtk/*.py[oc]
58 %dir %{py_sitescriptdir}/%{name}/Interface/Cocoa
59 %{py_sitescriptdir}/%{name}/Interface/Cocoa/*.py[oc]
60 %{py_sitescriptdir}/%{name}/Interface/*.py[oc]