File vcdimager.spec of Package vcdimager

#
# spec file for package vcdimager
#
# Copyright (c) 2017 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.24+cvs20170719
Release:        0
Summary:        Video CD (VCD) authoring software
License:        GPL-2.0
Group:          Productivity/Multimedia/CD/Record
Url:            http://www.vcdimager.org/
#cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/vcdimager co vcdimager
Source:         %{name}-%{version}.tar.xz
Source2:        baselibs.conf
Patch1:         sector_private.patch
Patch2:         vcdimager-texinfo-5.0.patch
Patch3:         vcdimager-libcdio-0.93-testsuite.patch
BuildRequires:  cdparanoia
BuildRequires:  cvs
BuildRequires:  fdupes
BuildRequires:  gawk
BuildRequires:  gcc-c++
BuildRequires:  help2man
BuildRequires:  libcddb-devel
BuildRequires:  libtool
BuildRequires:  makeinfo
BuildRequires:  pkgconfig
BuildRequires:  popt-devel
BuildRequires:  pkgconfig(libcdio)
BuildRequires:  pkgconfig(libcdio_paranoia)
BuildRequires:  pkgconfig(libiso9660)
BuildRequires:  pkgconfig(libxml-2.0)
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}

%description
GNU VCDImager is a full-featured mastering suite for authoring,
disassembling and analyzing Video CDs and Super 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}

%description devel
GNU VCDImager is a full-featured mastering suite for authoring,
disassembling and analyzing Video CDs and Super Video CDs.

%prep
%setup -q
# sector_private.patch
%patch1 -p1
%patch2 -p1
%patch3 -p1
# 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"
autoreconf -fvi
%configure \
  --enable-maintainer-mode \
  --enable-shared \
  --disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}%{_mandir}

# Does not work with paranoia available
#%check
#make %{?_smp_mflags} check

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}

%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}

%post -n libvcdinfo%{sonum} -p /sbin/ldconfig
%postun -n libvcdinfo%{sonum} -p /sbin/ldconfig

%files
%doc AUTHORS COPYING NEWS README THANKS
%{_bindir}/*
%{_infodir}/*.info%{ext_info}
%{_mandir}/man?/*%{ext_man}

%files -n libvcdinfo%{sonum}
%{_libdir}/libvcdinfo.so.0*

%files devel
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

%changelog
openSUSE Build Service is sponsored by