[5394] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[3445] | 3 | Name: cdparanoia |
---|
[521] | 4 | Summary: A Compact Disc Digital Audio (CDDA) extraction tool (or ripper). |
---|
[3445] | 5 | Summary(ja): 音楽 CD (CDDA) 用の抽出ツール |
---|
[521] | 6 | Version: 10.2 |
---|
[5394] | 7 | Release: 3%{?_dist_release} |
---|
[3445] | 8 | |
---|
| 9 | Group: Applications/Multimedia |
---|
[521] | 10 | License: GPLv2 and LGPLv2 |
---|
[3445] | 11 | URL: http://www.xiph.org/paranoia/index.html |
---|
| 12 | |
---|
[521] | 13 | Source: http://www.xiph.org/paranoia/download/%{name}-III-%{version}.src.tgz |
---|
| 14 | Patch0: cdparanoia-fPIC.patch |
---|
| 15 | # Patch from upstream to fix cdda_interface.h C++ incompatibility ("private") |
---|
| 16 | # https://trac.xiph.org/changeset/15338 |
---|
| 17 | # https://bugzilla.redhat.com/show_bug.cgi?id=463009 |
---|
| 18 | Patch1: cdparanoia-10.2-#463009.patch |
---|
| 19 | #Patch1: cdparanoia-gcc4-build.patch |
---|
[3445] | 20 | |
---|
[521] | 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | Cdparanoia (Paranoia III) reads digital audio directly from a CD, then |
---|
| 25 | writes the data to a file or pipe in WAV, AIFC or raw 16 bit linear |
---|
| 26 | PCM format. Cdparanoia doesn't contain any extra features (like the ones |
---|
| 27 | included in the cdda2wav sampling utility). Instead, cdparanoia's strength |
---|
| 28 | lies in its ability to handle a variety of hardware, including inexpensive |
---|
| 29 | drives prone to misalignment, frame jitter and loss of streaming during |
---|
| 30 | atomic reads. Cdparanoia is also good at reading and repairing data from |
---|
| 31 | damaged CDs. |
---|
| 32 | |
---|
| 33 | %package devel |
---|
| 34 | Summary: Development tools for libcdda_paranoia (Paranoia III). |
---|
[3445] | 35 | Summary(ja): libcdda_paranoia (Paranoia III) の開発用ファイル |
---|
[521] | 36 | Group: Development/Libraries |
---|
[3445] | 37 | License: LGPLv2 |
---|
[5394] | 38 | Requires: %{name} = %{version}-%{release} |
---|
[521] | 39 | |
---|
| 40 | %description devel |
---|
| 41 | The cdparanoia-devel package contains the static libraries and header |
---|
| 42 | files needed for developing applications to read CD Digital Audio disks. |
---|
| 43 | |
---|
[5394] | 44 | # compat32 |
---|
| 45 | %package -n compat32-%{name} |
---|
| 46 | Summary: A Compact Disc Digital Audio (CDDA) extraction tool (or ripper). |
---|
| 47 | Summary(ja): 音楽 CD (CDDA) 用の抽出ツール |
---|
| 48 | Group: Applications/Multimedia |
---|
| 49 | Requires: %{name} = %{version}-%{release} |
---|
| 50 | |
---|
| 51 | %description -n compat32-%{name} |
---|
| 52 | Cdparanoia (Paranoia III) reads digital audio directly from a CD, then |
---|
| 53 | writes the data to a file or pipe in WAV, AIFC or raw 16 bit linear |
---|
| 54 | PCM format. Cdparanoia doesn't contain any extra features (like the ones |
---|
| 55 | included in the cdda2wav sampling utility). Instead, cdparanoia's strength |
---|
| 56 | lies in its ability to handle a variety of hardware, including inexpensive |
---|
| 57 | drives prone to misalignment, frame jitter and loss of streaming during |
---|
| 58 | atomic reads. Cdparanoia is also good at reading and repairing data from |
---|
| 59 | damaged CDs. |
---|
| 60 | |
---|
| 61 | %package -n compat32-%{name}-devel |
---|
| 62 | Summary: Development tools for libcdda_paranoia (Paranoia III). |
---|
| 63 | Summary(ja): libcdda_paranoia (Paranoia III) の開発用ファイル |
---|
| 64 | Group: Development/Libraries |
---|
| 65 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 66 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 67 | |
---|
| 68 | %description -n compat32-%{name}-devel |
---|
| 69 | The cdparanoia-devel package contains the static libraries and header |
---|
| 70 | files needed for developing applications to read CD Digital Audio disks. |
---|
| 71 | |
---|
| 72 | |
---|
[521] | 73 | %prep |
---|
| 74 | %setup -q -n %{name}-III-%{version} |
---|
| 75 | %patch1 -p3 -b .#463009 |
---|
| 76 | |
---|
| 77 | %build |
---|
| 78 | export OPT="${CFLAGS:-%optflags} -O0 -Wno-pointer-sign -Wno-unused -Werror-implicit-function-declaration" |
---|
| 79 | %configure --includedir=%{_includedir}/cdda |
---|
| 80 | make OPT="$OPT" |
---|
| 81 | |
---|
| 82 | %install |
---|
| 83 | rm -rf $RPM_BUILD_ROOT |
---|
| 84 | |
---|
| 85 | install -d $RPM_BUILD_ROOT%{_bindir} |
---|
| 86 | install -d $RPM_BUILD_ROOT%{_includedir}/cdda |
---|
| 87 | install -d $RPM_BUILD_ROOT%{_libdir} |
---|
| 88 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 89 | install -m 0755 cdparanoia $RPM_BUILD_ROOT%{_bindir} |
---|
| 90 | install -m 0644 cdparanoia.1 $RPM_BUILD_ROOT%{_mandir}/man1/ |
---|
| 91 | install -m 0644 utils.h paranoia/cdda_paranoia.h interface/cdda_interface.h \ |
---|
| 92 | $RPM_BUILD_ROOT%{_includedir}/cdda |
---|
| 93 | install -m 0755 paranoia/libcdda_paranoia.so.0.10.? \ |
---|
| 94 | interface/libcdda_interface.so.0.10.? \ |
---|
| 95 | $RPM_BUILD_ROOT%{_libdir} |
---|
| 96 | install -m 0755 paranoia/libcdda_paranoia.a interface/libcdda_interface.a \ |
---|
| 97 | $RPM_BUILD_ROOT%{_libdir} |
---|
| 98 | install -d $RPM_BUILD_ROOT%{_mandir}/ja/man1 |
---|
| 99 | install -m 0644 cdparanoia.1.jp $RPM_BUILD_ROOT%{_mandir}/ja/man1/cdparanoia.1 |
---|
| 100 | |
---|
| 101 | /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir} |
---|
| 102 | |
---|
| 103 | pushd $RPM_BUILD_ROOT%{_libdir} |
---|
| 104 | ln -s libcdda_paranoia.so.0.10.? libcdda_paranoia.so |
---|
| 105 | ln -s libcdda_interface.so.0.10.? libcdda_interface.so |
---|
| 106 | popd |
---|
| 107 | |
---|
| 108 | %post -p /sbin/ldconfig |
---|
| 109 | |
---|
| 110 | %postun -p /sbin/ldconfig |
---|
| 111 | |
---|
[5394] | 112 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 113 | |
---|
| 114 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 115 | |
---|
[521] | 116 | %clean |
---|
| 117 | [ "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" ] && rm -rf "$RPM_BUILD_ROOT" |
---|
| 118 | |
---|
| 119 | %files |
---|
| 120 | %defattr(-,root,root) |
---|
| 121 | %doc README COPYING-GPL COPYING-LGPL |
---|
| 122 | %{_bindir}/* |
---|
[3445] | 123 | %{_libdir}/lib*.so.* |
---|
[521] | 124 | %{_mandir}/man1/* |
---|
| 125 | %{_mandir}/ja/man1/* |
---|
| 126 | |
---|
| 127 | %files devel |
---|
| 128 | %defattr(-,root,root) |
---|
| 129 | %{_includedir}/cdda |
---|
[3445] | 130 | %{_libdir}/lib*.so |
---|
[521] | 131 | %{_libdir}/*.a |
---|
| 132 | |
---|
[5394] | 133 | # compat32 |
---|
| 134 | %if %{build_compat32} |
---|
| 135 | %files -n compat32-%{name} |
---|
| 136 | %defattr(-, root, root) |
---|
| 137 | %{_libdir}/*.so.* |
---|
| 138 | |
---|
| 139 | %files -n compat32-%{name}-devel |
---|
| 140 | %defattr(-, root, root) |
---|
| 141 | %{_libdir}/*.so |
---|
| 142 | %endif |
---|
| 143 | |
---|
[521] | 144 | %changelog |
---|
[5394] | 145 | * Wed Jan 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 10.2-3 |
---|
| 146 | - create compat32 sub packages |
---|
| 147 | |
---|
[3445] | 148 | * Sun Apr 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.2-2 |
---|
| 149 | - rebuilt with new toolchain |
---|
| 150 | - added Japanese summary |
---|
| 151 | |
---|
[521] | 152 | * Sun Aug 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.2-1 |
---|
| 153 | - new upstream release |
---|
| 154 | - added Requires: cdparanoia to devel package |
---|
| 155 | |
---|
| 156 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> alpha9.8-9vl5 |
---|
| 157 | - applied new versioning policy |
---|
| 158 | |
---|
| 159 | * Tue Jul 3 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> alpha9.8-8vl6 |
---|
| 160 | - add Patch1 |
---|
| 161 | |
---|
| 162 | * Tue Oct 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> alpha9.8-8vl5 |
---|
| 163 | - added fPIC.patch fix a problem on x86_64 archtecture |
---|
| 164 | |
---|
| 165 | * Fri Dec 26 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> alpha9.8-8vl4 |
---|
| 166 | - rebuild with new toolchain |
---|
| 167 | |
---|
| 168 | * Sun Mar 16 2003 IWAI Masaharu <iwai@alib.jp> alpha9.8-8vl3 |
---|
| 169 | - rebuild with new toolchain |
---|
| 170 | |
---|
| 171 | * Tue Apr 24 2001 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp> |
---|
| 172 | - alpha9.8-8vl2 |
---|
| 173 | - rebuild on VineSeed |
---|
| 174 | |
---|
| 175 | * Tue Apr 24 2001 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp> |
---|
| 176 | - alpha9.8-8vl1 |
---|
| 177 | - included japanese manual |
---|
| 178 | |
---|
| 179 | * Tue Feb 27 2001 Karsten Hopp <karsten@redhat.de> |
---|
| 180 | - fix spelling error in description |
---|
| 181 | |
---|
| 182 | * Thu Dec 7 2000 Crutcher Dunnavant <crutcher@redhat.com> |
---|
| 183 | - rebuild for new tree |
---|
| 184 | |
---|
| 185 | * Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com> |
---|
| 186 | - use %%{_tmppath} |
---|
| 187 | |
---|
| 188 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
| 189 | - automatic rebuild |
---|
| 190 | |
---|
| 191 | * Wed Jun 06 2000 Preston Brown <pbrown@redhat.com> |
---|
| 192 | - revert name change |
---|
| 193 | - use new rpm macro paths |
---|
| 194 | |
---|
| 195 | * Wed Apr 19 2000 Trond Eivind Glomsrød <teg@redhat.com> |
---|
| 196 | - Switched spec file from the one used in Red Hat Linux 6.2, which |
---|
| 197 | also changes the name |
---|
| 198 | - gzip man page |
---|
| 199 | |
---|
| 200 | * Thu Dec 23 1999 Peter Jones <pjones@redhat.com> |
---|
| 201 | - update package to provide cdparanoia-alpha9.7-2.*.rpm and |
---|
| 202 | cdparanoia-devel-alpha9.7-2.*.rpm. Also, URLs point at xiph.org |
---|
| 203 | like they should. |
---|
| 204 | |
---|
| 205 | * Wed Dec 22 1999 Peter Jones <pjones@redhat.com> |
---|
| 206 | - updated package for alpha9.7, based on input from: |
---|
| 207 | Monty <xiphmont@xiph.org> |
---|
| 208 | David Philippi <david@torangan.saar.de> |
---|
| 209 | |
---|
| 210 | * Mon Apr 12 1999 Michael Maher <mike@redhat.com> |
---|
| 211 | - updated pacakge |
---|
| 212 | |
---|
| 213 | * Tue Oct 06 1998 Michael Maher <mike@redhat.com> |
---|
| 214 | - updated package |
---|
| 215 | |
---|
| 216 | * Mon Jun 29 1998 Michael Maher <mike@redhat.com> |
---|
| 217 | - built package |
---|