]>
Commit | Line | Data |
---|---|---|
f16469b0 MB |
1 | # |
2 | # TODO: | |
3 | # Build with bdjava (0.2.1 tarball doesn't have all necessary files) | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without static_libs # don't build static libraries | |
7 | # | |
8 | Summary: Library to access Blu-Ray disks for video playback | |
fe369f9d | 9 | Summary(pl.UTF-8): Biblioteka dostępu do dysków Blu-Ray w celu odtwarzania filmów |
f16469b0 MB |
10 | Name: libbluray |
11 | Version: 0.2.1 | |
12 | Release: 1 | |
13 | License: LGPL v2+ | |
14 | Group: Libraries | |
fe369f9d | 15 | Source0: ftp://ftp.videolan.org/pub/videolan/libbluray/%{version}/%{name}-%{version}.tar.bz2 |
f16469b0 MB |
16 | # Source0-md5: d4cfcf3f110e9d2afe01d29feb8c842b |
17 | URL: http://www.videolan.org/developers/libbluray.html | |
fe369f9d | 18 | BuildRequires: autoconf >= 2.50 |
f16469b0 MB |
19 | BuildRequires: automake |
20 | BuildRequires: doxygen | |
21 | BuildRequires: libtool | |
22 | BuildRequires: libxml2-devel >= 1:2.6.0 | |
23 | BuildRequires: pkgconfig | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | This package is aiming to provide a full portable free open source | |
28 | bluray library, which can be plugged into popular media players to | |
29 | allow full bluray navigation and playback on Linux. It will eventually | |
30 | be compatible with all current titles, and will be easily portable and | |
31 | embeddable in standard players such as mplayer and vlc. | |
32 | ||
fe369f9d JB |
33 | %description -l pl |
34 | Ten pakiet ma w zamierzeniu dostarczać w pełni przenośną, | |
35 | wolnodostępną i mającą otwarte źródła biblioteką bluray, dającą się | |
36 | wykorzystać w popularnych odtwarzaczach multimedialnych w celu | |
37 | pełnej nawigacji i odtwarzania filmów pod Linuksem. Ostatecznie | |
38 | powinna być kompatybilna ze wszystkimi bieżącymi tytułami, łatwo | |
39 | przenośna i dająca się wbudować w standardowe odtwarzacze, takie jak | |
40 | mplayer czy vlc. | |
41 | ||
f16469b0 MB |
42 | %package devel |
43 | Summary: Header files for libbluray library | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libbluray | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | ||
48 | %description devel | |
49 | Header files for libbluray library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki libbluray. | |
53 | ||
54 | %package static | |
55 | Summary: Static libbluray library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka libbluray | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static libbluray library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka libbluray. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | ||
69 | %build | |
70 | %{__libtoolize} | |
71 | %{__aclocal} -I m4 | |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
75 | %configure \ | |
76 | %{__enable_disable static_libs static} | |
77 | %{__make} | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc README.txt | |
96 | %attr(755,root,root) %{_libdir}/libbluray.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libbluray.so.1 | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %attr(755,root,root) %{_libdir}/libbluray.so | |
102 | %{_includedir}/libbluray | |
103 | %{_pkgconfigdir}/libbluray.pc | |
104 | ||
105 | %if %{with static_libs} | |
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libbluray.a | |
109 | %endif |