aboutsummaryrefslogtreecommitdiff
path: root/qtmips.spec
blob: 21dedfda9a9321d7f6884437d7e615bddb8a2666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# 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 

%if 0%{?suse_version}
BuildRequires: libqt5-qtbase-devel
BuildRequires: libelf-devel
%endif

%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?scientificlinux_version}
BuildRequires: gcc-c++
BuildRequires: qt5-qtbase-devel >= 5.3
BuildRequires: elfutils-libelf-devel
Requires: qt5-qtbase
%endif


# 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 <pisa@cmp.felk.cvut.cz - 1.0-1
- Initial attemp to package QtMips by Open Build Service.