%define major 0 %define fullname %{name}-III-%version %define libname %mklibname cdda %{major} %define develname %mklibname cdda -d Summary: Utility to copy digital audio CDs Name: cdparanoia Version: 10.2 Release: %mkrel 15 Epoch: 1 Source0: http://downloads.xiph.org/releases/cdparanoia/%{fullname}.src.tgz Patch0: cdparanoia-III-alpha9.8-includes.patch Patch1: cdparanoia-III-10.2-gcc43.patch Patch2: cdparanoia-III-10.2-format-security.patch URL: http://www.xiph.org/paranoia/ License: GPLv2+ and LGPLv2+ Group: Sound/Utilities %description This CDDA reader distribution ('cdparanoia') reads audio from the CDROM directly as data, with no analog step between, and writes the data to a file or pipe as .wav, .aifc or as raw 16 bit linear PCM. cdparanoia is a complete rewrite of Heiko Eissfeldt's 'cdda2wav' program, and generally is much better at succeeding to read difficult discs with cheap drives. %package -n %{libname} Summary: Libraries for cdparanoia Group: Sound/Utilities %description -n %{libname} This is the development libraries for cdparanoia. cdparanoia is a complete rewrite of Heiko Eissfeldt's 'cdda2wav' program, and generally is much better at succeeding to read difficult discs with cheap drives. %package -n %{develname} Summary: Development libraries for cdparanoia Group: Development/C Provides: libcdda-devel = %epoch:%{version} Provides: cdda-devel = %epoch:%{version} Provides: cdparanoia-devel = %epoch:%{version} Requires: %{libname} = %epoch:%{version} Obsoletes: %{mklibname cdda 0 -d} %description -n %{develname} This is the development libraries for cdparanoia. cdparanoia is a complete rewrite of Heiko Eissfeldt's 'cdda2wav' program, and generally is much better at succeeding to read difficult discs with cheap drives. %prep %setup -q -n %{fullname} %patch0 -p1 -b .includes %patch1 -p1 -b .gcc43 %patch2 -p1 -b .fs autoconf %build rm -rf $RPM_BUILD_ROOT %configure2_5x --libdir=%{_libdir}/cdparanoia # (gb) don't use fortify, this package has ugly abuse of memcpy() that we can't cope with if it's a macro # XXX would be better to define scsi cmds constants instead... export RPM_OPT_FLAGS="$(echo %optflags |sed s/-Wp,-D_FORTIFY_SOURCE=.//)" make OPT="-fsigned-char -finline-functions -Dsize16='short' -Dsize32='int' $RPM_OPT_FLAGS" %install mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_docdir} mkdir -p $RPM_BUILD_ROOT%{_includedir} mkdir -p $RPM_BUILD_ROOT%{_libdir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 %makeinstall \ BINDIR=$RPM_BUILD_ROOT%{_bindir} \ INCLUDEDIR=$RPM_BUILD_ROOT%{_includedir} \ LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ MANDIR=$RPM_BUILD_ROOT%{_mandir} install -m644 cdparanoia.1 $RPM_BUILD_ROOT%{_mandir}/man1/ %files %defattr(644,root,root,755) %doc README %attr(755,root,root) %{_bindir}/cdparanoia %attr(644,root,root) %{_mandir}/man1/cdparanoia.1* %files -n %{libname} %defattr(644,root,root,755) %{_libdir}/*.so.* %files -n %{develname} %{_includedir}/* %{_libdir}/*.a %{_libdir}/*.so %changelog * Sun Apr 17 2016 tv <tv> 1:10.2-15.mga6 + Revision: 1003208 - provides cdparanoia-devel * Mon Feb 08 2016 umeabot <umeabot> 1:10.2-14.mga6 + Revision: 944871 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 1:10.2-13.mga5 + Revision: 742834 - Second Mageia 5 Mass Rebuild * Thu Sep 18 2014 umeabot <umeabot> 1:10.2-12.mga5 + Revision: 693581 - Rebuild to fix library dependencies * Tue Sep 16 2014 umeabot <umeabot> 1:10.2-11.mga5 + Revision: 678339 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 1:10.2-10.mga4 + Revision: 503306 - Mageia 4 Mass Rebuild * Fri Jan 11 2013 umeabot <umeabot> 1:10.2-9.mga3 + Revision: 347531 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Oct 08 2012 rtp <rtp> 1:10.2-8.mga3 + Revision: 303391 - fix group - fix build * Fri Jan 14 2011 dmorgan <dmorgan> 1:10.2-7.mga1 + Revision: 17658 - Get rid of mdv macros - imported package cdparanoia