-%include /usr/lib/rpm/macros.python
Summary: An open-source CAD package built designed around Python
-#Summary(pl):
+Summary(pl): Wolnodostêpny pakiet CAD oparty o Pythona
Name: PythonCAD
-Version: DS1_R5
+Version: DS1_R19
%define _ver %(echo %{version} | tr _ -)
-Release: 1
+Release: 3
License: GPL
Group: Applications/Engineering
Source0: http://www.pythoncad.org/releases/%{name}-%{_ver}.tar.bz2
+# Source0-md5: 3bfeb558044591c485fd569961d8b5a8
URL: http://www.pythoncad.org/
-BuildRequires: python
+BuildRequires: python-devel
+%pyrequires_eq python-libs
Requires: python-pygtk-gtk >= 1.99.16
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-PythonCAD is an open-source CAD package built designed around Python. As
-such, it aims to be a fully scriptable and customizable CAD program. It
-is initially designed to run under Linux, one of the BSD flavors, or Unix.
+PythonCAD is an open-source CAD package built designed around Python.
+As such, it aims to be a fully scriptable and customizable CAD
+program. It is initially designed to run under Linux, one of the BSD
+flavors, or Unix.
-#%description -l pl
+%description -l pl
+PythonCAD jest wolnodostêpnym pakietem CAD zbudowanym w oparciu o
+Pythona. Dlatego ma byæ w pe³ni skryptowalnym i konfigurowalnym
+programem CAD. Pocz±tkowo jest przeznaczony do uruchamiania pod
+Linuksem, jedn± z wersji BSD lub Uniksem.
%prep
%setup -q -n %{name}-%{_ver}
%defattr(644,root,root,755)
%doc README PKG-INFO NEWS
%attr(755,root,root) %{_bindir}/*
-%{py_sitedir}/%{name}*
+%dir %{py_sitescriptdir}/%{name}
+%dir %{py_sitescriptdir}/%{name}/Generic
+%{py_sitescriptdir}/%{name}/Generic/*.py[oc]
+%dir %{py_sitescriptdir}/%{name}/Interface
+%dir %{py_sitescriptdir}/%{name}/Interface/Gtk
+%{py_sitescriptdir}/%{name}/Interface/Gtk/*.py[oc]
+%dir %{py_sitescriptdir}/%{name}/Interface/Cocoa
+%{py_sitescriptdir}/%{name}/Interface/Cocoa/*.py[oc]
+%{py_sitescriptdir}/%{name}/Interface/*.py[oc]