Name: printrun %global year 2015 %global month 03 %global day 10 Version: %{year}.%{month}.%{day} %global tag %{name}-%{year}%{month}%{day} Release: 5%{?dist} Summary: RepRap printer interface and tools # AppData is CC0 License: GPLv3+ and CC0 Group: Applications/Engineering URL: https://github.com/kliment/Printrun Source0: https://github.com/kliment/Printrun/archive/%{tag}.tar.gz # https://bugzilla.redhat.com/show_bug.cgi?id=1231518 Patch0: %{name}-gtk3.patch BuildRequires: Cython BuildRequires: python2-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: pyserial Requires: pronterface = %{version}-%{release} Requires: pronsole = %{version}-%{release} Requires: plater = %{version}-%{release} %description Printrun is a set of G-code sending applications for RepRap. It consists of printcore (dumb G-code sender), pronsole (featured command line G-code sender), pronterface (featured G-code sender with graphical user interface), and a small collection of helpful scripts. This package installs whole Printrun. ############################################### %package common Summary: Common files for Printrun %description common Printrun is a set of G-code sending applications for RepRap. This package contains common files. ############################################### %package -n pronsole Summary: CLI interface for RepRap Requires: pyserial Requires: %{name}-common = %{version}-%{release} # So that it just works Requires: 3dprinter-udev-rules BuildArch: noarch %description -n pronsole Pronsole is a featured command line G-code sender. It controls the ReRap printer. It is a part of Printrun. ################################################ %package -n pronterface Summary: GUI interface for RepRap Requires: wxPython Requires: numpy Requires: python-cairosvg Requires: python-psutil Requires: python-pyglet Requires: simarrange Requires: pronsole = %{version}-%{release} # So that it just works Requires: 3dprinter-udev-rules BuildArch: noarch %description -n pronterface Pronterface is a featured G-code sender with graphical user interface. It controls the ReRap printer. It is a part of Printrun. ############################################### %package -n plater Summary: RepRap STL plater Requires: wxPython Requires: %{name}-common = %{version}-%{release} Requires: numpy Requires: python-psutil Requires: python-pyglet Requires: simarrange BuildArch: noarch %description -n plater Plater is a GUI tool to prepare printing plate from STL files for ReRap. It is a part of Printrun. ############################################### %prep %setup -qn Printrun-%{tag} %patch0 -p0 # remove bundled skeinforge link sed -i 's|python skeinforge/skeinforge_application/skeinforge.py|set-your-slicer-in-settings|' %{name}/settings.py sed -i 's|python skeinforge/skeinforge_application/skeinforge_utilities/skeinforge_craft.py|set-your-slicer-in-settings|' %{name}/settings.py # sed upstream's desktop files to remove .py extensions from Exec sed -i 's/.py//' *.desktop %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build # rebuild locales cd locale for FILE in * do msgfmt $FILE/LC_MESSAGES/plater.po -o $FILE/LC_MESSAGES/plater.mo || : msgfmt $FILE/LC_MESSAGES/pronterface.po -o $FILE/LC_MESSAGES/pronterface.mo || : done cd .. %install %{__python} setup.py install --skip-build --prefix %{buildroot}%{_prefix} cd %{buildroot}%{_bindir} for FILE in *.py; do mv -f $FILE ${FILE%.py} done cd - # desktop files desktop-file-validate %{buildroot}%{_datadir}/applications/pronterface.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/pronsole.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/plater.desktop # locales mkdir -p %{buildroot}%{_datadir}/locale cp -ar %{buildroot}%{_datadir}/pronterface/locale/* %{buildroot}%{_datadir}/locale rm -rf %{buildroot}%{_datadir}/pronterface/locale ln -s -f %{_datadir}/locale/ %{buildroot}%{_datadir}/pronterface/ # the app expects the locale folder in here %{find_lang} pronterface %{find_lang} plater %files %doc README* COPYING %files common %{python_sitearch}/%{name} %{python_sitearch}/Printrun-*.egg-info %{_bindir}/printcore* %{_datadir}/pixmaps/plater.png %doc README* COPYING %files -n pronsole %{_bindir}/pronsole* %{_datadir}/pixmaps/pronsole.png %{_datadir}/applications/pronsole.desktop %if 0%{?fedora} < 21 %dir %{_datadir}/appdata %endif %{_datadir}/appdata/pronsole.appdata.xml %doc README* COPYING %files -n pronterface -f pronterface.lang %{_bindir}/pronterface* %{_datadir}/pronterface %{_datadir}/pixmaps/pronterface.png %{_datadir}/applications/pronterface.desktop %if 0%{?fedora} < 21 %dir %{_datadir}/appdata %endif %{_datadir}/appdata/pronterface.appdata.xml %doc README* COPYING %files -n plater -f plater.lang %{_bindir}/plater* %{_datadir}/applications/plater.desktop %if 0%{?fedora} < 21 %dir %{_datadir}/appdata %endif %{_datadir}/appdata/plater.appdata.xml %doc README* COPYING %changelog * Tue Jul 19 2016 Fedora Release Engineering - 2015.03.10-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Fri Mar 25 2016 Miro Hrončok - 2015.03.10-4 - Require 3dprinter-udev-rules * Thu Feb 04 2016 Fedora Release Engineering - 2015.03.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jul 05 2015 Miro Hrončok - 2015.03.10-2 - Add patch to resolve GTK3 issues (by Scott Talbert) (#1231518) * Fri Jun 19 2015 Miro Hrončok - 2015.03.10-1 - Update to 2015.03.10 - Removed no longer needed simarrange patch * Thu Jun 18 2015 Fedora Release Engineering - 2014.08.01-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Dec 29 2014 Miro Hrončok - 2014.08.01-1 - Update to 2014.08.01 (minor upstream fix) - Remove prontserve from the spec - Remove Fedora <> 20 conditions - pronterface and plater require python-psutil and numpy (#1171319) - the slicer command is now in different file * Sat Oct 25 2014 Miro Hrončok - 2014.07.30-3 - Do not longer depend on skeinforge, as it appears nobody uses it * Sun Aug 17 2014 Fedora Release Engineering - 2014.07.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Jul 30 2014 Miro Hrončok - 2014.07.30-1 - New version - Remove merged patches * Sat Jun 07 2014 Fedora Release Engineering - 2014.01.26-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Mar 19 2014 Miro Hrončok - 2014.01.26-3 - Use PNG icons, so AppData works * Mon Mar 17 2014 Miro Hrončok - 2014.01.26-2 - Fix 1077126 * Wed Mar 05 2014 Miro Hrončok - 2014.01.26-1 - New version - Do not ship our own desktop and appdata files, now it's in tarball - Add macros to simplify the version to gittag conversion - Remove merged patches and rebased simmarange patch - Build require pyserial - sed upstream's desktop files to remove .py * Fri Dec 27 2013 Miro Hrončok - 2013.10.19-8 - Make subpackages other than common noarch on F21+ * Fri Dec 27 2013 Miro Hrončok - 2013.10.19-7 - Add AppData * Fri Nov 15 2013 Miro Hrončok - 2013.10.19-6 - Use system's simarrange in plater * Wed Nov 13 2013 Miro Hrončok - 2013.10.19-5 - Finally, this seems like a proper fix for 438 * Sun Nov 10 2013 Miro Hrončok - 2013.10.19-4 - Go back to our workaround * Sun Nov 10 2013 Miro Hrončok - 2013.10.19-3 - Bad upstream "proper" fix for 438 * Tue Oct 29 2013 Miro Hrončok - 2013.10.19-2 - Added patch to workaround upstream issue 438 * Sat Oct 19 2013 Miro Hrončok - 2013.10.19-1 - New upstream release - Switch to new versioning, drop commit hashes from version/release - Upstream now has proper entrypoints, so entire %%install is redone * Fri Sep 06 2013 Miro Hrončok - 0.0-32.20130711gitb8f549b - Fixed #1004973 (%%{name}-missing-plater-import.patch) - In F <= 19 added backwards compatibility .py symlinks to bindir - Added asterisk at the end of bindir content in %%files to also match those symlinkss * Sun Aug 11 2013 Miro Hrončok - 0.0-31.20130711gitb8f549b - No longer have .py named scripts in bindir * Sat Aug 10 2013 Miro Hrončok - 0.0-30.20130711gitb8f549b - Fix bad patch * Sun Aug 04 2013 Fedora Release Engineering - 0.0-29.20130711gitb8f549b - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 24 2013 Miro Hrončok - 0.0-28.20130711gitb8f549b - New upstream tag release - Corrected bogus date in %%changelog - Flush patch no longer needed - No longer NoArch - BR added Cython * Thu Jun 20 2013 Miro Hrončok - 0.0-27.20130604git80e313d - Added patch to solve upstream issue 402 * Tue Jun 18 2013 Miro Hrončok - 0.0-26.20130604git80e313d - Upstream released tag release 20130604 - Pyglet 1.2 issue fixed in upstream, removed patch - Prepared spec for prontserve but do not produce the package yet (not all deps satisfied) * Tue Jun 18 2013 Miro Hrončok - 0.0-25.20130123git71e5da0 - When printrun is installed and plater not, don't crash when clicking Compose - Require pyglet for plater for F18+ * Fri Jun 07 2013 Miro Hrončok - 0.0-24.20130123git71e5da0 - Fixed Pyglet 1.2 issue (#868266) * Thu Feb 14 2013 Fedora Release Engineering - 0.0-23.20130123git71e5da0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jan 23 2013 Miro Hrončok - 0.0-22.20130123git71e5da0 - Pull request merged - Updated to new commit - Removed pacth (no longer needed) * Wed Jan 23 2013 Miro Hrončok - 0.0-21.20130113git5897fbc - Handle UTF-8 encode better in patch * Wed Jan 23 2013 Miro Hrončok - 0.0-20.20130113git5897fbc - Removing UTF-8 removal from patch * Sat Jan 19 2013 Miro Hrončok - 0.0-19.20130113git5897fbc - Removed run-time deps, that are resolved automatically * Sat Jan 19 2013 Miro Hrončok - 0.0-18.20130113git5897fbc - Added patch from my pull request * Sun Jan 13 2013 Miro Hrončok - 0.0-17.20130113git5897fbc - New "version" (bugfix) * Sun Jan 13 2013 Miro Hrončok - 0.0-16.20130113git094dffa - New upstream "version", where everything is GPLv3+ - pronsole.ico and gcoder.py now part of setup.py - Skeinforge path changing moved from %%install to %%prep - Commented macros in changelog - Use skeinforge launchers in default settings - Pronterface lang moved from common to pronterface, is not needed by pronsole any more * Wed Jan 09 2013 Miro Hrončok - 0.0-15.20121103git6fa4766 - Updated to respect new GitHub rule * Mon Dec 31 2012 Miro Hrončok - 0.0-14.20121103git6fa47668f2 - Changed location of skeinforge from %%{_datadir}/%%{name}/ to %%{python_sitelib}/%%{name} * Sun Dec 30 2012 Miro Hrončok - 0.0-13.20121103git6fa47668f2 - Do not download the desktop files from my GitHub * Fri Nov 23 2012 Miro Hrončok - 0.0-12.20121103git6fa47668f2 - Fixing a source mistake - Redone, using setup.py now * Fri Nov 23 2012 Miro Hrončok - 0.0-11.20121103git6fa47668f2 - New upstream "version" (merge from experimetal) - Commented macros in comments - Playing a bit with attr * Mon Oct 29 2012 Miro Hrončok - 0.0-10-20120924gitb6935b93 - Switched generic names and names in desktop files - Don't use rm, cp and ln -s macros * Tue Oct 09 2012 Miro Hrončok - 0.0-9-20120924gitb6935b93 - updated bash lounchers * Tue Oct 09 2012 Miro Hrončok - 0.0-8-20120924gitb6935b93 - ln -s skeinforge - printrun requires exact version and release * Thu Oct 04 2012 Miro Hrončok - 0.0-7-20120924gitb6935b93 - New sources links * Sat Sep 22 2012 Miro Hrončok - 0.0-6-20120924gitb6935b93 - New commits, inlude the license * Sat Sep 22 2012 Miro Hrončok - 0.0-5-20120921gitdceaf26f - launching scripts now pass the params * Fri Sep 21 2012 Miro Hrončok - 0.0-4-20120921gitdceaf26f - Build gettext * Fri Sep 21 2012 Miro Hrončok - 0.0-3-20120921gitdceaf26f - BuildRequires: desktop-file-utils * Fri Sep 21 2012 Miro Hrončok - 0.0-2-20120921gitdceaf26f - Language files correctly added * Fri Sep 21 2012 Miro Hrončok - 0.0-1-20120921gitdceaf26f - New package