]> git.pld-linux.org Git - packages/SDL_mixer.git/blob - SDL_mixer.spec
98984a875b5a168f6650deada727e6927530f59b
[packages/SDL_mixer.git] / SDL_mixer.spec
1 #
2 # Conditional build:
3 %bcond_with     modplug # use modplug for MOD support (mikmod is used by default)
4 #
5 # NOTE: libraries dlopened by sonames detected at build time:
6 # libFLAC.so.8
7 # libfluidsynth.so.1
8 # libmikmod.so.2
9 # libsmpeg-0.4.so.0
10 # libvorbisfile.so.3
11 #
12 Summary:        Simple DirectMedia Layer - Sample Mixer Library
13 Summary(pl.UTF-8):      Simple DirectMedia Layer - biblioteka miksująca próbki dźwiękowe
14 Summary(pt_BR.UTF-8):   SDL - Biblioteca para mixagem
15 Name:           SDL_mixer
16 Version:        1.2.12
17 Release:        3
18 License:        Zlib-like
19 Group:          Libraries
20 Source0:        http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
21 # Source0-md5:  e03ff73d77a55e3572ad0217131dc4a1
22 Patch0:         %{name}-timidity_cfg.patch
23 Patch1:         %{name}-acfix.patch
24 URL:            http://www.libsdl.org/projects/SDL_mixer/release-1.2.html
25 BuildRequires:  SDL-devel >= 1.2.10
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  flac-devel >= 1.2.0
29 BuildRequires:  fluidsynth-devel
30 BuildRequires:  libtool >= 2:2.0
31 BuildRequires:  libmikmod-devel >= 3.1.10
32 %{?with_modplug:BuildRequires:  libmodplug-devel >= 0.8.7}
33 BuildRequires:  libvorbis-devel >= 1:1.0
34 BuildRequires:  smpeg-devel >= 0.4.4-11
35 Requires:       SDL >= 1.2.10
36 %{?with_modplug:Suggests:       libmodplug >= 0.8.7}
37 Obsoletes:      libSDL_mixer1.2
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Due to popular demand, here is a simple multi-channel audio mixer. It
42 supports 4 channels of 16 bit stereo audio, plus a single channel of
43 music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
44 libraries.
45
46 %description -l pl.UTF-8
47 SDL_mixer to prosty wielokanałowy mikser audio. Obsługuje 4 kanały
48 16-bitowego dźwięku stereo plus jeden kanał dla muzyki miksowanej
49 przez popularne biblioteki MikMod MOD, Timitity MIDI i SMPEG MP3.
50
51 %description -l pt_BR.UTF-8
52 Biblioteca que suporta 4 canais de áudio estéreo 16 bit, mais um canal
53 de música, mixado pelo populares bibliotecas MOD MikMod, MIDI timidity
54 e SMPEG MP3.
55
56 %package devel
57 Summary:        Header files and more to develop SDL_mixer applications
58 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwoju aplikacji używających biblioteki SDL_mixer
59 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
60 Group:          Development/Libraries
61 Requires:       %{name} = %{version}-%{release}
62 Requires:       SDL-devel >= 1.2.10
63 Obsoletes:      libSDL_mixer1.2-devel
64
65 %description devel
66 Header files and more to develop SDL_mixer applications.
67
68 %description devel -l pl.UTF-8
69 Pliki nagłówkowe do rozwoju aplikacji używających biblioteki
70 SDL_mixer.
71
72 %description devel -l pt_BR.UTF-8
73 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
74 SDL.
75
76 %package static
77 Summary:        Static SDL_mixer library
78 Summary(pl.UTF-8):      Statyczna biblioteka SDL_mixer
79 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com SDL_mixer
80 Group:          Development/Libraries
81 Requires:       %{name}-devel = %{version}-%{release}
82
83 %description static
84 Static SDL_mixer library.
85
86 %description static -l pl.UTF-8
87 Statyczna biblioteka SDL_mixer.
88
89 %description static -l pt_BR.UTF-8
90 Bibliotecas estáticas para desenvolvimento com SDL_mixer.
91
92 %prep
93 %setup -q
94 %patch0 -p1
95 %patch1 -p1
96
97 %build
98 %{__libtoolize}
99 %{__aclocal}
100 %{__autoconf}
101 %configure \
102         %{?with_modplug:--enable-music-mod-modplug}
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} install install-bin \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post   -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc CHANGES COPYING README
120 %attr(755,root,root) %{_bindir}/playmus
121 %attr(755,root,root) %{_bindir}/playwave
122 %attr(755,root,root) %{_libdir}/libSDL_mixer-1.2.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libSDL_mixer-1.2.so.0
124
125 %files devel
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libSDL_mixer.so
128 %{_libdir}/libSDL_mixer.la
129 %{_includedir}/SDL/SDL_mixer.h
130 %{_pkgconfigdir}/SDL_mixer.pc
131
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/libSDL_mixer.a
This page took 0.072243 seconds and 2 git commands to generate.