libcdio/libcdio.spec

358 lines
8.7 KiB
RPMSpec

#
# spec file for package libcdio
#
# 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
# 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: 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
BuildRequires: gcc-c++ licenses pkg-config popt-devel
%if %STANDARD_BUILD
BuildRequires: libcddb-devel libcdio-devel ncurses-devel vcdimager-devel
#!BuildIgnore: libcdio-mini-devel
# Only for regression testing:
#BuildRequires: cdparanoia
%endif
Version: 0.82
Release: 1
# WARNING: After changing versions please call Re or rpmbuild to auto-update spec file:
%define libcdio_name 10
%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
Group: Productivity/Multimedia/Other
License: GPLv2+
Summary: CD-ROM Access Library
Source: http://ftp.gnu.org/gnu/libcdio/%{_name}-%{version}.tar.bz2
Source1: %{_name}_spec-prepare.sh
Source2: libcdio-mini-%{version}-rpmlintrc
Source3: baselibs.conf
Requires: licenses
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%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>
%package -n libcdio10
License: GPLv2+
Group: Productivity/Multimedia/Other
Summary: CD-ROM Access Library
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
# Name for <= 10.2
Obsoletes: libcdio <= 0.78.2
Provides: libcdio = %{version}
%description -n libcdio10
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
License: GPLv2+
Group: Productivity/Multimedia/Other
Summary: CD-ROM Access Library
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%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
License: GPLv2+
Group: Productivity/Multimedia/Other
Summary: CD-ROM Access Library
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%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
License: GPLv2+
Group: Productivity/Multimedia/Other
Summary: CD-ROM Access Library
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%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>
%package -n libiso9660-7
License: GPLv2+
Group: Productivity/Multimedia/Other
Summary: CD-ROM Access Library
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%description -n libiso9660-7
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
License: GPLv2+
Group: Productivity/Multimedia/Other
Summary: CD-ROM Access Library
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%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
License: GPLv2+
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
License: GPLv2+
Group: Development/Languages/C and C++
Summary: CD-ROM access library
Requires: libcdio10 = %{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
# bug437293
%ifarch ppc64
Obsoletes: libcdio-devel-64bit
%endif
#
%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
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}
%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
%post -n libcdio10 -p /sbin/ldconfig
%post -n libcdio_cdda0 -p /sbin/ldconfig
%post -n libcdio_paranoia0 -p /sbin/ldconfig
%post -n libcdio++0 -p /sbin/ldconfig
%post -n libiso9660-7 -p /sbin/ldconfig
%post -n libudf0 -p /sbin/ldconfig
%postun -n libcdio10 -p /sbin/ldconfig
%postun -n libcdio_cdda0 -p /sbin/ldconfig
%postun -n libcdio_paranoia0 -p /sbin/ldconfig
%postun -n libcdio++0 -p /sbin/ldconfig
%postun -n libiso9660-7 -p /sbin/ldconfig
%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
%files -n libcdio10
%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.*
%files -n libiso9660-7
%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