%global date 20190103 %global vdate %(x=%{date}; echo "${x:0:4}-${x:4:2}-${x:6:2}") %global py_setup st-setup.py Name: dxf2gcode Version: %{date} Release: 1%{?dist} Summary: 2D drawings to CNC machine compatible G-Code converter License: GPLv3+ and MIT Url: https://sourceforge.net/p/dxf2gcode/wiki/Home/ Source0: https://sourceforge.net/projects/%{name}/files/%{name}-%{version}.zip BuildArch: noarch BuildRequires: /usr/bin/git BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: python3-devel BuildRequires: python3-qt5 BuildRequires: qt5-linguist %if 0%{?fedora} > 25 BuildRequires: %{py3_dist pyopengl} %else BuildRequires: python3-pyopengl %endif BuildRequires: python3-configobj Requires: /usr/bin/pdftops Requires: /usr/bin/pstoedit Requires: hicolor-icon-theme Requires: python3-qt5 %if 0%{?fedora} > 25 Requires: %{py3_dist pyopengl} %else Requires: python3-pyopengl %endif Requires: python3-configobj %description %{name} is a tool for converting 2D (DXF, PDF, PS) drawings to CNC machine compatible GCode. It has the following features: - Integration in EMC2, - Fully adjustable Postprocessor, - G0 moves reduction by route optimization, - Import of DXF and PDF, - Improved accuracy for splines import by Line and Arc's, - Mill parameter specification by layers, - Drag knife and lathe support, - Breaks a.k.a Tabs support, - AutoCAD Blocks and Inserts, - Multiple tools, - Multiple language support: English, German, French, Russian, - 3D viewer. %prep %autosetup -S git %build # regenerate *images5_rc.py and *ui5.py files python3 ./make_py_uic.py 5 # regenerate translation files lrelease-qt5 i18n/*.ts %py3_build %install %py3_install desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml %find_lang %{name} --with-qt --without-mo %files -f %{name}.lang %license COPYING %doc README.txt %{_bindir}/%{name} %{python3_sitelib}/* %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/i18n %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/* %{_datadir}/metainfo/*.appdata.xml %changelog * Thu Jan 03 2019 Damian Wrobel - 20190103-1 - Update to the latest available version * Thu Jul 12 2018 Fedora Release Engineering - 20170925-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro HronĨok - 20170925-4 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 20170925-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 11 2018 Igor Gnatenko - 20170925-2 - Remove obsolete scriptlets * Mon Sep 25 2017 Damian Wrobel - 20170925-1 - Update to the lastest available version. * Thu Sep 14 2017 Damian Wrobel - 20170915-1 - Drop upstream patches, - Use tarball generated by python3 st-setup.py sdist * Tue Sep 12 2017 Damian Wrobel - 20170503-2 - Add upstream fixes. * Wed Sep 06 2017 Damian Wrobel - 20170503-1 - Initial RPM release.