SHA256
1
0
forked from pool/libcdio
libcdio/cdio-utils.spec
Cristian Morales Vega 48ec1acf28 Accepting request 155720 from home:RedDwarf:cdio
- Update to 0.90
  * CD-Text overhaul and API change (Leon Merten Lohse)
  * Works again (somewhat) on MinGW; tolerence for Microsoft's C compiler (Pete Batard)
  * UDF, Joliet and Rock-Ridge fixes (Pete Batard)
  * OSX fixes (Natalia Portillo and Robert William Fuller)
  * paranoia library removed as that is GPL 2-ish. This is now a separate project
  * file names in cue files are relative to the cue file rather than cwd.
  * Update mmc.h to include MMC-5 commands. (Or MMC-6 since it adds nothing new)
  * Add mmc_cmd2str() to show MMC command name. Show that in some errors
  * Add UDF reading to iso-read and iso-info via --udf or -U (Christophe Fergeau)
  * bug fixes, more tests, update documentation

OBS-URL: https://build.opensuse.org/request/show/155720
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libcdio?expand=0&rev=39
2013-02-22 09:41:10 +00:00

107 lines
3.1 KiB
RPMSpec

#
# spec file for package cdio-utils
#
# Copyright (c) 2013 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 cdioutils 1
Name: cdio-utils
Version: 0.90
Release: 0
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: libcdio-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkg-config
BuildRequires: popt-devel
BuildRequires: pkgconfig(libcddb)
BuildRequires: pkgconfig(libvcdinfo)
%if 0%{suse_version} > 1220
BuildRequires: makeinfo
%endif
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: libcdio-%{version}.tar.gz
Source1: baselibs.conf
# bug437293
%ifarch ppc64
Obsoletes: libcdio-64bit
%endif
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: libcdio-utils = %{version}
Obsoletes: libcdio-utils < %{version}
%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.
%prep
%setup -q -n libcdio-%{version}
%define buildir ${PWD}
%build
export VCDINFO_CFLAGS=-I%{_includedir}/libvcd
export VCDINFO_LIBS="-L%{_libdir} -lvcdinfo -L%{buildir}/lib/iso9660/.libs/ -liso9660 -L%{buildir}/lib/driver/.libs/ -lcdio"
#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 \
--with-pic \
--disable-cxx \
--enable-vcd-info=yes
VCDINFO_CFLAGS=-I%{_includedir}/libvcd VCDINFO_LIBS="-L%{_libdir} -lvcdinfo \
-L%{buildir}/lib/iso9660/.libs/ -liso9660 -L%{buildir}/lib/driver/.libs/ -lcdio" \
VERBOSE=1 make -e %{?jobs:-j%jobs}
#-lcdioutils
%install
%makeinstall
%if 1 == 0
mv $RPM_BUILD_ROOT%{_mandir}/jp $RPM_BUILD_ROOT%{_mandir}/ja
%endif
#empty depdendency libs
rm -rf %{buildroot}%{_libdir} %{buildroot}%{_includedir} %{buildroot}%{_infodir}
%fdupes -s %{buildroot}%{_mandir}
%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 %{_mandir}/man?/*.*
%if 1 == 0
%lang(ja) %doc %{_mandir}/ja/man?/*.*
%endif
%changelog