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://dvdnav.mplayerhq.hu/releases/%{name}-%{version}.tar.bz2
13 # Source0-md5: ab7a19d3ab1a437ae754ef477d6231a4
14 Patch0: %{name}-alpha.patch
15 Patch1: %{name}-buffix.patch
16 Patch2: %{name}-version.patch
17 URL: http://dvdnav.mplayerhq.hu/
18 BuildRequires: autoconf >= 2.53
19 BuildRequires: automake >= 1.6
20 BuildRequires: libtool >= 1.4
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 libdvdread provides a simple foundation for reading DVD-Video images.
26 For reading CSS-encrypted DVDs you will also need libdvdcss package.
28 %description -l pl.UTF-8
29 Biblioteka dostarczająca prosty interfejs do odczytu obrazów
32 Aby czytać płyty DVD szyfrowane CSS potrzebny jest także pakiet
36 Summary: %{name} library headers
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
42 This is the libraries, include files and other resources you can use
43 to incorporate libdvdread into applications.
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi
47 dvd w swoich programach.
50 Summary: libdvdread static libraries
51 Summary(pl.UTF-8): Statyczne biblioteki do obsługi formatu DVD-Video
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 This is package with static libdvdread libraries.
58 %description static -l pl.UTF-8
59 Statyczne biblioteki libdvdread.
74 %{?with_static_libs:--enable-static}
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %doc AUTHORS ChangeLog DEVELOPMENT-POLICY.txt README TODO
93 %attr(755,root,root) %{_libdir}/libdvdread.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libdvdread.so.4
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/dvdread-config
99 %attr(755,root,root) %{_libdir}/libdvdread.so
100 %{_libdir}/libdvdread.la
101 %{_includedir}/dvdread
102 %{_pkgconfigdir}/dvdread.pc
103 %{_aclocaldir}/dvdread.m4
105 %if %{with static_libs}
107 %defattr(644,root,root,755)
108 %{_libdir}/libdvdread.a