summaryrefslogtreecommitdiff
path: root/z80ex.spec
blob: 03a3553afd1074a663daa772adf2cf84ab1613c2 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Summary:	ZiLOG Z80 CPU emulator
Summary(pl.UTF-8):	Emulator procesora ZiLOG Z80
Name:		z80ex
Version:	1.1.21
Release:	1
License:	GPL v2+
Group:		Libraries
Source0:	http://downloads.sourceforge.net/z80ex/%{name}-%{version}.tar.gz
# Source0-md5:	92ab8d8f45fd7b448075b820013a5f97
URL:		http://z80ex.sourceforge.net/
BuildRequires:	cmake >= 2.8
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Z80Ex is a ZiLOG Z80 CPU emulator.

Features:
- precise opcode emulation (documented & undocumented)
- exact timings for each opcode (including I/O operations)
- full support for all interrupt modes
- any number of virtual CPUs may be created
- portable: written in pure ANSI C
- builds as a library with simple callback-based API
- disassembler included

%description -l pl.UTF-8
Z80Ex to emulator procesora ZiLOG Z80.

Możliwości:
- precyzyjna emulacja instrukcji (udokumentowanych i nie)
- dokładne czasy dla wszystkich instrukcji (wraz z operacjami we/wy)
- pełna obsługa wszystkich trybów przerwań
- możliwość utworzenia dowolnej liczby wirtualnych procesorów
- przenośność - napisany w czystym ANSI C
- budowanie jako biblioteka z prostym API opartym na wywołaniach
  zwrotnych
- dołączony disasembler

%package devel
Summary:	Z80Ex header files
Summary(pl.UTF-8):	Pliki nagłówkowe Z80Ex
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description devel
Header files for Z80Ex libraries.

%description devel -l pl.UTF-8
Pliki nagłówkowe bibliotek Z80Ex.

%package static
Summary:	Static Z80Ex libraries
Summary(pl.UTF-8):	Biblioteki statyczne Z80Ex
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static Z80Ex libraries.

%description static -l pl.UTF-8
Biblioteki statyczne Z80Ex.

%prep
%setup -q

%build
install -d build
cd build
%cmake ..

%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}

%{__make} -C build install \
	DESTDIR=$RPM_BUILD_ROOT

install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc Changelog README TODO
%attr(755,root,root) %{_libdir}/libz80ex.so.1.1.21
%attr(755,root,root) %ghost %{_libdir}/libz80ex.so.1
%attr(755,root,root) %{_libdir}/libz80ex_dasm.so.1.1.21
%attr(755,root,root) %ghost %{_libdir}/libz80ex_dasm.so.1

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libz80ex.so
%attr(755,root,root) %{_libdir}/libz80ex_dasm.so
%{_includedir}/z80ex
%{_examplesdir}/%{name}-%{version}

%files static
%defattr(644,root,root,755)
%{_libdir}/libz80ex.a
%{_libdir}/libz80ex_dasm.a