File vcdimager.spec of Package vcdimager
#
# spec file for package vcdimager
#
# 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 sonum 0
Name: vcdimager
Version: 0.7.24cvs
Release: 0
Url: http://www.vcdimager.org/
BuildRequires: cdparanoia
BuildRequires: cvs
BuildRequires: fdupes
BuildRequires: gawk
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: libcddb-devel
# In automatic build systems, use feature-limited version of libcdio to break build loop.
# Otherwise, build against full version.
#BuildRequires: libcdio-devel
BuildRequires: libtool
BuildRequires: makeinfo
BuildRequires: pkgconfig
BuildRequires: popt-devel
BuildRequires: pkgconfig(libcdio)
# libcdio_paranoia is now separate to libcdio due to license issues and won't be available until the issues are resolved.
# see bnc#756564
#BuildRequires: pkgconfig(libcdio_paranoia)
BuildRequires: pkgconfig(libiso9660)
BuildRequires: pkgconfig(libxml-2.0)
PreReq: %install_info_prereq
# bug437293
%ifarch ppc64
Obsoletes: vcdimager-64bit
%endif
#
Summary: Video CD (VCD) authoring software
License: GPL-2.0
Group: Productivity/Multimedia/CD/Record
Source: %{name}-%{version}.tar.bz2
Source2: baselibs.conf
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: sector_private.patch
Patch2: vcdimager-texinfo-5.0.patch
Patch3: vcdimager-libcdio-0.93-testsuite.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GNU VCDImager is a full-featured mastering suite for authoring,
disassembling and analyzing Video CDs and Super Video CDs.
The following features are available so far:
Support for Video CD 1.1 and 2.0 disc formats
Support for the Super Video CD 1.0 disc format
Full PBC (playback control) support (play lists, selection lists and
end lists)
Support for segment play items
Automatic padding of MPEG streams on the fly
Support for 99-minute (out-of-specification) CD-R media
Extraction of Video CDs into files (incl. the PBC information)
Use of XML for the description of Video CDs
%package -n libvcdinfo%{sonum}
Summary: Video CD (VCD) authoring software
Group: System/Libraries
%description -n libvcdinfo%{sonum}
GNU VCDImager is a full-featured mastering suite for authoring,
disassembling and analyzing Video CDs and Super Video CDs.
This is the core library
%package devel
Summary: Video CD (VCD) authoring software
Group: Development/Languages/C and C++
Requires: glibc-devel
Requires: libcdio-devel
Requires: libvcdinfo%{sonum} = %{version}-%{release}
# bug437293
%ifarch ppc64
Obsoletes: vcdimager-devel-64bit
%endif
#
%description devel
GNU VCDImager is a full-featured mastering suite for authoring,
disassembling and analyzing Video CDs and Super Video CDs.
The following features are available so far:
Support for Video CD 1.1 and 2.0 disc formats
Support for the Super Video CD 1.0 disc format
Full PBC (playback control) support (play lists, selection lists and
end lists)
Support for segment play items
Automatic padding of MPEG streams on the fly
Support for 99-minute (out-of-specification) CD-R media
Extraction of Video CDs into files (incl. the PBC information)
Use of XML for the description of Video CDs
%prep
%setup -q
# sector_private.patch
%patch1 -p1
%patch2 -p1
if pkg-config --atleast-version 0.93 libcdio; then
# Apply the patch if libcdio version 0.93 is used, as this version is more verbose in debugging
%patch3 -p1
fi
# automake-1.13 deprecated the old macro
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac autogen.sh
sed -i 's/AM_PROG_CC_STDC/AC_PROG_CC/' configure.ac
%build
export CFLAGS="%optflags $(getconf LFS_CFLAGS) -D_GNU_SOURCE"
./autogen.sh
%configure --enable-maintainer-mode --enable-static=no --enable-shared=yes --with-pic
make %{?_smp_mflags}
%install
%make_install
%if 1 == 0
rm -f %{buildroot}%{_libdir}/*.la
%endif
%fdupes -s %{buildroot}%{_mandir}
%check
make check
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%post -n libvcdinfo%{sonum} -p /sbin/ldconfig
%postun -n libvcdinfo%{sonum} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README THANKS TODO HACKING
%{_bindir}/*
%doc %{_infodir}/*.info*
%doc %{_mandir}/man?/*.*
%files -n libvcdinfo%{sonum}
%defattr (-, root, root)
%{_libdir}/libvcdinfo.so.0*
%files devel
%defattr (-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_libdir}/*.la
%changelog