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