Sisyphus repository
Last update: 17 january 2021 | SRPMs: 17781 | Visits: 20065302
en ru br
ALT Linux repos

Group :: Engineering
RPM: pycam

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: pycam
Version: 0.6.3
Release: alt1
Summary: Open Source CAM - Toolpath Generation for 3-Axis CNC machining
Group: Engineering
License: GPLv3+
BuildArch: noarch

Packager: Anton Midyukov <antohami at>

Source: %name-%version.tar
Patch: desktop-categories.patch
Buildrequires(pre): rpm-build-python
BuildRequires: python-devel python-module-setuptools
BuildRequires: ccache
BuildRequires: desktop-file-utils
BuildRequires: help2man
%add_python_req_skip ode
%add_python_req_skip openvoronoi
Requires: python-module-pygtkglext
Requires: inkscape
Requires: pstoedit
%py_requires guppy

# Needed because it owns the icon directories

Requires: icon-theme-hicolor

# Segmentation Fault with libfreeglut!!!

Requires: libGLUT

PyCAM is a toolpath generator for 3-axis CNC machining. It loads 3D
models in STL format or 2D contour models from DXF or SVG files. The
resulting GCode can be used with EMC2 or any other machine controller.

PyCAM supports a wide range of toolpath strategies for 3D models and
2D contour models.

%patch -p1

for f in ./*.{txt,TXT} ./Changelog; do
   iconv -f iso-8859-1 -t utf-8 $f |sed 's|\r||g' > $f.utf8
   touch -c -r $f $f.utf8
   mv $f.utf8 $f

pushd man


desktop-file-install  --dir=%buildroot%_desktopdir \

pushd %buildroot%python_sitelibdir/%name/
# remove shebang lines from top of module files
for lib in `find . -path "*.py"`; do
   echo $lib
   sed '/\/usr\/bin\/env/d' $lib > $ && \
       touch -r $lib $ && \
       mv $ $lib

# Install icons

install -pD -m 0644 share/mime/application-sla.svg \
install -pD -m 0644 share/mime/icons/32x32/application-sla.png \
install -pD -m 0644 share/mime/icons/64x64/application-sla.png \
install -pD -m 0644 share/mime/icons/128x128/application-sla.png \

# Install man page

install -pD -m 0644 man/pycam.1 %buildroot%_man1dir/pycam.1

%doc Changelog COPYING.TXT LICENSE.TXT technical_details.txt


Full changelog you can see here

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