3 %bcond_without static_libs # don't build static library
5 Summary: Library to read DVD images
6 Summary(pl.UTF-8): Biblioteka do odczytu obrazów DVD-Video
12 Source0: http://www.dtek.chalmers.se/groups/dvd/dist/%{name}-%{version}.tar.gz
13 # Source0-md5: 078788c9241ae16763529e1235502337
14 Patch0: %{name}-alpha.patch
15 Patch1: %{name}-UDFFindFile.patch
16 URL: http://www.dtek.chalmers.se/groups/dvd/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: libtool
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 libdvdread provides a simple foundation for reading DVD-Video images.
25 For reading CSS-encrypted DVDs you will also need libdvdcss package.
27 %description -l pl.UTF-8
28 Biblioteka dostarczająca prosty interfejs do odczytu obrazów
31 Aby czytać płyty DVD szyfrowane CSS potrzebny jest także pakiet
35 Summary: %{name} library headers
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 This is the libraries, include files and other resources you can use
42 to incorporate libdvdread into applications.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi
46 dvd w swoich programach.
49 Summary: libdvdread static libraries
50 Summary(pl.UTF-8): Statyczne biblioteki do obsługi formatu DVD-Video
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
55 This is package with static libdvdread libraries.
57 %description static -l pl.UTF-8
58 Statyczne biblioteki libdvdread.
71 %{!?with_static_libs:--disable-static}
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %doc README AUTHORS TODO NEWS
90 %attr(755,root,root) %{_libdir}/lib*.so.*.*
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/lib*.so
96 %{_includedir}/dvdread
98 %if %{with static_libs}
100 %defattr(644,root,root,755)