Пакет flatcam: Specfile

Name: flatcam
Version: 8.5
Release: alt4.20190601
Summary: 2D Computer-Aided PCB Manufacturing
Group: Engineering
License: MIT
Url: https://bitbucket.org/jpcgt/flatcam.git
BuildArch: noarch

Packager: Anton Midyukov <antohami@altlinux.org>

Source: %name-%version.tar
Buildrequires(pre): rpm-build-python3
Buildrequires: python3-module-setuptools desktop-file-utils
Requires: python3-module-svg-path
Requires: python3-module-matplotlib-qt4

%add_python3_req_skip ToolDblSided ToolTransform ToolMeasurement

%description
FlatCAM is a program for preparing CNC jobs for making PCBs on
a CNC router. Among other things, it can take a Gerber file
generated by your favorite PCB CAD program, and create G-Code
for Isolation routing.

%prep
%setup

%build
%python3_build

%install
%python3_install

# Install icons
for x in 16 24 32 48 128; do
    install -pD -m 0644 share/flatcam_icon$x.png \
	%buildroot%_iconsdir/hicolor/$x'x'$x/apps/flatcam.png
done

### == desktop file
cat>%name.desktop<<END
[Desktop Entry]
Name=%name
Exec=%_bindir/%name
Icon=%name
Terminal=false
Type=Application
Categories=Development;Engineering;
END

desktop-file-install --dir=%buildroot%_desktopdir %name.desktop

%files
%doc LICENSE README.md
%_datadir/%name/
%_bindir/%name
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/%name.*
%python3_sitelibdir/*
%exclude %python3_sitelibdir/descartes

%changelog
* Sat Jun 01 2019 Vitaly Lipatov <lav@altlinux.ru> 8.5-alt4.20190601
- NMU: update to 46454c293a9b390c931b52eb6217ca47e13b0231
- build with python3

* Sun Sep 03 2017 Anton Midyukov <antohami@altlinux.org> 8.5-alt3.20170702
- Fix conflict with python-module-descartes.

* Sat Jul 29 2017 Anton Midyukov <antohami@altlinux.org> 8.5-alt2.20170702
- Added missing requires: python-module-matplotlib-qt4.

* Wed Jul 26 2017 Anton Midyukov <antohami@altlinux.org> 8.5-alt1.20170702
- Initial build for ALT Sisyphus.