aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprepare-release4
-rw-r--r--qtmips.spec10
2 files changed, 11 insertions, 3 deletions
diff --git a/prepare-release b/prepare-release
index 9520832..9ad59cb 100755
--- a/prepare-release
+++ b/prepare-release
@@ -69,4 +69,8 @@ cp -xa . ../debian-test-build/qtmips-$V_TXT
cd ../debian-test-build/qtmips-$V_TXT || exit 1
+if [ -x /usr/lib/obs-build/changelog2spec ] ; then
+ /usr/lib/obs-build/changelog2spec debian/changelog >../qtmips.changes
+fi
+
dpkg-buildpackage
diff --git a/qtmips.spec b/qtmips.spec
index 7a312d0..ce4086b 100644
--- a/qtmips.spec
+++ b/qtmips.spec
@@ -22,7 +22,7 @@
Name: qtmips
Version: 0.7.1
Release: 0
-Summary: MIPS CPU simulator for education purposes with pipeline and cache visualization
+Summary: MIPS CPU simulator for education purposes
License: GPL-2.0-or-later
Group: System/Emulators/Other
URL: https://github.com/cvut/QtMips/
@@ -55,11 +55,15 @@ MIPS CPU simulator for education purposes with pipeline and cache visualization.
%setup -q
%build
-%qmake5 "CONFIG+=release" "CONFIG+=force_debug_info"
+%qmake5 "CONFIG+=release" \
+ CONFIG+="force_debug_info" \
+ QMAKE_CFLAGS+="%optflags" \
+ QMAKE_CXXFLAGS+="%optflags" \
+ QMAKE_STRIP="/bin/true"
#make %{?_smp_mflags} - do not use SMP for now, there can be problem with generated makefiles
+#%make_build - fails on openSUSE_Leap_42.3 and openSUSE_Leap_42.3_Ports
make
-
%install
mkdir -p %{buildroot}/%{_bindir}
install -m755 qtmips_gui/qtmips_gui %{buildroot}/%{_bindir}