2008-01-24 12:09:33 +00:00
|
|
|
#
|
2009-08-07 13:56:28 +00:00
|
|
|
# spec file for package libcdio (Version 0.81)
|
2008-01-24 12:09:33 +00:00
|
|
|
#
|
2010-02-24 01:15:58 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-01-24 12:09:33 +00:00
|
|
|
#
|
2008-09-09 17:05:40 +00:00
|
|
|
# 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.
|
|
|
|
|
2008-01-24 12:09:33 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-11 17:50:24 +00:00
|
|
|
|
2008-01-24 12:09:33 +00:00
|
|
|
Name: libcdio
|
|
|
|
# WARNING: After editing this file please call Re or rpmbuild to update spec file:
|
2011-02-02 00:38:38 +00:00
|
|
|
# %%(sh %%{_sourcedir}/libcdio_spec-prepare.sh %%{_sourcedir} %%{name})
|
2008-01-24 12:09:33 +00:00
|
|
|
# You want standard build unless you will work-around build dependency on itself.
|
|
|
|
%define STANDARD_BUILD 1
|
|
|
|
%define _name libcdio
|
|
|
|
BuildRequires: gcc-c++ licenses pkg-config popt-devel
|
|
|
|
%if %STANDARD_BUILD
|
|
|
|
BuildRequires: libcddb-devel libcdio-devel ncurses-devel vcdimager-devel
|
2010-04-28 20:58:17 +00:00
|
|
|
#!BuildIgnore: libcdio-mini-devel
|
2008-01-24 12:09:33 +00:00
|
|
|
# Only for regression testing:
|
|
|
|
#BuildRequires: cdparanoia
|
|
|
|
%endif
|
2011-02-02 00:38:38 +00:00
|
|
|
Version: 0.82
|
2010-04-28 20:58:17 +00:00
|
|
|
Release: 3
|
2008-01-24 12:09:33 +00:00
|
|
|
# WARNING: After changing versions please call Re or rpmbuild to auto-update spec file:
|
2009-08-07 13:56:28 +00:00
|
|
|
%define libcdio_name 10
|
2008-01-24 12:09:33 +00:00
|
|
|
%define libcdio_paranoia_name 0
|
|
|
|
%define libcdio_cdda_name 0
|
|
|
|
%define libcdio++_name 0
|
2009-08-07 13:56:28 +00:00
|
|
|
%define libiso9660_name 7
|
2008-01-24 12:09:33 +00:00
|
|
|
%define libudf_name 0
|
2011-02-02 00:38:38 +00:00
|
|
|
Url: http://savannah.gnu.org/projects/libcdio
|
2008-01-24 12:09:33 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2008-01-24 12:09:33 +00:00
|
|
|
Summary: CD-ROM Access Library
|
2011-02-02 00:38:38 +00:00
|
|
|
Source: http://ftp.gnu.org/gnu/libcdio/%{_name}-%{version}.tar.bz2
|
2008-01-24 12:09:33 +00:00
|
|
|
Source1: %{_name}_spec-prepare.sh
|
|
|
|
Source2: libcdio-mini-%{version}-rpmlintrc
|
2010-02-24 01:15:58 +00:00
|
|
|
Source3: baselibs.conf
|
2008-01-24 12:09:33 +00:00
|
|
|
Requires: licenses
|
2009-01-08 17:33:36 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcdio-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-01-24 12:09:33 +00:00
|
|
|
%if %STANDARD_BUILD == 0
|
|
|
|
Provides: %{_name} = %{version}
|
|
|
|
%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%package -n libcdio10
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2008-01-24 12:09:33 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Summary: CD-ROM Access Library
|
2009-01-08 17:33:36 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcdio-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-01-24 12:09:33 +00:00
|
|
|
# Name for <= 10.2
|
|
|
|
Obsoletes: libcdio <= 0.78.2
|
|
|
|
Provides: libcdio = %{version}
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%description -n libcdio10
|
2008-01-24 12:09:33 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
|
|
|
%package -n libcdio_cdda0
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2008-01-24 12:09:33 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Summary: CD-ROM Access Library
|
2009-01-08 17:33:36 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcdio-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%description -n libcdio_cdda0
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
|
|
|
%package -n libcdio_paranoia0
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2008-01-24 12:09:33 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Summary: CD-ROM Access Library
|
2009-01-08 17:33:36 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcdio-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%description -n libcdio_paranoia0
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
|
|
|
%package -n libcdio++0
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2008-01-24 12:09:33 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Summary: CD-ROM Access Library
|
2009-01-08 17:33:36 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcdio-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%description -n libcdio++0
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%package -n libiso9660-7
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2008-01-24 12:09:33 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Summary: CD-ROM Access Library
|
2009-01-08 17:33:36 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcdio-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-01-24 12:09:33 +00:00
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%description -n libiso9660-7
|
2008-01-24 12:09:33 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
|
|
|
%package -n libudf0
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2008-01-24 12:09:33 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Summary: CD-ROM Access Library
|
2009-01-08 17:33:36 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcdio-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%description -n libudf0
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
|
|
|
%package utils
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2008-01-24 12:09:33 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Summary: CD-ROM Access Library
|
|
|
|
PreReq: %install_info_prereq
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
|
|
|
%package devel
|
2010-02-24 01:15:58 +00:00
|
|
|
License: GPLv2+
|
2011-02-02 00:38:38 +00:00
|
|
|
Group: Development/Languages/C and C++
|
2008-01-24 12:09:33 +00:00
|
|
|
Summary: CD-ROM access library
|
2009-08-07 13:56:28 +00:00
|
|
|
Requires: libcdio10 = %{version} libcdio_cdda0 = %{version} libcdio_paranoia0 = %{version} libcdio++0 = %{version} libiso9660-7 = %{version} libudf0 = %{version} glibc-devel
|
2008-01-24 12:09:33 +00:00
|
|
|
%if %STANDARD_BUILD == 0
|
|
|
|
Provides: %{_name}-devel = %{version}
|
|
|
|
%endif
|
2009-01-08 17:33:36 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcdio-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
Rocky Bernstein <rocky@panix.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2008-06-22 01:08:29 +00:00
|
|
|
autoreconf -f -i
|
2011-02-02 00:38:38 +00:00
|
|
|
# FIXME: Required .pc files are not installed without --enable-cpp-progs.
|
2009-08-07 13:56:28 +00:00
|
|
|
%configure\
|
|
|
|
--disable-static\
|
|
|
|
--enable-cpp-progs\
|
|
|
|
--with-pic
|
2008-01-24 12:09:33 +00:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
mv $RPM_BUILD_ROOT%{_mandir}/jp $RPM_BUILD_ROOT%{_mandir}/ja
|
|
|
|
for FILE in COPYING ; do
|
|
|
|
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
|
|
|
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
|
|
|
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
#empty depdendency libs
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%post -n libcdio10 -p /sbin/ldconfig
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%post -n libcdio_cdda0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libcdio_paranoia0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libcdio++0 -p /sbin/ldconfig
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%post -n libiso9660-7 -p /sbin/ldconfig
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%post -n libudf0 -p /sbin/ldconfig
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%postun -n libcdio10 -p /sbin/ldconfig
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%postun -n libcdio_cdda0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libcdio_paranoia0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libcdio++0 -p /sbin/ldconfig
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%postun -n libiso9660-7 -p /sbin/ldconfig
|
2008-01-24 12:09:33 +00:00
|
|
|
|
|
|
|
%postun -n libudf0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post utils
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%postun utils
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%files -n libcdio10
|
2008-01-24 12:09:33 +00:00
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libcdio.so.*
|
|
|
|
|
|
|
|
%files -n libcdio_cdda0
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libcdio_cdda.so.*
|
|
|
|
|
|
|
|
%files -n libcdio_paranoia0
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libcdio_paranoia.so.*
|
|
|
|
|
|
|
|
%files -n libcdio++0
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libcdio++.so.*
|
|
|
|
%{_libdir}/libiso9660++.so.*
|
|
|
|
|
2009-08-07 13:56:28 +00:00
|
|
|
%files -n libiso9660-7
|
2008-01-24 12:09:33 +00:00
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libiso9660.so.*
|
|
|
|
|
|
|
|
%files -n libudf0
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libudf.so.*
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
%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*
|
|
|
|
%doc %{_mandir}/man?/*.*
|
|
|
|
%lang(ja) %doc %{_mandir}/ja/man?/*.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_includedir}/cdio
|
|
|
|
%{_includedir}/cdio++
|
|
|
|
%{_libdir}/libcdio*.so
|
|
|
|
%{_libdir}/libiso9660*.so
|
|
|
|
%{_libdir}/libudf*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|