File libdvdnav.spec of Package libdvdnav

#
# spec file for package libdvdnav (Version 4.1.3)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           libdvdnav
Summary:        A DVD Navigation Library
Url:            http://www.mplayerhq.hu/
License:        GPL v2 or later
Group:          Productivity/Multimedia/Other
Version:        4.1.3
Release:        1
Source0:        http://www1.mplayerhq.hu/MPlayer/releases/dvdnav/%name-%version.tar.bz2
Patch:          libdvdnav.diff
Patch1:         libdvdnav-strict-aliasing.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libdvdread-devel

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



Authors:
--------
    Daniel Caujolle-Bert <segfault@club-internet.fr>
    Thomas Vander Stichele <thomas@apestaart.org>
    Rich Wareham <richwareham@users.sourceforge.net>
    Kees Cook <kees@outflux.net>

%package -n libdvdnav4
License:        GPL v2 or later
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.



Authors:
--------
    Daniel Caujolle-Bert <segfault@club-internet.fr>
    Thomas Vander Stichele <thomas@apestaart.org>
    Rich Wareham <richwareham@users.sourceforge.net>
    Kees Cook <kees@outflux.net>

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

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



Authors:
--------
    Daniel Caujolle-Bert <segfault@club-internet.fr>
    Thomas Vander Stichele <thomas@apestaart.org>
    Rich Wareham <richwareham@users.sourceforge.net>
    Kees Cook <kees@outflux.net>

%prep
%setup -q 
%patch
%patch1

%build
autoreconf -f -i
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

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

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libdvdnav4 -p /sbin/ldconfig

%postun -n libdvdnav4 -p /sbin/ldconfig

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

%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
/usr/bin/*
/usr/include/*
/usr/share/aclocal/*.m4
%{_libdir}/*.so
%_libdir/pkgconfig/dvdnav.pc
%_libdir/pkgconfig/dvdnavmini.pc

%changelog
* Wed Sep 10 2008 hvogel@suse.de
- update to 4.1.3
  * fixes regarding potential memory and resource leaks
  * added pkg-config support
- branch library subpackage
* Tue Jul 01 2008 hvogel@suse.de
- update to version 4.1.2, switching to version from mplayerhq
  * multiple build system fixes
  * added dvdnav_describe_title_chapters(title) to get title
  and chapters duration
  * added dvdnav_audio_stream_channels() to return number
  of channels
  * fixed dvdnav_time_search() in multi-angle dvds (but it still
  needs improvements)
  * added dvdnav_audio_stream_format() to identify the codec used
  in audio streams
  * starting DVD playback at specific title/part positions with
  dvdnav_{title,part}_play() works again
  * fixed error "Expected NAV packet but none found." occuring
  sometimes on resume from menu
* Wed Jan 10 2007 hvogel@suse.de
- fix possible strncat overflow
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 hvogel@suse.de
- add -fno-strict-aliasing to CFLAGS
* Fri Sep 03 2004 hvogel@suse.de
- update to version 0.1.10
* Mon Jan 12 2004 adrian@suse.de
- fix build
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr and %%run_ldconfig
* Thu Oct 23 2003 stepan@suse.de
- update to 0.1.9, needed by gnome 2.4
* Sun Jun 01 2003 ro@suse.de
- add aclocal file to devel filelist
* Fri Feb 14 2003 stepan@suse.de
- update to v0.1.4, needed by vdr-plugins
* Sun Feb 02 2003 adrian@suse.de
- fix requires
* Sun Nov 03 2002 stepan@suse.de
- include dvdnavconfig (needed by MPlayer et al)
* Mon Oct 21 2002 stepan@suse.de
- initial release