From b2f551889a10de5334e727b8f34007b388896161 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 21 Mar 2019 20:23:29 +0100 Subject: Initial attempt to package QtMips by Open Build Service. Build is available at https://build.opensuse.org/package/show/home:ppisa/qtmips Package builds for Fedora_29 already but Suse seems to be excluded for some reasons. The build for debian required qtmips.dsc, debian.changelog, debian.control and debian.rules. The last three are available in archive but OBS does not found them. Signed-off-by: Pavel Pisa --- qtmips.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 qtmips.spec diff --git a/qtmips.spec b/qtmips.spec new file mode 100644 index 0000000..411fdd3 --- /dev/null +++ b/qtmips.spec @@ -0,0 +1,70 @@ +# +# spec file for package qtmips +# +# -- Copyright omitted -- + +Name: qtmips + + +Version: 0.6.6 + + +Release: 0 + + +License: GPL-2.0+ + + +Group: Emulators + + +Summary: MIPS CPU simulator for education purposes with pipeline and cache visualization. + + +Url: https://github.com/cvut/QtMips/ + + +Source: qtmips-%{version}.tar.gz + + +BuildRequires: gcc-c++ +BuildRequires: qt5-qtbase-devel >= 5.3 +BuildRequires: elfutils-libelf-devel + +Requires: qt5-qtbase + +# Qt devel packages +%define qmake /usr/bin/qmake-qt5 +BuildRequires: cmake + + +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description + +MIPS CPU simulator for education purposes with pipeline and cache visualization. + +%prep + + +%setup -q -n %{name}-%{version} + +%build +%{qmake} "CONFIG+=release" "CONFIG+=force_debug_info" + +make + + +%install +mkdir -p %{buildroot}/%{_bindir} +install -m755 qtmips_gui/qtmips_gui %{buildroot}/%{_bindir} +install -m755 qtmips_cli/qtmips_cli %{buildroot}/%{_bindir} + +%files +%{_bindir}/qtmips_gui +%{_bindir}/qtmips_cli +%doc README.md LICENSE + +%changelog +* Thu 21 Mar 2019 Pavel Pisa