SHA256
1
0
forked from pool/libcdio
libcdio/cdio-utils.spec
Takashi Iwai e70ad943e8 Accepting request 312303 from home:pluskalm:branches:multimedia:libs
- Add gpg signature
- Remove ppc obsoletes/provides as it affects unsupported releases
- Cleanup spec file with spec-cleaner

- Add gpg signature
- Remove ppc obsoletes/provides as it affects unsupported releases
- Cleanup spec file with spec-cleaner
- Add missing info dependencies, use preun instead of postun for 
  scriplet

OBS-URL: https://build.opensuse.org/request/show/312303
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libcdio?expand=0&rev=44
2015-06-18 07:27:34 +00:00

102 lines
3.2 KiB
RPMSpec

#
# spec file for package cdio-utils
#
# Copyright (c) 2015 SUSE LINUX 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.93
Release: 0
Summary: CD-ROM Access Library
License: GPL-3.0+
Group: Productivity/Multimedia/Other
Url: https://savannah.gnu.org/projects/libcdio
Source0: https://ftp.gnu.org/gnu/libcdio/libcdio-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/libcdio/libcdio-%{version}.tar.gz.sig
Source2: libcdio.keyring
Source4: baselibs.conf
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)
Provides: libcdio-utils = %{version}
Obsoletes: libcdio-utils < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1220
BuildRequires: makeinfo
%endif
%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 %{?_smp_mflags}
#-lcdioutils
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%if 1 == 0
mv %{buildroot}%{_mandir}/jp %{buildroot}%{_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-*
%{_mandir}/man?/*.*
%if 1 == 0
%lang(ja) %{_mandir}/ja/man?/*.*
%endif
%changelog