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.xz
13 # Source0-md5: 1aa8ad88e462791a8e77d628a63ee788
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 BuildRequires: tar >= 1:1.22
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 libdvdread provides a simple foundation for reading DVD-Video images.
28 For reading CSS-encrypted DVDs you will also need libdvdcss package.
30 %description -l pl.UTF-8
31 Biblioteka dostarczająca prosty interfejs do odczytu obrazów
34 Aby czytać płyty DVD szyfrowane CSS potrzebny jest także pakiet
38 Summary: %{name} library headers
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 This is the libraries, include files and other resources you can use
45 to incorporate libdvdread into applications.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi
49 dvd w swoich programach.
52 Summary: libdvdread static libraries
53 Summary(pl.UTF-8): Statyczne biblioteki do obsługi formatu DVD-Video
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 This is package with static libdvdread libraries.
60 %description static -l pl.UTF-8
61 Statyczne biblioteki libdvdread.
76 --disable-silent-rules \
77 %{?with_static_libs:--enable-static}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
95 %doc AUTHORS ChangeLog README TODO
96 %attr(755,root,root) %{_libdir}/libdvdread.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/libdvdread.so.4
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libdvdread.so
102 %{_libdir}/libdvdread.la
103 %{_includedir}/dvdread
104 %{_pkgconfigdir}/dvdread.pc
106 %if %{with static_libs}
108 %defattr(644,root,root,755)
109 %{_libdir}/libdvdread.a