1 | %define ver 2.0.2 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | Name: SDL2_mixer |
---|
5 | Version: %{ver} |
---|
6 | Release: %{rel}%{?_dist_release} |
---|
7 | Summary: Simple DirectMedia Layer - Sample Mixer Library |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: zlib |
---|
11 | URL: http://www.libsdl.org/projects/SDL_mixer/ |
---|
12 | Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz |
---|
13 | |
---|
14 | BuildRequires: SDL2-devel |
---|
15 | BuildRequires: libvorbis-devel |
---|
16 | BuildRequires: flac-devel |
---|
17 | BuildRequires: chrpath |
---|
18 | BuildRequires: libmodplug-devel |
---|
19 | BuildRequires: fluidsynth-devel |
---|
20 | BuildRequires: libmikmod-devel |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | Packager: iwaim |
---|
25 | |
---|
26 | %description |
---|
27 | SDL_mixer is a sample multi-channel audio mixer library. |
---|
28 | It supports any number of simultaneously playing channels of 16 bit stereo |
---|
29 | audio, plus a single channel of music, mixed by the popular FLAC, |
---|
30 | MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries. |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: Development files for %{name} |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
36 | Requires: SDL2-devel |
---|
37 | Requires: libvorbis-devel |
---|
38 | |
---|
39 | %description devel |
---|
40 | The %{name}-devel package contains libraries and header files for |
---|
41 | developing applications that use %{name}. |
---|
42 | |
---|
43 | %prep |
---|
44 | %autosetup -p1 |
---|
45 | sed -i -e 's/\r//g' README.txt CHANGES.txt COPYING.txt |
---|
46 | rm -rf external/ |
---|
47 | |
---|
48 | %build |
---|
49 | %configure --disable-dependency-tracking \ |
---|
50 | --disable-static |
---|
51 | sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool |
---|
52 | %make_build |
---|
53 | |
---|
54 | %install |
---|
55 | %make_install install-bin |
---|
56 | for i in playmus playwave |
---|
57 | do |
---|
58 | chrpath -d %{buildroot}%{_bindir}/${i} |
---|
59 | mv %{buildroot}%{_bindir}/${i} %{buildroot}%{_bindir}/${i}2 |
---|
60 | done |
---|
61 | |
---|
62 | find %{buildroot} -name '*.la' -exec rm -f {} ';' |
---|
63 | |
---|
64 | %post -p /sbin/ldconfig |
---|
65 | |
---|
66 | %postun -p /sbin/ldconfig |
---|
67 | |
---|
68 | %files |
---|
69 | %license COPYING.txt |
---|
70 | %doc CHANGES.txt |
---|
71 | %{_bindir}/playmus2 |
---|
72 | %{_bindir}/playwave2 |
---|
73 | %{_libdir}/lib*.so.* |
---|
74 | |
---|
75 | %files devel |
---|
76 | %doc README.txt |
---|
77 | %{_libdir}/lib*.so |
---|
78 | %{_libdir}/pkgconfig/%{name}.pc |
---|
79 | %{_includedir}/SDL2/* |
---|
80 | |
---|
81 | %changelog |
---|
82 | * Wed May 23 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.2-1 |
---|
83 | - update to 2.0.2 |
---|
84 | |
---|
85 | * Sun Apr 16 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.1-1 |
---|
86 | |
---|
87 | * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2 |
---|
88 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
89 | |
---|
90 | * Sun Jan 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-1 |
---|
91 | - Update to 2.0.1 (RHBZ #1296752) |
---|
92 | |
---|
93 | * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-8 |
---|
94 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
95 | |
---|
96 | * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-7 |
---|
97 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
98 | |
---|
99 | * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-6 |
---|
100 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
101 | |
---|
102 | * Thu May 01 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-5 |
---|
103 | - Fix FTBFS with autoreconf |
---|
104 | |
---|
105 | * Thu May 01 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-4 |
---|
106 | - Add patch for properly include modplug (RHBZ #1093378) |
---|
107 | |
---|
108 | * Wed Nov 20 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3 |
---|
109 | - Add some BuildRequires (cicku) |
---|
110 | - Delete pkgconfig from -devel subpackage (cicku) |
---|
111 | - Removing external folder in prep section (ignatenkobrain) |
---|
112 | - Fix license to correct zlib (cicku & ignatenkobrain) |
---|
113 | |
---|
114 | * Mon Nov 18 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2 |
---|
115 | - Update for review |
---|
116 | |
---|
117 | * Sat Sep 7 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1 |
---|
118 | - Based on SDL_mixer |
---|