]>
Commit | Line | Data |
---|---|---|
09d4e893 | 1 | # |
4e6f06fd | 2 | # Conditional build: |
1f7afbc5 | 3 | %bcond_without static_libs # don't build static library |
919013c5 | 4 | %bcond_without apidocs # documentation generated with doxygen |
e38440f9 | 5 | |
8b27e974 | 6 | Summary: Library to decrypt CSS-encoded DVD |
dc1fdcbe | 7 | Summary(pl.UTF-8): Biblioteka do dekodowania DVD zakodowanych CSS |
8b27e974 | 8 | Name: libdvdcss |
2f572d9a | 9 | Version: 1.4.3 |
6f0ba4ef | 10 | Release: 1 |
84f779c4 | 11 | License: GPL v2+ |
8b27e974 | 12 | Group: Libraries |
a66de2a2 | 13 | Source0: https://download.videolan.org/pub/videolan/libdvdcss/%{version}/%{name}-%{version}.tar.bz2 |
2f572d9a | 14 | # Source0-md5: e98239a88af9b2204f9b9d987c2bc71a |
a66de2a2 | 15 | URL: https://www.videolan.org/developers/libdvdcss.html |
8073867c | 16 | BuildRequires: autoconf >= 2.50 |
8b27e974 | 17 | BuildRequires: automake |
2e84fcc8 | 18 | BuildRequires: libtool >= 2:2 |
919013c5 SS |
19 | %if %{with apidocs} |
20 | BuildRequires: doxygen | |
0666c785 | 21 | BuildRequires: texlive-fonts-cmsuper |
919013c5 SS |
22 | BuildRequires: texlive-fonts-jknappen |
23 | BuildRequires: texlive-latex | |
9775874f | 24 | BuildRequires: texlive-latex-extend |
25 | BuildRequires: texlive-latex-psnfss | |
919013c5 SS |
26 | BuildRequires: texlive-makeindex |
27 | %endif | |
8b27e974 JK |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
09c83cd1 TP |
31 | libdvdcss is a simple library designed for accessing DVDs like a block |
32 | device without having to bother about the decryption. | |
8b27e974 | 33 | |
9368abca JR |
34 | %description -l pl.UTF-8 |
35 | Biblioteka dostarczająca prosty interfejs pozwalający na dostęp do | |
36 | zakodowanych płyt DVD. | |
8b27e974 JK |
37 | |
38 | %package devel | |
09d4e893 | 39 | Summary: libdvdcss library headers |
dc1fdcbe | 40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdvdcss |
8b27e974 | 41 | Group: Development/Libraries |
09d4e893 | 42 | Requires: %{name} = %{version}-%{release} |
8b27e974 JK |
43 | |
44 | %description devel | |
45 | This is the libraries, include files and other resources you can use | |
46 | to incorporate libdvdcss into applications. | |
47 | ||
9368abca JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe oraz dokumentacja pozwalająca na dodawanie obsługi | |
8b27e974 JK |
50 | CSS w swoich programach. |
51 | ||
52 | %package static | |
fe0daae0 | 53 | Summary: libdvdcss static libraries |
dc1fdcbe | 54 | Summary(pl.UTF-8): Statyczne biblioteki libdvdcss |
8b27e974 | 55 | Group: Development/Libraries |
09d4e893 | 56 | Requires: %{name}-devel = %{version}-%{release} |
8b27e974 JK |
57 | |
58 | %description static | |
59 | This is package with static libdvdcss libraries. | |
60 | ||
9368abca | 61 | %description static -l pl.UTF-8 |
8b27e974 JK |
62 | Statyczne biblioteki libdvdcss. |
63 | ||
919013c5 SS |
64 | %package apidocs |
65 | Summary: libdvdcss API documentation | |
66 | Summary(pl.UTF-8): Dokumentacja API biblioteki libdvdcss | |
67 | Group: Documentation | |
e38440f9 | 68 | BuildArch: noarch |
919013c5 SS |
69 | |
70 | %description apidocs | |
71 | libdvdcss API documentation. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja API biblioteki libdvdcss. | |
75 | ||
8b27e974 | 76 | %prep |
09c83cd1 | 77 | %setup -q |
8b27e974 JK |
78 | |
79 | %build | |
ad239d33 | 80 | %{__libtoolize} |
2e84fcc8 | 81 | %{__aclocal} -I m4 |
1f93c2fa | 82 | %{__autoconf} |
8073867c | 83 | %{__autoheader} |
1f7afbc5 | 84 | %{__automake} |
85 | %configure \ | |
919013c5 | 86 | %{!?with_apidocs:--disable-doc} \ |
1f7afbc5 | 87 | %{!?with_static_libs:--disable-static} |
8b27e974 JK |
88 | |
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
3903b65b JB |
94 | %{__make} install \ |
95 | DESTDIR=$RPM_BUILD_ROOT | |
fe0daae0 | 96 | |
7cffdb25 JB |
97 | # packaged as %doc |
98 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libdvdcss | |
99 | ||
8b27e974 JK |
100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
fe0daae0 JB |
103 | %post -p /sbin/ldconfig |
104 | %postun -p /sbin/ldconfig | |
105 | ||
8b27e974 JK |
106 | %files |
107 | %defattr(644,root,root,755) | |
e6104eb6 | 108 | %doc README AUTHORS ChangeLog |
e15a8720 MB |
109 | %attr(755,root,root) %{_libdir}/libdvdcss.so.*.*.* |
110 | %attr(755,root,root) %ghost %{_libdir}/libdvdcss.so.2 | |
8b27e974 JK |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
e15a8720 MB |
114 | %attr(755,root,root) %{_libdir}/libdvdcss.so |
115 | %{_libdir}/libdvdcss.la | |
9d0653ac | 116 | %{_includedir}/dvdcss |
5e56822f | 117 | %{_pkgconfigdir}/libdvdcss.pc |
8b27e974 | 118 | |
1f7afbc5 | 119 | %if %{with static_libs} |
8b27e974 JK |
120 | %files static |
121 | %defattr(644,root,root,755) | |
e15a8720 | 122 | %{_libdir}/libdvdcss.a |
1f7afbc5 | 123 | %endif |
919013c5 SS |
124 | |
125 | %if %{with apidocs} | |
126 | %files apidocs | |
127 | %defattr(644,root,root,755) | |
128 | %doc doc/html/* | |
129 | %endif |