Accepting request 97342 from multimedia:libs

- remove call to suse_update_config (very old work around) (forwarded request 97327 from coolo)

OBS-URL: https://build.opensuse.org/request/show/97342
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cdparanoia?expand=0&rev=16
This commit is contained in:
Stephan Kulow 2011-12-21 08:59:27 +00:00 committed by Git OBS Bridge
parent 7582547ba1
commit 419d66b310
2 changed files with 42 additions and 70 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Dec 20 20:07:26 UTC 2011 - coolo@suse.com
- remove call to suse_update_config (very old work around)
-------------------------------------------------------------------
Wed Oct 5 14:52:13 UTC 2011 - uli@suse.com
- cross-build fixes: use %configure macro, set bindir and include
dir explicitly when installing
-------------------------------------------------------------------
Thu Jan 7 20:38:06 CET 2010 - jengelh@medozas.de

View File

@ -1,7 +1,7 @@
#
# spec file for package cdparanoia (Version 3.10.2)
# spec file for package cdparanoia
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 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
@ -15,23 +15,20 @@
# 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
Release: 0
Summary: A Program for Extracting, Verifying, and Fixing Audio Tracks from CDs
License: GPL-2.0+
Group: Productivity/Multimedia/CD/Grabbers
Url: http://www.xiph.org/paranoia/index.html
%define filever III-10.2
Source: cdparanoia-%{filever}.src.tar.bz2
@ -44,27 +41,22 @@ Patch11: cdparanoia-III-05-gcc4.3.dpatch
Patch12: cdparanoia-III-06-endian.dpatch
Patch13: cdparanoia-large-pic.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
%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
Requires: libcdda_interface0 = %{version}
Requires: libcdda_paranoia0 = %{version}
%description
This CDDA reader distribution ('cdparanoia') reads audio from the
@ -73,12 +65,6 @@ CD-ROM directly as data and writes the data to a file or pipe as .wav,
This is a beta release. See http://www.xiph.org/paranoia/.
Authors:
--------
Monty <xiphmont@mit.edu>
%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,
@ -86,12 +72,6 @@ CD-ROM directly as data and writes the data to a file or pipe as .wav,
This is a beta release. See http://www.xiph.org/paranoia/.
Authors:
--------
Monty <xiphmont@mit.edu>
%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,
@ -99,12 +79,6 @@ CD-ROM directly as data and writes the data to a file or pipe as .wav,
This is a beta release. See http://www.xiph.org/paranoia/.
Authors:
--------
Monty <xiphmont@mit.edu>
%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,
@ -112,50 +86,37 @@ CD-ROM directly as data and writes the data to a file or pipe as .wav,
This is a beta release. See http://www.xiph.org/paranoia/.
Authors:
--------
Monty <xiphmont@mit.edu>
%prep
%setup -q -n cdparanoia-%{filever}
%patch1
#%patch2
#%patch2
%patch3
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch -P 13 -p1
%patch13 -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
autoreconf
%configure
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
make prefix=%{buildroot}%{_prefix} \
LIBDIR=%{buildroot}%{_libdir} \
MANDIR=%{buildroot}%{_mandir} \
BINDIR=%{buildroot}%{_bindir} \
INCLUDEDIR=%{buildroot}%{_includedir} \
install
JAPN_MANDIR=%{buildroot}%{_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
rm %{buildroot}%{_libdir}/libcdda_interface.a
rm %{buildroot}%{_libdir}/libcdda_paranoia.a
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%post -n libcdda_interface0 -p /sbin/ldconfig
@ -170,21 +131,21 @@ rm -rf $RPM_BUILD_ROOT
%doc README COPYING*
%{_mandir}/man1/*
%{_mandir}/ja/man1/*
/usr/bin/*
%{_bindir}/*
%files -n libcdda_interface0
%defattr(-,root,root)
%_libdir/libcdda_interface.so.0
%_libdir/libcdda_interface.so.0.*
%{_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.*
%{_libdir}/libcdda_paranoia.so.0
%{_libdir}/libcdda_paranoia.so.0.*
%files devel
%defattr(-,root,root)
/usr/include/*
%_libdir/lib*.so
%{_includedir}/*
%{_libdir}/lib*.so
%changelog