forked from pool/libcdio
Accepting request 112798 from home:plater
This is a standalone libcdio, updated to 0.83 and isn't intended for factory yet. Vcdimager's test suite fails atm and I will submit one with the test suite disabled as part of the test. I have branched the existing one as backup if something goes wrong OBS-URL: https://build.opensuse.org/request/show/112798 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libcdio?expand=0&rev=26
This commit is contained in:
109
libcdio.spec
109
libcdio.spec
@@ -17,48 +17,30 @@
|
||||
|
||||
|
||||
Name: libcdio
|
||||
# WARNING: After editing this file please call Re or rpmbuild to update spec file:
|
||||
# %%(sh %%{_sourcedir}/libcdio_spec-prepare.sh %%{_sourcedir} %%{name})
|
||||
# You want standard build unless you will work-around build dependency on itself.
|
||||
%define STANDARD_BUILD 1
|
||||
%define _name libcdio
|
||||
Version: 0.83
|
||||
Release: 0
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: popt-devel
|
||||
%if %STANDARD_BUILD
|
||||
BuildRequires: libcddb-devel
|
||||
BuildRequires: libcdio-devel
|
||||
BuildRequires: pkgconfig(libcddb)
|
||||
#BuildRequires: libcdio-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: vcdimager-devel
|
||||
BuildRequires: pkgconfig(libvcdinfo)
|
||||
#!BuildIgnore: libcdio-mini-devel
|
||||
# Only for regression testing:
|
||||
#BuildRequires: cdparanoia
|
||||
%endif
|
||||
Version: 0.82
|
||||
Release: 0
|
||||
# WARNING: After changing versions please call Re or rpmbuild to auto-update spec file:
|
||||
%define libcdio_name 12
|
||||
%define libcdio_paranoia_name 0
|
||||
%define libcdio_cdda_name 0
|
||||
%define libcdio++_name 0
|
||||
%define libiso9660_name 7
|
||||
%define libudf_name 0
|
||||
Url: http://savannah.gnu.org/projects/libcdio
|
||||
Summary: CD-ROM Access Library
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Multimedia/Other
|
||||
Source: http://ftp.gnu.org/gnu/libcdio/%{_name}-%{version}.tar.bz2
|
||||
Source1: %{_name}_spec-prepare.sh
|
||||
Source2: baselibs.conf
|
||||
Source0: http://ftp.gnu.org/gnu/libcdio/%{name}-%{version}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: libcdio-64bit
|
||||
%endif
|
||||
#
|
||||
%if %STANDARD_BUILD == 0
|
||||
Provides: %{_name} = %{version}
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -73,7 +55,7 @@ Authors:
|
||||
Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
%package -n libcdio12
|
||||
%package -n libcdio13
|
||||
Summary: CD-ROM Access Library
|
||||
Group: Productivity/Multimedia/Other
|
||||
# bug437293
|
||||
@@ -85,7 +67,7 @@ Obsoletes: libcdio-64bit
|
||||
Obsoletes: libcdio <= 0.78.2
|
||||
Provides: libcdio = %{version}
|
||||
|
||||
%description -n libcdio12
|
||||
%description -n libcdio13
|
||||
This library encapsulates CD-ROM reading and control. Applications
|
||||
wanting to be oblivious to the OS and device-dependent properties of a
|
||||
CD-ROM can use this library.
|
||||
@@ -97,7 +79,7 @@ Authors:
|
||||
Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
%package -n libcdio_cdda0
|
||||
%package -n libcdio_cdda1
|
||||
Summary: CD-ROM Access Library
|
||||
Group: Productivity/Multimedia/Other
|
||||
# bug437293
|
||||
@@ -106,7 +88,7 @@ Obsoletes: libcdio-64bit
|
||||
%endif
|
||||
#
|
||||
|
||||
%description -n libcdio_cdda0
|
||||
%description -n libcdio_cdda1
|
||||
This library encapsulates CD-ROM reading and control. Applications
|
||||
wanting to be oblivious to the OS and device-dependent properties of a
|
||||
CD-ROM can use this library.
|
||||
@@ -118,7 +100,7 @@ Authors:
|
||||
Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
%package -n libcdio_paranoia0
|
||||
%package -n libcdio_paranoia1
|
||||
Summary: CD-ROM Access Library
|
||||
Group: Productivity/Multimedia/Other
|
||||
# bug437293
|
||||
@@ -127,7 +109,7 @@ Obsoletes: libcdio-64bit
|
||||
%endif
|
||||
#
|
||||
|
||||
%description -n libcdio_paranoia0
|
||||
%description -n libcdio_paranoia1
|
||||
This library encapsulates CD-ROM reading and control. Applications
|
||||
wanting to be oblivious to the OS and device-dependent properties of a
|
||||
CD-ROM can use this library.
|
||||
@@ -160,7 +142,7 @@ Authors:
|
||||
Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
%package -n libiso9660-7
|
||||
%package -n libiso9660-8
|
||||
Summary: CD-ROM Access Library
|
||||
Group: Productivity/Multimedia/Other
|
||||
# bug437293
|
||||
@@ -169,7 +151,7 @@ Obsoletes: libcdio-64bit
|
||||
%endif
|
||||
#
|
||||
|
||||
%description -n libiso9660-7
|
||||
%description -n libiso9660-8
|
||||
This library encapsulates CD-ROM reading and control. Applications
|
||||
wanting to be oblivious to the OS and device-dependent properties of a
|
||||
CD-ROM can use this library.
|
||||
@@ -222,10 +204,13 @@ Authors:
|
||||
%package devel
|
||||
Summary: CD-ROM access library
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: libcdio12 = %{version} libcdio_cdda0 = %{version} libcdio_paranoia0 = %{version} libcdio++0 = %{version} libiso9660-7 = %{version} libudf0 = %{version} glibc-devel
|
||||
%if %STANDARD_BUILD == 0
|
||||
Provides: %{_name}-devel = %{version}
|
||||
%endif
|
||||
Requires: libcdio13 = %{version}
|
||||
Requires: libcdio_cdda1 = %{version}
|
||||
Requires: libcdio_paranoia1 = %{version}
|
||||
Requires: libcdio++0 = %{version}
|
||||
Requires: libiso9660-8 = %{version}
|
||||
Requires: libudf0 = %{version}
|
||||
Requires: glibc-devel
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: libcdio-devel-64bit
|
||||
@@ -245,16 +230,28 @@ Authors:
|
||||
Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
%setup -q
|
||||
%define buildir ${PWD}
|
||||
|
||||
%build
|
||||
%if 1 == 1
|
||||
export VCDINFO_CFLAGS=-I%{_includedir}/libvcd
|
||||
export VCDINFO_LIBS="-L%{_libdir} -lvcdinfo -L%{buildir}/lib/iso9660/.libs/ -liso9660 -L%{buildir}/lib/driver/.libs/ -lcdio"
|
||||
%endif
|
||||
autoreconf -f -i
|
||||
# FIXME: Required .pc files are not installed without --enable-cpp-progs.
|
||||
%configure\
|
||||
--disable-static\
|
||||
--enable-cpp-progs\
|
||||
--with-pic
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
VCDINFO_CFLAGS=-I%{_includedir}/libvcd VCDINFO_LIBS="-L%{_libdir} -lvcdinfo -L%{buildir}/lib/iso9660/.libs -liso9660 -L%{buildir}/lib/driver/.libs -lcdio" %configure \
|
||||
--disable-rpath \
|
||||
--enable-static=n \
|
||||
--enable-shared=yes \
|
||||
--enable-cpp-progs \
|
||||
--with-pic \
|
||||
--enable-vcd-info=no
|
||||
|
||||
VCDINFO_CFLAGS=-I%{_includedir}/libvcd VCDINFO_LIBS="-L%{_libdir} \
|
||||
-lvcdinfo -L%{buildir}/lib/iso9660/.libs/ -liso9660 -L%{buildir}/lib/driver/.libs/ -lcdio" make -e
|
||||
#%{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
@@ -265,27 +262,27 @@ rm -f %{buildroot}%{_libdir}/*.la
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -n libcdio12 -p /sbin/ldconfig
|
||||
%post -n libcdio13 -p /sbin/ldconfig
|
||||
|
||||
%post -n libcdio_cdda0 -p /sbin/ldconfig
|
||||
%post -n libcdio_cdda1 -p /sbin/ldconfig
|
||||
|
||||
%post -n libcdio_paranoia0 -p /sbin/ldconfig
|
||||
%post -n libcdio_paranoia1 -p /sbin/ldconfig
|
||||
|
||||
%post -n libcdio++0 -p /sbin/ldconfig
|
||||
|
||||
%post -n libiso9660-7 -p /sbin/ldconfig
|
||||
%post -n libiso9660-8 -p /sbin/ldconfig
|
||||
|
||||
%post -n libudf0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcdio12 -p /sbin/ldconfig
|
||||
%postun -n libcdio13 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcdio_cdda0 -p /sbin/ldconfig
|
||||
%postun -n libcdio_cdda1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcdio_paranoia0 -p /sbin/ldconfig
|
||||
%postun -n libcdio_paranoia1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcdio++0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libiso9660-7 -p /sbin/ldconfig
|
||||
%postun -n libiso9660-8 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libudf0 -p /sbin/ldconfig
|
||||
|
||||
@@ -295,15 +292,15 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%postun utils
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%files -n libcdio12
|
||||
%files -n libcdio13
|
||||
%defattr (-, root, root)
|
||||
%{_libdir}/libcdio.so.*
|
||||
|
||||
%files -n libcdio_cdda0
|
||||
%files -n libcdio_cdda1
|
||||
%defattr (-, root, root)
|
||||
%{_libdir}/libcdio_cdda.so.*
|
||||
|
||||
%files -n libcdio_paranoia0
|
||||
%files -n libcdio_paranoia1
|
||||
%defattr (-, root, root)
|
||||
%{_libdir}/libcdio_paranoia.so.*
|
||||
|
||||
@@ -312,7 +309,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libcdio++.so.*
|
||||
%{_libdir}/libiso9660++.so.*
|
||||
|
||||
%files -n libiso9660-7
|
||||
%files -n libiso9660-8
|
||||
%defattr (-, root, root)
|
||||
%{_libdir}/libiso9660.so.*
|
||||
|
||||
@@ -324,9 +321,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%defattr (-, root, root)
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README README.libcdio THANKS TODO
|
||||
%{_bindir}/cd-*
|
||||
%if %STANDARD_BUILD
|
||||
%{_bindir}/cdda-*
|
||||
%endif
|
||||
%{_bindir}/iso-*
|
||||
%{_bindir}/mmc-*
|
||||
%doc %{_infodir}/*.info*
|
||||
|
Reference in New Issue
Block a user