File libcdio-mini.spec of Package libcdio-mini

#
# spec file for package libcdio-mini (Version 0.80)
#
# Copyright (c) 2008 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-mini
# WARNING: Do not edit this auto generated 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 0
%define _name libcdio
BuildRequires:  gcc-c++ licenses pkg-config popt-devel
%if %STANDARD_BUILD
BuildRequires:  libcddb-devel libcdio-devel ncurses-devel vcdimager-devel
# Only for regression testing:
#BuildRequires:  cdparanoia
%endif
Version:        0.80
Release:        5
# WARNING: After changing versions please call Re or rpmbuild to auto-update spec file:
%define libcdio_name 7
%define libcdio_paranoia_name 0
%define libcdio_cdda_name 0
%define libcdio++_name 0
%define libiso9660_name 5
%define libudf_name 0
Url:            http://www.gnu.org/software/libcdio/
Group:          Productivity/Multimedia/Other
License:        GPL v2 or later
Summary:        Temporary Build Staging Package of CD-ROM Access Library
Source:         %{_name}-%{version}.tar.bz2
Source1:        %{_name}_spec-prepare.sh
Source2:        libcdio-mini-%{version}-rpmlintrc
Patch0:         libcdio-bnc394195-install-all-pc-files.patch
Requires:       licenses
%if %STANDARD_BUILD == 0
Provides:       %{_name} = %{version}
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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 libcdio7-mini
Provides:       libcdio-mini = %{version}-%{release}
License:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Summary:        Temporary Build Staging Package of CD-ROM Access Library
# Name for <= 10.2
Obsoletes:      libcdio <= 0.78.2
Provides:       libcdio = %{version}

%description -n libcdio7-mini
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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-mini
License:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Summary:        Temporary Build Staging Package of CD-ROM Access Library

%description -n libcdio_cdda0-mini
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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-mini
License:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Summary:        Temporary Build Staging Package of CD-ROM Access Library

%description -n libcdio_paranoia0-mini
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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-mini
License:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Summary:        Temporary Build Staging Package of CD-ROM Access Library

%description -n libcdio++0-mini
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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-5-mini
License:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Summary:        Build Staging Package of CD-ROM Access Library

%description -n libiso9660-5-mini
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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-mini
License:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Summary:        Build Staging Package of CD-ROM Access Library

%description -n libudf0-mini
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Summary:        Temporary Build Staging Package of CD-ROM Access Library
PreReq:         %install_info_prereq

%description utils
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Summary:        Temporary Build Staging Package of CD-ROM access library
Requires:       libcdio7-mini = %{version} libcdio_cdda0-mini = %{version} libcdio_paranoia0-mini = %{version} libcdio++0-mini = %{version} libiso9660-5-mini = %{version} libudf0-mini = %{version} glibc-devel
%if %STANDARD_BUILD == 0
Provides:       %{_name}-devel = %{version}
%endif

%description devel
This is a temporary build staging package of libcdio needed for
bootstrapping of libcdio, libcddb and vcdimager packages. Don't use it
for any other purpose!

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}
%patch0 -p1

%build
autoreconf -f -i
%configure --disable-static --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 libcdio7-mini -p /sbin/ldconfig

%post -n libcdio_cdda0-mini -p /sbin/ldconfig

%post -n libcdio_paranoia0-mini -p /sbin/ldconfig

%post -n libcdio++0-mini -p /sbin/ldconfig

%post -n libiso9660-5-mini -p /sbin/ldconfig

%post -n libudf0-mini -p /sbin/ldconfig

%postun -n libcdio7-mini -p /sbin/ldconfig

%postun -n libcdio_cdda0-mini -p /sbin/ldconfig

%postun -n libcdio_paranoia0-mini -p /sbin/ldconfig

%postun -n libcdio++0-mini -p /sbin/ldconfig

%postun -n libiso9660-5-mini -p /sbin/ldconfig

%postun -n libudf0-mini -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 libcdio7-mini
%defattr (-, root, root)
%{_libdir}/libcdio.so.*

%files -n libcdio_cdda0-mini
%defattr (-, root, root)
%{_libdir}/libcdio_cdda.so.*

%files -n libcdio_paranoia0-mini
%defattr (-, root, root)
%{_libdir}/libcdio_paranoia.so.*

%files -n libcdio++0-mini
%defattr (-, root, root)
%{_libdir}/libcdio++.so.*
%{_libdir}/libiso9660++.so.*

%files -n libiso9660-5-mini
%defattr (-, root, root)
%{_libdir}/libiso9660.so.*

