File libdvdnav.spec of Package libdvdnav

# spec file for package libdvdnav
# Copyright (c) 2021 SUSE LLC
# 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

%define sover   4
Name:           libdvdnav
Version:        6.1.1
Release:        0
Summary:        DVD Navigation Library
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Other
Source2:        %{name}.keyring
Source1000:     baselibs.conf
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(dvdread) >= 6.0.0

This library contains functions to display DVD video menus.

%package -n libdvdnav%{sover}
Summary:        A DVD Navigation Library
Group:          Productivity/Multimedia/Other
Provides:       %{name}
Obsoletes:      %{name}

%description -n libdvdnav%{sover}
This library contains functions to display DVD video menus.

%package devel
Summary:        Development Environment for libdvdnav
Group:          Development/Libraries/C and C++
Requires:       libdvdnav%{sover} = %{version}

%description devel
This library contains functions to display DVD video menus.


autoreconf -fvi
%configure \
  --disable-silent-rules \

rm -r %{buildroot}%{_datadir}/doc/libdvdnav/
find %{buildroot} -type f -name "*.la" -delete -print

%post   -n libdvdnav%{sover} -p /sbin/ldconfig
%postun -n libdvdnav%{sover} -p /sbin/ldconfig

%files -n libdvdnav%{sover}
%license COPYING

%files devel

openSUSE Build Service is sponsored by