File libdvdnav.spec of Package libdvdnav

#
# spec file for package libdvdnav
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#


Name:           libdvdnav
Summary:        DVD Navigation Library
License:        GPL-2.0+
Group:          Productivity/Multimedia/Other
Url:            http://www.mplayerhq.hu/
Version:        4.2.1
Release:        0
Source0:        http://dvdnav.mplayerhq.hu/releases/libdvdnav-%{version}.tar.xz
Patch1:         libdvdnav-strict-aliasing.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libdvdread-devel >= 4.2.0
BuildRequires:  libtool
BuildRequires:  pkg-config

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

%package -n libdvdnav4
Summary:        A DVD Navigation Library
Group:          Productivity/Multimedia/Other
Provides:       %{name} = %{version}
Obsoletes:      %{name} <= 0.1.10

%description -n libdvdnav4
This library contains functions to display DVD video menus.

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

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

%prep
%setup -q 
%patch1

%build
autoreconf -f -i -v
%configure --disable-static --with-pic
%__make %{?_smp_mflags}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%__rm -f %{buildroot}%{_libdir}/*.la

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%post   -n libdvdnav4 -p /sbin/ldconfig

%postun -n libdvdnav4 -p /sbin/ldconfig

%files -n libdvdnav4
%defattr(-,root,root)
%{_libdir}/libdvdnav.so.4
%{_libdir}/libdvdnav.so.4.*
%{_libdir}/libdvdnavmini.so.4
%{_libdir}/libdvdnavmini.so.4.*

%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/dvdnav-config
%{_includedir}/dvdnav
%{_datadir}/aclocal/dvdnav.m4
%{_libdir}/libdvdnav.so
%{_libdir}/libdvdnavmini.so
%{_libdir}/pkgconfig/dvdnav.pc
%{_libdir}/pkgconfig/dvdnavmini.pc

%changelog
openSUSE Build Service is sponsored by