aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-05 14:27:19 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-05 14:27:19 +0200
commitb1531bc18baee8fd7e7029753c17b46ef6d612dc (patch)
tree270415d79a3cc0f51f163631162a552ca7bc4aa6
parent2fea133bc9d23a75ac765ca5fdc00b50a65086f1 (diff)
downloadqtmips-b1531bc18baee8fd7e7029753c17b46ef6d612dc.tar.gz
qtmips-b1531bc18baee8fd7e7029753c17b46ef6d612dc.tar.bz2
qtmips-b1531bc18baee8fd7e7029753c17b46ef6d612dc.zip
Minor update of RPM packaging.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-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}