Summary: Library to read DVD images
Summary(pl.UTF-8): Biblioteka do odczytu obrazów DVD-Video
Name: libdvdread
-Version: 4.1.3
-Release: 1
+Version: 5.0.0
+Release: 0.1
License: GPL v2+
Group: Libraries
-Source0: http://www.mplayerhq.hu/MPlayer/releases/dvdnav/%{name}-%{version}.tar.bz2
-# Source0-md5: 6dc068d442c85a3cdd5ad3da75f6c6e8
+#Source0: http://dvdnav.mplayerhq.hu/releases/%{name}-%{version}.tar.xz
+Source0: http://download.videolan.org/pub/videolan/libdvdread/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: 20b964a3fb290b8df45c6b25d37411de
Patch0: %{name}-alpha.patch
-URL: http://www.mplayerhq.hu/
+Patch1: %{name}-buffix.patch
+Patch2: %{name}-version.patch
+URL: http://dvdnav.mplayerhq.hu/
BuildRequires: autoconf >= 2.53
BuildRequires: automake >= 1.6
-BuildRequires: libtool
+BuildRequires: libtool >= 1.4
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
%{__autoheader}
%{__automake}
%configure \
+ --disable-silent-rules \
%{?with_static_libs:--enable-static}
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog DEVELOPMENT-POLICY.txt README TODO
+%doc AUTHORS ChangeLog README TODO
%attr(755,root,root) %{_libdir}/libdvdread.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libdvdread.so.4
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/dvdread-config
%attr(755,root,root) %{_libdir}/libdvdread.so
%{_libdir}/libdvdread.la
%{_includedir}/dvdread
%{_pkgconfigdir}/dvdread.pc
-%{_aclocaldir}/dvdread.m4
%if %{with static_libs}
%files static