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