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