Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37741625
en ru br
ALT Linux repos
5.0: 0.1.36-alt2
4.1: 0.1.36-alt1.1
4.0: 0.1.35-alt1
3.0: 0.1.23-alt1

Group :: Graphics
RPM: PythonCAD

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: PythonCAD
Version: 0.1.36
Release: alt2

%define tarname %name-DS1-R36

Summary: An open-source CAD package built designed around Python

License: GPL
Group: Graphics
Url: http://www.pythoncad.org/

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://www.pythoncad.org/releases/%tarname.tar.bz2

# manually removed: eric

# Automatically added by buildreq on Sat Jan 06 2007
BuildRequires: python-dev python-modules-encodings

BuildPreReq: rpm-build-compat >= 1.2
%add_python_req_skip AppKit Foundation Generic PyObjCTools objc PythonCAD
AutoProv: yes, nopython

BuildArch: noarch

%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.

%prep
%setup -q -n %tarname

%build
%python_build

%install
install -d %buildroot%_bindir
%python_install

install gtkpycad.py %buildroot%_bindir/pycad
mkdir -p %buildroot{%_pixmapsdir,%_sysconfdir/pythoncad,%_desktopdir}
cp prefs.py %buildroot%_sysconfdir/pythoncad/
cat pythoncad.desktop | sed -e "s|gtkpycad.py|pycad|" > %buildroot%_desktopdir/%name.desktop
cp gtkpycad.png %buildroot%_pixmapsdir/

%files
%doc README NEWS
%_bindir/pycad
%python_sitelibdir/%name/
%_desktopdir/*
%_pixmapsdir/*
%_sysconfdir/pythoncad/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin