]>
Commit | Line | Data |
---|---|---|
17a9e647 | 1 | # |
58811f64 | 2 | # Conditional build: |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
0b81b7cf | 5 | Summary: ZX Spectrum emulator file format library |
566f31a3 | 6 | Summary(pl.UTF-8): Biblioteka do obsługi formatów plików emulatorów ZX Spectrum |
0b81b7cf | 7 | Name: libspectrum |
198687ae | 8 | Version: 1.3.5 |
8b31d2c0 | 9 | Release: 1 |
b4c740f0 | 10 | License: GPL v2+ |
2a60ff2e | 11 | Group: Libraries |
898501b6 | 12 | Source0: http://downloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz |
198687ae | 13 | # Source0-md5: 5bedad36f7585c46547ace74dacbef45 |
fcee2a28 | 14 | URL: http://fuse-emulator.sourceforge.net/libspectrum.php |
b4c740f0 | 15 | BuildRequires: audiofile-devel >= 0.2.3 |
3e848215 | 16 | BuildRequires: autoconf >= 2.50 |
0b81b7cf | 17 | BuildRequires: automake |
38fc28d0 JB |
18 | BuildRequires: bzip2-devel >= 1.0 |
19 | BuildRequires: glib2-devel >= 2.0.0 | |
1cb93f34 | 20 | BuildRequires: libgcrypt-devel >= 1.1.42 |
3e848215 | 21 | BuildRequires: libtool >= 2:2 |
617c6f69 | 22 | BuildRequires: pkgconfig >= 1:0.7 |
d4e1cf5d | 23 | BuildRequires: zlib-devel |
0b81b7cf | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | libspectrum is a library designed to make the input and output of some | |
28 | ZX Spectrum emulator files slightly easier. It is intended to be | |
29 | usable on Unix variants, Win32 and Mac OS X. | |
30 | ||
0fa0fc02 JR |
31 | %description -l pl.UTF-8 |
32 | libspectrum jest biblioteką zaprojektowaną, by ułatwić zapis i odczyt | |
33 | plików wykorzystywanych przez emulatory ZX Spectrum. Można jej używać | |
34 | na różnych wariantach systemu Unix, Win32 i Mac OS X. | |
0b81b7cf | 35 | |
36 | %package devel | |
37 | Summary: ZX Spectrum emulator file format library - development | |
566f31a3 | 38 | Summary(pl.UTF-8): Część dla programistów używających biblioteki libspectrum |
0b81b7cf | 39 | Group: Development/Libraries |
08e9c36b | 40 | Requires: %{name} = %{version}-%{release} |
b4c740f0 | 41 | Requires: audiofile-devel >= 0.2.3 |
38fc28d0 JB |
42 | Requires: bzip2-devel >= 1.0 |
43 | Requires: glib2-devel >= 2.0.0 | |
1cb93f34 | 44 | Requires: libgcrypt-devel >= 1.1.42 |
38fc28d0 | 45 | Requires: zlib-devel |
0b81b7cf | 46 | |
47 | %description devel | |
898501b6 ŁK |
48 | The libspectrum-devel package contains the header files and |
49 | documentation needed to develop applications with libspectrum. | |
0b81b7cf | 50 | |
0fa0fc02 | 51 | %description devel -l pl.UTF-8 |
898501b6 ŁK |
52 | Pakiet libspectrum-devel zawiera pliki nagłówkowe i dokumentację |
53 | potrzebne do kompilowania aplikacji korzystających z libspectrum. | |
0b81b7cf | 54 | |
55 | %package static | |
56 | Summary: ZX Spectrum emulator file format static library | |
566f31a3 | 57 | Summary(pl.UTF-8): Statyczna biblioteka libspectrum |
0b81b7cf | 58 | Group: Development/Libraries |
08e9c36b | 59 | Requires: %{name}-devel = %{version}-%{release} |
0b81b7cf | 60 | |
61 | %description static | |
898501b6 ŁK |
62 | The libspectrum-static package contains the static libraries of |
63 | libspectrum. | |
0b81b7cf | 64 | |
0fa0fc02 | 65 | %description static -l pl.UTF-8 |
0b81b7cf | 66 | Statyczna wersja biblioteki libspectrum. |
67 | ||
68 | %prep | |
69 | %setup -q | |
70 | ||
38fc28d0 JB |
71 | # don't BR both glib versions |
72 | echo 'AC_DEFUN([AM_PATH_GLIB],[$3])' >> acinclude.m4 | |
73 | ||
0b81b7cf | 74 | %build |
d4e1cf5d | 75 | %{__libtoolize} |
e4f6843a | 76 | %{__aclocal} -I m4 |
0b81b7cf | 77 | %{__autoconf} |
08e9c36b | 78 | %{__autoheader} |
0b81b7cf | 79 | %{__automake} |
58811f64 | 80 | %configure \ |
7d425394 | 81 | --disable-silent-rules \ |
58811f64 | 82 | %{!?with_static_libs:--disable-static} |
7d425394 | 83 | %{__make} |
0b81b7cf | 84 | |
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
7fe40d88 | 87 | |
f9a26ef1 | 88 | %{__make} install \ |
7d425394 | 89 | DESTDIR=$RPM_BUILD_ROOT |
0b81b7cf | 90 | |
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
7fe40d88 | 94 | %post -p /sbin/ldconfig |
0b81b7cf | 95 | %postun -p /sbin/ldconfig |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
f9a26ef1 | 99 | %doc AUTHORS ChangeLog README THANKS |
2a60ff2e | 100 | %attr(755,root,root) %{_libdir}/libspectrum.so.*.*.* |
0e925eee | 101 | %attr(755,root,root) %ghost %{_libdir}/libspectrum.so.8 |
0b81b7cf | 102 | |
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
08e9c36b | 105 | %doc doc/libspectrum.txt |
b4c740f0 | 106 | %attr(755,root,root) %{_libdir}/libspectrum.so |
0b81b7cf | 107 | %{_libdir}/libspectrum.la |
08e9c36b JB |
108 | %{_includedir}/libspectrum.h |
109 | %{_mandir}/man3/libspectrum.3* | |
0b81b7cf | 110 | |
58811f64 | 111 | %if %{with static_libs} |
0b81b7cf | 112 | %files static |
113 | %defattr(644,root,root,755) | |
2a60ff2e | 114 | %{_libdir}/libspectrum.a |
58811f64 | 115 | %endif |