SHA256
1
0
forked from pool/libcdio
libcdio/libcdio.spec
2012-04-28 10:15:53 +00:00

315 lines
7.8 KiB
RPMSpec

#
# spec file for package libcdio
#
# Copyright (c) 2012 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/
#
%define vcdinfo 1
%define build_paranoia 0
Name: libcdio
Version: 0.83.git
Release: 0
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: popt-devel
BuildRequires: pkgconfig(libcddb)
#BuildRequires: libcdio-devel
BuildRequires: ncurses-devel
BuildRequires: pkgconfig(libvcdinfo)
Url: http://savannah.gnu.org/projects/libcdio
Summary: CD-ROM Access Library
License: GPL-3.0+
Group: Productivity/Multimedia/Other
# http://ftp.gnu.org/gnu/libcdio/
Source0: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%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.
%package -n libcdio13
Summary: CD-ROM Access Library
Group: Productivity/Multimedia/Other
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
# Name for <= 10.2
Obsoletes: libcdio <= 0.78.2
Provides: libcdio = %{version}
%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.
%if %{build_paranoia} == 1
%package -n libcdio_cdda1
Summary: CD-ROM Access Library
Group: Productivity/Multimedia/Other
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%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.
%package -n libcdio_paranoia1
Summary: CD-ROM Access Library
Group: Productivity/Multimedia/Other
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%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.
%endif
%package -n libcdio++0
Summary: CD-ROM Access Library
Group: Productivity/Multimedia/Other
# 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-8
Summary: CD-ROM Access Library
Group: Productivity/Multimedia/Other
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
%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.
%package -n libudf0
Summary: CD-ROM Access Library
Group: Productivity/Multimedia/Other
# 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.
%package -n cdio-utils
Summary: CD-ROM Access Library
Group: Productivity/Multimedia/Other
PreReq: %install_info_prereq
Provides: %{name}-utils = %{version}
Obsoletes: %{name}-utils < %{version}
%description -n cdio-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.
%package devel
Summary: CD-ROM access library
Group: Development/Languages/C and C++
Requires: glibc-devel
Requires: libcdio++0 = %{version}
Requires: libcdio13 = %{version}
Requires: libiso9660-8 = %{version}
Requires: libudf0 = %{version}
%if %{build_paranoia} == 1
Requires: libcdio_cdda1 = %{version}
Requires: libcdio_paranoia1 = %{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.
%define _configure ./autogen.sh
%prep
%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.
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 \
%if %{vcdinfo} == 1
--enable-vcd-info=yes
%endif
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
%if 1 == 0
mv $RPM_BUILD_ROOT%{_mandir}/jp $RPM_BUILD_ROOT%{_mandir}/ja
%endif
#empty depdendency libs
rm -f %{buildroot}%{_libdir}/*.la
%fdupes -s %{buildroot}%{_mandir}
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libcdio13 -p /sbin/ldconfig
%post -n libcdio++0 -p /sbin/ldconfig
%post -n libiso9660-8 -p /sbin/ldconfig
%post -n libudf0 -p /sbin/ldconfig
%postun -n libcdio13 -p /sbin/ldconfig
%postun -n libcdio++0 -p /sbin/ldconfig
%postun -n libiso9660-8 -p /sbin/ldconfig
%postun -n libudf0 -p /sbin/ldconfig
%post -n cdio-utils
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun -n cdio-utils
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files -n libcdio13
%defattr (-, root, root)
%{_libdir}/libcdio.so.*
%files -n libcdio++0
%defattr (-, root, root)
%{_libdir}/libcdio++.so.*
%{_libdir}/libiso9660++.so.*
%files -n libiso9660-8
%defattr (-, root, root)
%{_libdir}/libiso9660.so.*
%files -n libudf0
%defattr (-, root, root)
%{_libdir}/libudf.so.*
%files -n cdio-utils
%defattr (-, root, root)
%doc AUTHORS COPYING NEWS README README.libcdio THANKS TODO
#ChangeLog
%{_bindir}/cd-*
%{_bindir}/cdda-*
%{_bindir}/iso-*
%{_bindir}/mmc-*
%doc %{_infodir}/*.info*
%doc %{_mandir}/man?/*.*
%if 1 == 0
%lang(ja) %doc %{_mandir}/ja/man?/*.*
%endif
%files devel
%defattr (-, root, root)
%{_includedir}/cdio
%{_includedir}/cdio++
%{_libdir}/libcdio*.so
%{_libdir}/libiso9660*.so
%{_libdir}/libudf*.so
%{_libdir}/pkgconfig/*.pc
%if %{build_paranoia} == 1
%post -n libcdio_cdda1 -p /sbin/ldconfig
%post -n libcdio_paranoia1 -p /sbin/ldconfig
%postun -n libcdio_cdda1 -p /sbin/ldconfig
%postun -n libcdio_paranoia1 -p /sbin/ldconfig
%files -n libcdio_cdda1
%defattr (-, root, root)
%{_libdir}/libcdio_cdda.so.*
%files -n libcdio_paranoia1
%defattr (-, root, root)
%{_libdir}/libcdio_paranoia.so.*
%endif
%changelog