Пакет mpg123: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
%def_with nas
%def_with pulse
%def_with sdl
# disabled by default
%def_disable portable
# "to not attempt to use 64 bit file offsets internally"
# enabled by default
%def_enable largefile

# list of audio output modules
%define mods alsa oss %{?_with_nas:nas} %{?_with_pulse:pulse} %{?_with_sdl:sdl}

%def_enable check

Name: mpg123
Version: 1.32.6
Release: alt1
Epoch: 1

Summary: MPEG audio player
Group: Sound
License: GPL-2.0 and LGPL-2.1
Url: http://www.%name.org

Source: http://downloads.sourceforge.net/%name/%name-%version.tar.bz2
Source1: mp3license

Requires: libmpg123 = %EVR

%ifarch %ix86
%define wcpu i586
%else
%ifarch x86_64
%define wcpu x86-64
%else
%define wcpu generic
%endif
%endif

BuildRequires: libalsa-devel
%{?_with_nas:BuildRequires: libaudio-devel}
%{?_with_sdl:BuildRequires: libSDL2-devel libsdl2_sound-devel}
%{?_with_pulse:BuildRequires: libpulseaudio-devel}

%description
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files).  For
full CD quality playback (44 kHz, 16 bit, stereo) a fast CPU
is required. Mono and/or reduced quality playback (22 kHz or
11 kHz) is possible on slow CPUs (like Intel 486).

For information on the MP3 License, please visit:
%url

%package -n libmpg123
Summary: mpg123 library
Group: System/Libraries
License: LGPL-2.1

%description -n libmpg123
This package provides mpg123 library.

%package -n libmpg123-devel
Summary: mpg123 library headers
Group:  Development/C
License: LGPL-2.1
Requires: libmpg123 = %EVR

%description -n libmpg123-devel
This package provides mpg123 library headers


%prep
%setup
install -p -m644 %SOURCE1 .

%build
%autoreconf
# since 1.32.6 this is a causes of ABI break for 32-bit
#%%add_optflags %optflags_shared %(getconf LFS_CFLAGS)
%configure \
	%{subst_enable portable} \
	%{subst_enable largefile} \
	--with-audio="%mods" \
	--with-optimization=0 \
	--enable-network=yes \
	--enable-ipv6 \
	--with-cpu=%{wcpu}
%nil
%make_build CFLAGS="%optflags -Wformat -Werror=format-security"

%install
%makeinstall_std
mkdir -p %buildroot%_defaultdocdir/%name-%version/
%find_lang %name

%check
%make -k check VERBOSE=1

