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