]>
Commit | Line | Data |
---|---|---|
51877038 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: AACS support library for Blu-ray playback | |
6 | Summary(pl.UTF-8): Biblioteka obsługi AACS do odtwarzania Blu-ray | |
7 | Name: libaacs | |
2d574d3d | 8 | Version: 0.8.0 |
78079746 | 9 | Release: 1 |
51877038 JB |
10 | License: LGPL v2.1+ |
11 | Group: Libraries | |
78079746 | 12 | Source0: http://download.videolan.org/videolan/libaacs/%{version}/%{name}-%{version}.tar.bz2 |
2d574d3d | 13 | # Source0-md5: 0b6fb63f81d62cd6acc98ae8f8d50c74 |
51877038 JB |
14 | URL: http://www.videolan.org/developers/libaacs.html |
15 | BuildRequires: libgcrypt-devel | |
59513fdc | 16 | BuildRequires: libgpg-error-devel |
51877038 JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | libaacs is a research project to implement the Advanced Access Content | |
21 | System specification. This research project provides, through an | |
22 | open-source library, a way to understand how the AACS works. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | libaacs to projekt badawczy mający na celu zaimplementowanie | |
26 | specyfikacji Advanced Access Content System (zaawansowanego systemu | |
27 | dostępu do treści). Zapewnia on - poprzez bibliotekę mającą otwarte | |
28 | źródła - możliwość zrozumienia, jak działa AACS. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files for AACS library | |
32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AACS | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for AACS library. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe biblioteki AACS. | |
41 | ||
42 | %package static | |
43 | Summary: Static AACS library | |
44 | Summary(pl.UTF-8): Statyczna biblioteka AACS | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static AACS library. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka AACS. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | ||
57 | %build | |
58 | %configure \ | |
59 | %{!?with_static_libs:--disable-static} | |
60 | %{__make} \ | |
61 | CFLAGS="%{rpmcflags}" | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | # obsoleted by pkg-config | |
70 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -p /sbin/ldconfig | |
76 | %postun -p /sbin/ldconfig | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
78079746 | 80 | %doc ChangeLog README.txt KEYDB.cfg |
d3612873 | 81 | %attr(755,root,root) %{_bindir}/aacs_info |
51877038 JB |
82 | %attr(755,root,root) %{_libdir}/libaacs.so.*.*.* |
83 | %attr(755,root,root) %ghost %{_libdir}/libaacs.so.0 | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_libdir}/libaacs.so | |
88 | %{_includedir}/libaacs | |
89 | %{_pkgconfigdir}/libaacs.pc | |
90 | ||
91 | %if %{with static_libs} | |
92 | %files static | |
93 | %defattr(644,root,root,755) | |
94 | %{_libdir}/libaacs.a | |
95 | %endif |