File lsdvd.spec of Package lsdvd

#
# spec file for package lsdvd
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2006-2009 Manfred Tremmel <Manfred.Tremmel@iiv.de>
# Copyright (c) 2004 Rainer Lay <rainer@links2linux.de>
#
# 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 https://bugs.opensuse.org/
#


# run tests locally, e.g., with
# ‘osc build openSUSE_Tumbleweed x86_64 lsdvd.spec --with tests’
%bcond_with tests

Name:           lsdvd
Version:        0.20
Release:        0
Summary:        A ls for video DVDs
Summary(de):    Ein ls für Video DVDs
License:        GPL-2.0-only
URL:            https://sourceforge.net/projects/lsdvd/
Source0:        %{name}-%{version}.tar.xz
Patch0:         fix-input-XML_DEPRECATED_MEMBER.patch
BuildRequires:  autoconf
BuildRequires:  automake
%if 0%{?suse_version} == 1500
BuildRequires:  gcc13
%endif
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(dvdread) >= 4.1.3.
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6.0
%if %{with tests}
BuildRequires:  dvdauthor
BuildRequires:  ffmpeg-4
BuildRequires:  k3b
BuildRequires:  ruby
%endif

%description
A tool to display the directory of a video DVDs

%description -l de
Ein Programm zur Anzeige des Inhalts einer Video-DVD

%prep
%setup -q
%if %{pkg_vcmp libxml2-devel >= 2.14.5}
%patch -P 0 -p1
%endif

%build
export CC=gcc
test -x "$(type -p gcc-13)" && export CC=gcc-13
autoreconf -fiv
%configure
%make_build

%install
%make_install

%check
export PATH=%{buildroot}%{_bindir}:$PATH
%{name} -V
%if %{with tests}
%make_build check
%endif

%files
%doc AUTHORS ChangeLog README
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by