]> git.pld-linux.org Git - packages/libspectrum.git/blob - libspectrum.spec
rebuild with separate debuginfo build-ids
[packages/libspectrum.git] / libspectrum.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        ZX Spectrum emulator file format library
6 Summary(pl.UTF-8):      Biblioteka do obsługi formatów plików emulatorów ZX Spectrum
7 Name:           libspectrum
8 Version:        1.5.0
9 Release:        2
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
13 # Source0-md5:  a675e8b812f6029e6f7c780f8461b254
14 URL:            http://fuse-emulator.sourceforge.net/libspectrum.php
15 BuildRequires:  audiofile-devel >= 0.2.3
16 BuildRequires:  autoconf >= 2.50
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  bzip2-devel >= 1.0
19 BuildRequires:  glib2-devel >= 2.0.0
20 BuildRequires:  libgcrypt-devel >= 1.1.42
21 BuildRequires:  libtool >= 2:2
22 BuildRequires:  pkgconfig >= 1:0.7
23 BuildRequires:  zlib-devel
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
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.
35
36 %package devel
37 Summary:        ZX Spectrum emulator file format library - development
38 Summary(pl.UTF-8):      Część dla programistów używających biblioteki libspectrum
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       audiofile-devel >= 0.2.3
42 Requires:       bzip2-devel >= 1.0
43 Requires:       glib2-devel >= 2.0.0
44 Requires:       libgcrypt-devel >= 1.1.42
45 Requires:       zlib-devel
46
47 %description devel
48 The libspectrum-devel package contains the header files and
49 documentation needed to develop applications with libspectrum.
50
51 %description devel -l pl.UTF-8
52 Pakiet libspectrum-devel zawiera pliki nagłówkowe i dokumentację
53 potrzebne do kompilowania aplikacji korzystających z libspectrum.
54
55 %package static
56 Summary:        ZX Spectrum emulator file format static library
57 Summary(pl.UTF-8):      Statyczna biblioteka libspectrum
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 The libspectrum-static package contains the static libraries of
63 libspectrum.
64
65 %description static -l pl.UTF-8
66 Statyczna wersja biblioteki libspectrum.
67
68 %prep
69 %setup -q
70
71 # don't BR both glib versions
72 echo 'AC_DEFUN([AM_PATH_GLIB],[$3])' >> acinclude.m4
73
74 %build
75 %{__libtoolize}
76 %{__aclocal} -I m4
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure \
81         --disable-silent-rules \
82         %{!?with_static_libs:--disable-static}
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %post   -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
96
97 %files
98 %defattr(644,root,root,755)
99 %doc AUTHORS ChangeLog README THANKS
100 %attr(755,root,root) %{_libdir}/libspectrum.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libspectrum.so.9
102
103 %files devel
104 %defattr(644,root,root,755)
105 %doc doc/libspectrum.txt
106 %attr(755,root,root) %{_libdir}/libspectrum.so
107 %{_libdir}/libspectrum.la
108 %{_includedir}/libspectrum.h
109 %{_mandir}/man3/libspectrum.3*
110 %{_pkgconfigdir}/libspectrum.pc
111
112 %if %{with static_libs}
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/libspectrum.a
116 %endif
This page took 0.10474 seconds and 4 git commands to generate.