# # spec file for package cdparanoia (Version 3.10.2) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: cdparanoia Provides: cdparano Obsoletes: cdparano License: GPLv2+ Group: Productivity/Multimedia/CD/Grabbers AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: cdparanoia-64bit %endif # Version: 3.10.2 Release: 3 Summary: A Program for Extracting, Verifying, and Fixing Audio Tracks from CDs Url: http://www.xiph.org/paranoia/index.html %define filever III-10.2 Source: cdparanoia-%{filever}.src.tar.bz2 Source2: baselibs.conf Patch1: cdparanoia-III-ide_majors.patch Patch2: cdparanoia-III-dt_needed.patch Patch3: cdparanoia-III-c++.patch Patch10: cdparanoia-III-01-typos-and-spelling.dpatch Patch11: cdparanoia-III-05-gcc4.3.dpatch Patch12: cdparanoia-III-06-endian.dpatch Patch13: cdparanoia-large-pic.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %package -n libcdda_interface0 License: GPLv2+ Summary: Extracting, Verifying, and Fixing Audio Tracks from CDs - runtime library Group: System/Libraries Suggests: ImageMagick-extra = %{version} AutoReqProv: on %package -n libcdda_paranoia0 License: GPLv2+ Summary: Extracting, Verifying, and Fixing Audio Tracks from CDs - runtime library Group: System/Libraries AutoReqProv: on %package devel License: GPLv2+ Requires: libcdda_interface0 = %{version} Requires: libcdda_paranoia0 = %{version} Summary: Include Files and Libraries Mandatory for Development Group: Development/Libraries/C and C++ AutoReqProv: on %description This CDDA reader distribution ('cdparanoia') reads audio from the CD-ROM directly as data and writes the data to a file or pipe as .wav, .aifc, or raw 16-bit linear PCM. This is a beta release. See http://www.xiph.org/paranoia/. Authors: -------- Monty %description devel This CDDA reader distribution ('cdparanoia') reads audio from the CD-ROM directly as data and writes the data to a file or pipe as .wav, .aifc, or raw 16-bit linear PCM. This is a beta release. See http://www.xiph.org/paranoia/. Authors: -------- Monty %description -n libcdda_interface0 This CDDA reader distribution ('cdparanoia') reads audio from the CD-ROM directly as data and writes the data to a file or pipe as .wav, .aifc, or raw 16-bit linear PCM. This is a beta release. See http://www.xiph.org/paranoia/. Authors: -------- Monty %description -n libcdda_paranoia0 This CDDA reader distribution ('cdparanoia') reads audio from the CD-ROM directly as data and writes the data to a file or pipe as .wav, .aifc, or raw 16-bit linear PCM. This is a beta release. See http://www.xiph.org/paranoia/. Authors: -------- Monty %prep %setup -q -n cdparanoia-%{filever} %patch1 #%patch2 %patch3 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch -P 13 -p1 %build cp configure.guess config.guess cp configure.sub config.sub %{?suse_update_config:%{suse_update_config -f}} cp config.guess configure.guess cp config.sub configure.sub autoconf CFLAGS="$RPM_OPT_FLAGS" \ ./configure \ --prefix=/usr \ --mandir=%{_mandir} \ --libdir=%_libdir make %install mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/man1,usr/{bin,include,lib}} make prefix=$RPM_BUILD_ROOT/usr \ LIBDIR=$RPM_BUILD_ROOT/%_libdir \ MANDIR=$RPM_BUILD_ROOT/%{_mandir} install JAPN_MANDIR=$RPM_BUILD_ROOT/%{_mandir}/ja/man1 mkdir -p $JAPN_MANDIR install -m644 cdparanoia.1.jp $JAPN_MANDIR/cdparanoia.1 # do not package static libraries. rm $RPM_BUILD_ROOT/%_libdir/libcdda_interface.a rm $RPM_BUILD_ROOT/%_libdir/libcdda_paranoia.a %clean rm -rf $RPM_BUILD_ROOT %post -n libcdda_interface0 -p /sbin/ldconfig %postun -n libcdda_interface0 -p /sbin/ldconfig %post -n libcdda_paranoia0 -p /sbin/ldconfig %postun -n libcdda_paranoia0 -p /sbin/ldconfig %files %defattr(-,root,root) %doc README COPYING* %{_mandir}/man1/* %{_mandir}/ja/man1/* /usr/bin/* %files -n libcdda_interface0 %defattr(-,root,root) %_libdir/libcdda_interface.so.0 %_libdir/libcdda_interface.so.0.* %files -n libcdda_paranoia0 %defattr(-,root,root) %_libdir/libcdda_paranoia.so.0 %_libdir/libcdda_paranoia.so.0.* %files devel %defattr(-,root,root) /usr/include/* %_libdir/lib*.so %changelog