]>
Commit | Line | Data |
---|---|---|
0cac18a6 | 1 | # |
1e09dca6 | 2 | # Conditional build: |
64535fff | 3 | %bcond_without static_libs # don't build static library |
1e09dca6 | 4 | # |
d8d67476 | 5 | Summary: Library to read DVD images |
7634769a | 6 | Summary(pl.UTF-8): Biblioteka do odczytu obrazów DVD-Video |
d8d67476 | 7 | Name: libdvdread |
4d073a67 ŁK |
8 | Version: 4.1.3 |
9 | Release: 1 | |
eac07b0f | 10 | License: GPL v2+ |
d8d67476 | 11 | Group: Libraries |
4d073a67 ŁK |
12 | Source0: http://www.mplayerhq.hu/MPlayer/releases/dvdnav/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 6dc068d442c85a3cdd5ad3da75f6c6e8 | |
d87004e9 | 14 | Patch0: %{name}-alpha.patch |
4d073a67 | 15 | URL: http://www.mplayerhq.hu/ |
d8d67476 AM |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
18 | BuildRequires: libtool | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | libdvdread provides a simple foundation for reading DVD-Video images. | |
23 | ||
d544a31b JK |
24 | For reading CSS-encrypted DVDs you will also need libdvdcss package. |
25 | ||
f3b6f683 JR |
26 | %description -l pl.UTF-8 |
27 | Biblioteka dostarczająca prosty interfejs do odczytu obrazów | |
d8d67476 AM |
28 | DVD-Video. |
29 | ||
f3b6f683 | 30 | Aby czytać płyty DVD szyfrowane CSS potrzebny jest także pakiet |
d544a31b JK |
31 | libdvdcss. |
32 | ||
d8d67476 AM |
33 | %package devel |
34 | Summary: %{name} library headers | |
7634769a | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} |
d8d67476 | 36 | Group: Development/Libraries |
0cac18a6 | 37 | Requires: %{name} = %{version}-%{release} |
d8d67476 AM |
38 | |
39 | %description devel | |
40 | This is the libraries, include files and other resources you can use | |
41 | to incorporate libdvdread into applications. | |
42 | ||
f3b6f683 JR |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi | |
d8d67476 AM |
45 | dvd w swoich programach. |
46 | ||
47 | %package static | |
0cac18a6 | 48 | Summary: libdvdread static libraries |
7634769a | 49 | Summary(pl.UTF-8): Statyczne biblioteki do obsługi formatu DVD-Video |
d8d67476 | 50 | Group: Development/Libraries |
0cac18a6 | 51 | Requires: %{name}-devel = %{version}-%{release} |
d8d67476 AM |
52 | |
53 | %description static | |
54 | This is package with static libdvdread libraries. | |
55 | ||
f3b6f683 | 56 | %description static -l pl.UTF-8 |
d8d67476 AM |
57 | Statyczne biblioteki libdvdread. |
58 | ||
59 | %prep | |
0cac18a6 JB |
60 | %setup -q |
61 | %patch0 -p1 | |
d8d67476 AM |
62 | |
63 | %build | |
c76371a1 | 64 | %{__libtoolize} |
620883cb | 65 | %{__aclocal} |
9f419e12 | 66 | %{__autoconf} |
4d073a67 | 67 | %{__autoheader} |
43f2b948 | 68 | %{__automake} |
64535fff | 69 | %configure \ |
4d073a67 | 70 | %{?with_static_libs:--enable-static} |
d8d67476 AM |
71 | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
43f2b948 | 77 | %{__make} install \ |
78 | DESTDIR=$RPM_BUILD_ROOT | |
d8d67476 | 79 | |
d8d67476 AM |
80 | %post -p /sbin/ldconfig |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
eac07b0f JB |
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 | |
d8d67476 AM |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
4d073a67 | 94 | %attr(755,root,root) %{_bindir}/dvdread-config |
eac07b0f JB |
95 | %attr(755,root,root) %{_libdir}/libdvdread.so |
96 | %{_libdir}/libdvdread.la | |
d8d67476 | 97 | %{_includedir}/dvdread |
4d073a67 ŁK |
98 | %{_pkgconfigdir}/dvdread.pc |
99 | %{_aclocaldir}/dvdread.m4 | |
d8d67476 | 100 | |
64535fff | 101 | %if %{with static_libs} |
d8d67476 AM |
102 | %files static |
103 | %defattr(644,root,root,755) | |
eac07b0f | 104 | %{_libdir}/libdvdread.a |
64535fff | 105 | %endif |