/
libspectrum.spec
81 lines (65 loc) · 2.35 KB
/
libspectrum.spec
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
%define major 8
%define libname %mklibname spectrum %{major}
%define devname %mklibname spectrum -d
Summary: Library to work with ZX Spectrum emulator files
Name: libspectrum
Version: 1.1.1
Release: 2
Group: System/Libraries
License: GPLv2+
Url: http://fuse-emulator.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
BuildRequires: bzip2-devel
BuildRequires: libgcrypt-devel >= 1.1.42
BuildRequires: pkgconfig(audiofile)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(zlib)
%description
libspectrum is a fairly simple library designed to make the handling
of various ZX Spectrum emulator-related file formats easy. So far it
handles:
* Snapshots: .z80, .szx, .sna (all read/write), .zxs, .sp., .snp and
+D snapshots (read only).
* Tape images: .tzx, .tap (read/write) and Warajevo .tap (read only).
* Input recordings: .rzx (read/write).
* Timex cartridges: .dck (read only).
* IDE hard disk images: .hdf (read/write).
%package -n %{libname}
Summary: Library to work with ZX Spectrum emulator files
Group: System/Libraries
%description -n %{libname}
libspectrum is a library which is designed to make the input and
output of ZX Spectrum emulator files slightly easier than it would be
otherwise. It should hopefully compile and run on Unix-based systems,
Win32 and Mac OS X.
Currently supported are:
* Snapshots: .z80, .szx, .sna (all read/write), .zxs, .sp., .snp and
+D snapshots (read only).
* Tape images: .tzx, .tap (read/write) and Warajevo .tap (read only).
* Input recordings: .rzx (read/write).
* Timex cartridges: .dck (read only).
* IDE hard disk images: .hdf (read/write).
This package provides the libraries to handle ZX Spectrum emulator files.
%package -n %{devname}
Summary: Development files for programs which will use the libspectrum library
Group: Development/C
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with libspectrum.
%prep
%setup -q
%build
autoreconf
%configure2_5x --disable-static
%make
%install
%makeinstall_std
%files -n %{libname}
%{_libdir}/libspectrum.so.%{major}*
%files -n %{devname}
%doc COPYING README doc/libspectrum.txt
%{_libdir}/libspectrum.so
%{_includedir}/%{name}.h
%{_mandir}/man3/%{name}.3*