]> git.pld-linux.org Git - packages/libdvdread.git/blobdiff - libdvdread.spec
ver. 5.0.0
[packages/libdvdread.git] / libdvdread.spec
index 20e05eb9b2d504e1a80652896363bb6a754b9713..acc436c404f3ca74190b7c33b544df1b96b546ae 100644 (file)
@@ -1,18 +1,26 @@
+#
+# Conditional build:
 %bcond_without static_libs     # don't build static library
+#
 Summary:       Library to read DVD images
-Summary(pl):   Biblioteka do odczytu obrazów DVD-Video
+Summary(pl.UTF-8):     Biblioteka do odczytu obrazów DVD-Video
 Name:          libdvdread
-Version:       0.9.4
-Release:       1
-License:       GPL
+Version:       5.0.0
+Release:       0.1
+License:       GPL v2+
 Group:         Libraries
-Source0:       http://www.dtek.chalmers.se/groups/dvd/dist/%{name}-%{version}.tar.gz
-# Source0-md5: 06353d7b14541ff8b431e69ad404db84
+#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.dtek.chalmers.se/groups/dvd/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
+Patch1:                %{name}-buffix.patch
+Patch2:                %{name}-version.patch
+URL:           http://dvdnav.mplayerhq.hu/
+BuildRequires: autoconf >= 2.53
+BuildRequires: automake >= 1.6
+BuildRequires: libtool >= 1.4
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -20,51 +28,54 @@ libdvdread provides a simple foundation for reading DVD-Video images.
 
 For reading CSS-encrypted DVDs you will also need libdvdcss package.
 
-%description -l pl
-Biblioteka dostarczaj±ca prosty interfejs do odczytu obrazów
+%description -l pl.UTF-8
+Biblioteka dostarczająca prosty interfejs do odczytu obrazów
 DVD-Video.
 
-Aby czytaæ p³yty DVD szyfrowane CSS potrzebny jest tak¿e pakiet
+Aby czytać płyty DVD szyfrowane CSS potrzebny jest także pakiet
 libdvdcss.
 
 %package devel
 Summary:       %{name} library headers
-Summary(pl):   Pliki nag³ówkowe biblioteki %{name}
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki %{name}
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 This is the libraries, include files and other resources you can use
 to incorporate libdvdread into applications.
 
-%description devel -l pl
-Pliki nag³ówkowe oraz dokumentacja pozwalaj±ca na dodawanie obs³ugi
+%description devel -l pl.UTF-8
+Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi
 dvd w swoich programach.
 
 %package static
-Summary:       libdevdread static libraries
-Summary(pl):   Statyczne biblioteki do obs³ugi formatu DVD-Video
+Summary:       libdvdread static libraries
+Summary(pl.UTF-8):     Statyczne biblioteki do obsługi formatu DVD-Video
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 This is package with static libdvdread libraries.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczne biblioteki libdvdread.
 
 %prep
-%setup  -q
+%setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
-rm -f missing
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
-       %{!?with_static_libs:--disable-static}
+       --disable-silent-rules \
+       %{?with_static_libs:--enable-static}
 
 %{__make}
 
@@ -74,25 +85,27 @@ rm -rf $RPM_BUILD_ROOT
 %{__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 README AUTHORS TODO NEWS
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%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) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/libdvdread.so
+%{_libdir}/libdvdread.la
 %{_includedir}/dvdread
+%{_pkgconfigdir}/dvdread.pc
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libdvdread.a
 %endif
This page took 0.057217 seconds and 4 git commands to generate.