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 %pyrequires_eq python-libs
14 Requires: python-pygtk-gtk >= 1.99.16
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 PythonCAD is an open-source CAD package built designed around Python.
20 As such, it aims to be a fully scriptable and customizable CAD
21 program. It is initially designed to run under Linux, one of the BSD
25 PythonCAD jest wolnodostêpnym pakietem CAD zbudowanym w oparciu o
26 Pythona. Dlatego ma byæ w pe³ni skryptowalnym i konfigurowalnym
27 programem CAD. Pocz±tkowo jest przeznaczony do uruchamiania pod
28 Linuksem, jedn± z wersji BSD lub Uniksem.
31 %setup -q -n %{name}-%{_ver}
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_bindir}
40 python setup.py install \
42 --root=$RPM_BUILD_ROOT
44 install gtkpycad.py $RPM_BUILD_ROOT%{_bindir}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %doc README PKG-INFO NEWS
52 %attr(755,root,root) %{_bindir}/*
53 %dir %{py_sitescriptdir}/%{name}
54 %dir %{py_sitescriptdir}/%{name}/Generic
55 %{py_sitescriptdir}/%{name}/Generic/*.py[oc]
56 %dir %{py_sitescriptdir}/%{name}/Interface
57 %dir %{py_sitescriptdir}/%{name}/Interface/Gtk
58 %{py_sitescriptdir}/%{name}/Interface/Gtk/*.py[oc]
59 %dir %{py_sitescriptdir}/%{name}/Interface/Cocoa
60 %{py_sitescriptdir}/%{name}/Interface/Cocoa/*.py[oc]
61 %{py_sitescriptdir}/%{name}/Interface/*.py[oc]