%files -f %name.lang
%_bindir/%name
%_bindir/%name-id3dump
%_bindir/%name-strip
%_bindir/out123
%_man1dir/%name.1.*
%_man1dir/out123.1.*
%dir %_libdir/%name
%_libdir/%name/*.so
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README mp3license doc/

%files -n libmpg123
%_libdir/libmpg123.so.*
%_libdir/libout123.so.*
%_libdir/libsyn123.so.*
%doc NEWS.lib%name

%files -n libmpg123-devel
%_libdir/libmpg123.so
%_libdir/libout123.so
%_libdir/libsyn123.so
%_pkgconfigdir/lib%name.pc
%_pkgconfigdir/libout123.pc
%_pkgconfigdir/libsyn123.pc
%_includedir/*.h


%changelog
* Fri Apr 05 2024 Yuri N. Sedunov <aris@altlinux.org> 1:1.32.6-alt1
- 1.32.6

* Sun Feb 18 2024 Yuri N. Sedunov <aris@altlinux.org> 1:1.32.5-alt1
- 1.32.5

* Fri Jan 12 2024 Yuri N. Sedunov <aris@altlinux.org> 1:1.32.4-alt1
- 1.32.4

* Wed Sep 27 2023 Yuri N. Sedunov <aris@altlinux.org> 1:1.31.3-alt1
- rollback to 1.31.3 (ALT #47750)

* Sun Sep 24 2023 Yuri N. Sedunov <aris@altlinux.org> 1.32.1-alt1
- 1.32.1

* Mon Mar 20 2023 Yuri N. Sedunov <aris@altlinux.org> 1.31.3-alt1
- 1.31.3

* Sun Jan 15 2023 Yuri N. Sedunov <aris@altlinux.org> 1.31.2-alt1
- 1.31.2

* Fri Nov 11 2022 Yuri N. Sedunov <aris@altlinux.org> 1.31.1-alt1
- 1.31.1

* Tue Aug 02 2022 Yuri N. Sedunov <aris@altlinux.org> 1.30.2-alt1
- 1.30.2

* Wed Jul 13 2022 Yuri N. Sedunov <aris@altlinux.org> 1.30.1-alt1
- 1.30.1

* Mon Jun 27 2022 Yuri N. Sedunov <aris@altlinux.org> 1.30.0-alt1
- 1.30.0

* Sun Dec 12 2021 Yuri N. Sedunov <aris@altlinux.org> 1.29.3-alt1
- 1.29.3

* Mon Oct 25 2021 Yuri N. Sedunov <aris@altlinux.org> 1.29.2-alt1
- 1.29.2

* Mon Jul 12 2021 Yuri N. Sedunov <aris@altlinux.org> 1.28.2-alt1
- 1.28.2

* Sun Jun 06 2021 Yuri N. Sedunov <aris@altlinux.org> 1.28.0-alt1
- 1.28.0

* Tue Mar 23 2021 Yuri N. Sedunov <aris@altlinux.org> 1.26.5-alt1
- 1.26.5

* Thu Dec 24 2020 Yuri N. Sedunov <aris@altlinux.org> 1.26.4-alt1
- 1.26.4

* Fri Jul 17 2020 Yuri N. Sedunov <aris@altlinux.org> 1.26.3-alt1
- 1.26.3

* Sun Jul 05 2020 Yuri N. Sedunov <aris@altlinux.org> 1.26.2-alt1
- 1.26.2

* Sun May 31 2020 Yuri N. Sedunov <aris@altlinux.org> 1.26.1-alt1
- 1.26.1

* Fri May 29 2020 Yuri N. Sedunov <aris@altlinux.org> 1.26.0-alt1
- 1.26.0

* Sat Oct 26 2019 Yuri N. Sedunov <aris@altlinux.org> 1.25.13-alt1
- 1.25.13

* Sun Aug 25 2019 Yuri N. Sedunov <aris@altlinux.org> 1.25.12-alt1
- 1.25.12

* Thu Jul 18 2019 Yuri N. Sedunov <aris@altlinux.org> 1.25.11-alt1
- 1.25.11

* Thu Mar 01 2018 Yuri N. Sedunov <aris@altlinux.org> 1.25.10-alt1
- 1.25.10

* Wed Dec 06 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.8-alt1
- 1.25.8

* Thu Sep 28 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.7-alt1
- 1.25.7

* Wed Aug 16 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.6-alt1
- 1.25.6

* Fri Aug 04 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.4-alt2
- removed obsolete ExclusiveArch tag

* Tue Aug 01 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.4-alt1.2
- fixed license tag

* Tue Aug 01 2017 Michael Shigorin <mike@altlinux.org> 1.25.4-alt1.1
- BOOTSTRAP: introduce nas, pulse, sdl knobs (on by default)
- E2K: added to ExclusiveArch:

* Mon Jul 31 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.4-alt1
- 1.25.4

* Thu Jul 13 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.2-alt1
- 1.25.2 (fixed CVE-2017-11126)

* Sat Jul 08 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.1-alt1
- 1.25.1

* Wed May 31 2017 Yuri N. Sedunov <aris@altlinux.org> 1.25.0-alt1
- 1.25.0

* Wed Mar 08 2017 Yuri N. Sedunov <aris@altlinux.org> 1.24.0-alt1
- 1.24.0

* Wed Oct 19 2016 Yuri N. Sedunov <aris@altlinux.org> 1.23.8-alt1
- 1.23.8 (fixed CVE-2016-1000247)

* Thu Jul 28 2016 Yuri N. Sedunov <aris@altlinux.org> 1.23.6-alt1
- 1.23.6

* Tue May 31 2016 Yuri N. Sedunov <aris@altlinux.org> 1.23.4-alt1
- 1.23.4

* Thu Apr 07 2016 Yuri N. Sedunov <aris@altlinux.org> 1.23.3-alt1
- 1.23.3

* Wed Feb 10 2016 Yuri N. Sedunov <aris@altlinux.org> 1.23.0-alt1.1
- fixed %%files section

* Sun Feb 07 2016 Yuri N. Sedunov <aris@altlinux.org> 1.23.0-alt1
- 1.23.0
- disabled ESOUND support

* Sat Jul 11 2015 Yuri N. Sedunov <aris@altlinux.org> 1.22.2-alt1
- 1.22.2

* Wed Feb 11 2015 Yuri N. Sedunov <aris@altlinux.org> 1.21.0-alt1
- 1.21.0

* Sun Jul 27 2014 Yuri N. Sedunov <aris@altlinux.org> 1.20.1-alt1
- 1.20.1

* Mon Feb 17 2014 Yuri N. Sedunov <aris@altlinux.org> 1.18.1-alt1
- 1.18.1

* Sat Feb 01 2014 Yuri N. Sedunov <aris@altlinux.org> 1.18.0-alt1
- 1.18.0

* Fri Jan 17 2014 Yuri N. Sedunov <aris@altlinux.org> 1.17.0-alt1
- 1.17.0

* Thu Feb 14 2013 Gleb F-Malinovskiy <glebfm@altlinux.org> 1.13.4-alt2
- build for arm too

* Wed Dec 21 2011 Alexey Morsov <swi@altlinux.ru> 1.13.4-alt1
- new version

* Wed Mar 30 2011 Alexey Morsov <swi@altlinux.ru> 1.13.2-alt1
- new version

* Fri Oct 29 2010 Alexey Morsov <swi@altlinux.ru> 1.12.5-alt1
- new version
- build with pulse support

* Wed Jul 21 2010 Alexey Morsov <swi@altlinux.ru> 1.12.3-alt1
- new version

* Sun Jul 04 2010 Alexey Morsov <swi@altlinux.ru> 1.12.2-alt1
- new version

* Fri May 07 2010 Alexey Morsov <swi@altlinux.ru> 1.12.1-alt1
- new version

* Sun Dec 06 2009 Alexey Morsov <swi@altlinux.ru> 1.10-alt1
- new version

* Mon Sep 14 2009 Alexey Morsov <swi@altlinux.ru> 1.9.0-alt1
- new version

* Wed Jun 17 2009 Alexey Morsov <swi@altlinux.ru> 1.8.1-alt1
- new version

* Thu Apr 30 2009 Alexey Morsov <swi@altlinux.ru> 1.7.2-alt1
- remove conflict on kdemultimedia-arts

* Tue Apr 21 2009 Alexey Morsov <swi@altlinux.ru> 1.7.2-alt0.1
- new version
- fix spec (optimization is chosen depending on the architecture)

* Tue Mar 31 2009 Alexey Morsov <swi@altlinux.ru> 1.7.0-alt0.1
- new version
- remove local libltdl (use external)
- remove optimization
- set optimization to i386 (textrel)

* Wed Jan 14 2009 Alexey Morsov <swi@altlinux.ru> 1.6.4-alt0.1
- new version

* Thu Nov 06 2008 Alexey Morsov <swi@altlinux.ru> 1.6.0-alt0.1
- new version

* Sun Jan 06 2008 Alexey Morsov <swi@altlinux.ru> 1.0.1-alt1
- 1.0.1
- fixed bug with crash when current work directory name > 49 chars.

* Mon Dec 24 2007 Alexey Morsov <swi@altlinux.ru> 1.0.0-alt0.1
- 1.0.0
- remove patch (no such file)
- adding a re-born decoder library to replace the old mpglib
  (libmpg123) and support for run-time audio .output selection

* Sat Jun 16 2007 Alexey Morsov <swi@altlinux.ru> 0.66-alt0.1
- version 0.66
- remove most of patches (allready in upstream)
- regenerate 1 patche (-8bit) for new source tree
- fix build and install section (now upstrean use configure)
- add BuildRequires for libaudio and libalsa

* Sat Mar 04 2006 Anton Farygin <rider@altlinux.ru> 0.59s-alt0.9
- NMU: fix build for x86_64

* Wed Sep 08 2004 Alexey Tourbin <at@altlinux.ru> 0.59s-alt0.8
- fixed buffer overflow in layer2 decoder (CAN-2004-0805)

* Thu Sep 25 2003 Alexey Tourbin <at@altlinux.ru> 0.59s-alt0.7
- security update (heap corruption in httpget.c)

* Tue Sep 23 2003 Alexey Tourbin <at@altlinux.ru> 0.59s-alt0.6
- build without esd by default (-a options works, #2981)

* Thu Aug 21 2003 Alexey Tourbin <at@altlinux.ru> 0.59s-alt0.5
- memory leak fixed (#0002810)
- esd support restored
- IPv6 support enabled

* Mon Aug 04 2003 Alexey Tourbin <at@altlinux.ru> 0.59s-alt0.4
- security update (CAN-2003-0577)

* Sun Jun 15 2003 Alexey Tourbin <at@altlinux.ru> 0.59s-alt0.3
- some PLD patches applied
- some heavy optimization options dropped
- some bugs disappeared, after all :-/

* Thu Oct 24 2002 Konstantin Volckov <goldhead@altlinux.ru> 0.59s-alt0.2
- Rebuilt in new environment

* Fri Oct 12 2001 Konstantin Volckov <goldhead@altlinux.ru> 0.59s-alt0.1
- pre059s
- Added some Arch-dependent optimizations

* Wed Feb 28 2001 Konstantin Volckov <goldhead@linux.ru.net> 0.59r-ipl2mdk
- Added 3dNOW patch by Takuhiro KIMURA
- Fixed esd building

* Thu Dec 14 2000 Dmitry V. Levin <ldv@fandra.org> 0.59r-ipl1mdk
- RE adaptions.

* Sat Nov 27 1999 Dmitry V. Levin <ldv@fandra.org>
- Fandra adaptions

* Mon Nov 15 1999 Lenny Cartier <lenny@mandrakesoft.com>
- v0.59r

* Wed May 05 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* Wed Apr 07 1999 Preston Brown <pbrown@redhat.com>
- removed debug output from audio_esd.c.

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 5)

* Wed Mar 17 1999 Michael Fulbright <drmike@redhat.com>
- hacked to work with esd for 8 bit fallback

* Sat Mar  6 1999 Matt Wilson <msw@redhat.com>
- rebuilt against new libaudio and esd

* Mon Mar  1 1999 Matt Wilson <msw@redhat.com>
- rebuilt against new libaudio and esd

* Fri Feb 26 1999 Michael Maher <mike@redhat.com>
- update package

* Tue Jan 12 1999 Michael Maher <mike@redhat.com>
- allowed to ship ... finally.

* Wed Jan 21 1998 Otto Hammersmith <otto@redhat.com>
- more cleanup