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.mplayerhq.hu/MPlayer/releases/dvdnav/%{name}-%{version}.tar.bz2
13 # Source0-md5: 6dc068d442c85a3cdd5ad3da75f6c6e8
14 Patch0: %{name}-alpha.patch
15 URL: http://www.mplayerhq.hu/
16 BuildRequires: autoconf >= 2.53
17 BuildRequires: automake >= 1.6
18 BuildRequires: libtool >= 1.4
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 libdvdread provides a simple foundation for reading DVD-Video images.
24 For reading CSS-encrypted DVDs you will also need libdvdcss package.
26 %description -l pl.UTF-8
27 Biblioteka dostarczająca prosty interfejs do odczytu obrazów
30 Aby czytać płyty DVD szyfrowane CSS potrzebny jest także pakiet
34 Summary: %{name} library headers
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 This is the libraries, include files and other resources you can use
41 to incorporate libdvdread into applications.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi
45 dvd w swoich programach.
48 Summary: libdvdread static libraries
49 Summary(pl.UTF-8): Statyczne biblioteki do obsługi formatu DVD-Video
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 This is package with static libdvdread libraries.
56 %description static -l pl.UTF-8
57 Statyczne biblioteki libdvdread.
70 %{?with_static_libs:--enable-static}
75 rm -rf $RPM_BUILD_ROOT
78 DESTDIR=$RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc AUTHORS ChangeLog DEVELOPMENT-POLICY.txt README TODO
89 %attr(755,root,root) %{_libdir}/libdvdread.so.*.*.*
90 %attr(755,root,root) %ghost %{_libdir}/libdvdread.so.4
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_bindir}/dvdread-config
95 %attr(755,root,root) %{_libdir}/libdvdread.so
96 %{_libdir}/libdvdread.la
97 %{_includedir}/dvdread
98 %{_pkgconfigdir}/dvdread.pc
99 %{_aclocaldir}/dvdread.m4
101 %if %{with static_libs}
103 %defattr(644,root,root,755)
104 %{_libdir}/libdvdread.a