[printrun] Make subpackages other than common noarch on F21+

Miro Hrončok churchyard at fedoraproject.org
Fri Dec 27 21:56:23 UTC 2013


commit 21b3e82bd046dd311a573c08c976f3b44e8d62cc
Author: Miro Hrončok <miro at hroncok.cz>
Date:   Fri Dec 27 21:26:16 2013 +0100

    Make subpackages other than common noarch on F21+

 printrun.spec |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/printrun.spec b/printrun.spec
index 9da40f3..bd9fbfd 100644
--- a/printrun.spec
+++ b/printrun.spec
@@ -1,7 +1,7 @@
 Name:           printrun
 Version:        2013.10.19
 %global tag     %{name}-20131019
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        RepRap printer interface and tools
 License:        GPLv3+
 Group:          Applications/Engineering
@@ -60,6 +60,10 @@ Summary:        CLI interface for RepRap
 Requires:       pyserial
 Requires:       skeinforge
 Requires:       %{name}-common = %{version}-%{release}
+%if 0%{?fedora} < 21
+# not to change arch in current releases
+BuildArch:      noarch
+%endif
 
 %description -n pronsole
 Pronsole is a featured command line G-code sender.
@@ -73,6 +77,9 @@ It is a part of Printrun.
 Summary:        Web interface for RepRap
 Requires:       python-tornado
 Requires:       pronsole = %{version}-%{release}
+%if 0%{?fedora} < 21
+BuildArch:      noarch
+%endif
 
 %description -n prontserve
 Pronserve is a featured web G-code sender.
@@ -89,6 +96,9 @@ Requires:       python-cairosvg
 Requires:       python-pyglet
 Requires:       simarrange
 Requires:       pronsole = %{version}-%{release}
+%if 0%{?fedora} < 21
+BuildArch:      noarch
+%endif
 
 %description -n pronterface
 Pronterface is a featured G-code sender with graphical user interface.
@@ -103,6 +113,9 @@ Requires:       wxPython
 Requires:       %{name}-common = %{version}-%{release}
 Requires:       python-pyglet
 Requires:       simarrange
+%if 0%{?fedora} < 21
+BuildArch:      noarch
+%endif
 
 %description -n plater
 Plater is a GUI tool to prepare printing plate from STL files for ReRap.
@@ -141,7 +154,7 @@ for FILE in *.py; do
 done
 
 # Backward compatibility symlinks
-%if 0%{?fedora} && 0%{?fedora} < 20
+%if 0%{?fedora} < 20
 for FILE in *; do
   ln -sf $FILE $FILE.py
 done
@@ -218,6 +231,9 @@ rm -f %{buildroot}%{_bindir}/prontserve*
 %doc README* COPYING
 
 %changelog
+* Fri Dec 27 2013 Miro Hrončok <mhroncok at redhat.com> - 2013.10.19-8
+- Make subpackages other than common noarch on F21+
+
 * Fri Dec 27 2013 Miro Hrončok <mhroncok at redhat.com> - 2013.10.19-7
 - Add AppData
 


More information about the scm-commits mailing list