%files -n libudf0-mini
%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
* Tue Sep 09 2008 sbrabec@suse.cz
- Update Summary of *mini* packages (bnc#418304).
* Wed Jun 18 2008 schwab@suse.de
- Use autoreconf -i.
* Sat May 24 2008 hpj@suse.de
- Add libcdio-bnc394195-install-all-pc-files.patch (bnc#394195).
* Wed May 21 2008 cthiel@suse.de
- fix baselibs.conf
* Fri Apr 25 2008 sbrabec@suse.cz
- Updated to version 0.80:
  * Add option to log summary output in cd-paranoia
  * More string bounds checking to eliminate known string overflow
  conditions, Savannah#21910
  * add --mode="any" on cd-read which uses a mmc_read_sectors with
  read-type CDIO_MMC_READ_TYPE_ANY.
  * add --log-summary option to cd-paranoia. Unused option
    --output-info (-i) removed
  * some small packaging bugs fixed
  * probably the last GPL v2 release; GPL v3 on the horizon.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Wed Feb 27 2008 sbrabec@suse.cz
- Fixed more possible memory allocation buffer overflows
  (bnc#351127).
* Wed Jan 09 2008 sbrabec@suse.cz
- Fixed buffer overflows for long Joliet names (#351127).
* Wed Dec 05 2007 ro@suse.de
- provide main package name in library package for debuginfo
  for mini package
* Fri Nov 16 2007 sbrabec@suse.cz
- Removed unwanted NoSource preventing mirroring to Factory.
* Fri Nov 09 2007 crrodriguez@suse.de
- fix build with gcc43
- update to version 0.79
  * libcdio cdparanoia doing the wrong thing on a single-sector read. Savannah patch #5999.
  * Leds to an open file descriptor making it impossible of e.g.
  unmounting a CDROM containing the file. Savannah bug #21147.
  * bug #19221 (possibly): memory Leak opening an inaccessible device
  * more than 30 other bugfixes
- remove libtool archives with empty dependency_libs
- exclude static libraries
* Tue Aug 07 2007 sbrabec@suse.cz
- Fixed mini file list.
* Sun Aug 05 2007 coolo@suse.de
- adding versioned provides for upgrade
* Fri Jul 20 2007 sbrabec@suse.cz
- Updated to version 0.78.2:
  * Fixed bug in libcdio.so version numbering.
  * Added mmc-tool and mmc-close-tray.
  * libudf: can now read (extract) file data, at least for ICB
  strategy type 4.
  * libcdio is starting to get updated for UTF-8 support.
  * Fixes to eject.
  * Other fixes.
- Split package according to shared library packaging policy.
- Added script to convert libcdio.spec to libcdio-mini.spec and
  update library package names.
* Mon Mar 12 2007 sbrabec@suse.cz
- Fixed NoSrc and Provides of temporary package.
* Fri Oct 06 2006 sbrabec@suse.cz
- Updated to version 0.77:
  * Added object-oriented C++ wrapper.
  * Replaced libpopt with getopt in binaries.
  * Documented cd-paranoia.
  * Added cdio_eject_media_drive.
  * Added more generic read_sectors().
  * Some provision for handling Rock-Ridge device numbers.
  * Block read routines return success if asked to read 0 blocks.
  * Start UDF handling
  * Improved developer documentation.
  * Code improvements.
  * Bug fixes.
  * Small cdda-player improvements.
  * NRG checking parses file.
  * Revised and improved example programs.
  * Replaced all uses of strcat and strcpy with strncat and
  strncpy.
* Mon Jul 03 2006 max@suse.de
- Added gcc-c++ to neededforbuild.
* Fri Jun 30 2006 sbrabec@suse.cz
- Fixed cyclic dependencies in a correct way.
* Tue Jun 27 2006 sbrabec@suse.cz
- Use NoSource in libcdio-mini.
* Thu Jun 22 2006 sbrabec@suse.cz
- Simpler solution of cyclic dependencies.
* Tue Jan 31 2006 sbrabec@suse.cz
- Do not link with invalid rpath.
- Enabled parallel build.
- Fixed devel splitting.
* Thu Jan 26 2006 sbrabec@suse.cz
- Added %%install_info_prereq.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 08 2005 sbrabec@suse.cz
- Fixed libiso9660.la circular dependency prevention trick.
* Wed Oct 26 2005 sbrabec@suse.cz
- Updated to version 0.76.
- Build as user.
* Fri Aug 05 2005 sbrabec@suse.cz
- Build with libcddb-1.2.1.
* Fri Jul 29 2005 sbrabec@suse.cz
- Updated to version 0.75.
* Mon May 09 2005 sbrabec@suse.cz
- Build with libcddb-1.0.2.
* Tue Apr 26 2005 sbrabec@suse.cz
- Updated to version 0.73.
* Fri Apr 01 2005 meissner@suse.de
- fixed gcc4 compile problem.
* Thu Feb 03 2005 sbrabec@suse.cz
- Updated to version 0.72.
* Mon Jan 31 2005 sbrabec@suse.cz
- Updated to version 0.72rc2.
* Mon Jan 24 2005 sbrabec@suse.cz
- Updated to version 0.71.
* Tue Nov 09 2004 sbrabec@suse.cz
- New SuSE package, version 0.70.
- Work-around of circular dependency on libcddb and vcdimager.
openSUSE Build Service is sponsored by