]>
Commit | Line | Data |
---|---|---|
6f32ad01 ER |
1 | # |
2 | # Conditional build: | |
3 | %if "%{pld_release}" == "ac" | |
4 | %bcond_with apidocs # build and package API docs | |
5 | %else | |
6 | %bcond_without apidocs # do not build and package API docs | |
7 | %endif | |
8 | ||
0b424e36 AG |
9 | Summary: Wrapper library for the Video Decode and Presentation API |
10 | Summary(pl.UTF-8): Biblioteka pośrednia do API dekodowania i prezentacji video (Video Decode and Presentation API) | |
11 | Name: libvdpau | |
0b9fbed5 | 12 | Version: 1.1 |
ce37ab17 | 13 | Release: 2 |
0b424e36 AG |
14 | License: MIT |
15 | Group: Libraries | |
16 | Source0: http://people.freedesktop.org/~aplattner/vdpau/%{name}-%{version}.tar.gz | |
0b9fbed5 | 17 | # Source0-md5: 38d362869f1da5516f0f927db4d606c3 |
e13cded3 | 18 | Patch0: link-X11.patch |
0b424e36 | 19 | URL: http://freedesktop.org/wiki/Software/VDPAU |
16d044a3 | 20 | BuildRequires: autoconf >= 2.60 |
0b424e36 | 21 | BuildRequires: automake |
0068e9db | 22 | %if %{with apidocs} |
23 | BuildRequires: doxygen | |
24 | BuildRequires: graphviz | |
25 | %endif | |
0b424e36 AG |
26 | BuildRequires: libstdc++-devel |
27 | BuildRequires: libtool | |
28 | BuildRequires: pkgconfig | |
6f32ad01 | 29 | BuildRequires: rpm >= 4.4.9-56 |
abe7e57d ER |
30 | %if "%{pld_release}" == "ac" |
31 | BuildRequires: XFree86-devel | |
32 | %else | |
fb9211d5 | 33 | %{?with_apidocs:BuildRequires: texlive-pdftex} |
36ded66c | 34 | BuildRequires: xorg-lib-libX11-devel >= 1.5 |
3ffb19b8 | 35 | BuildRequires: xorg-lib-libXext-devel |
16d044a3 | 36 | BuildRequires: xorg-proto-dri2proto-devel >= 2.2 |
abe7e57d | 37 | %endif |
f757a1f8 | 38 | Requires: xorg-lib-libX11 >= 1.5 |
a7041516 JB |
39 | # withdrawn (and never useful) Mesa drivers |
40 | Obsoletes: libvdpau-driver-mesa-r300 < 10 | |
41 | Obsoletes: libvdpau-driver-mesa-softpipe < 10 | |
30c321a4 | 42 | Conflicts: xorg-driver-video-nvidia-libs < 1:190.42-2 |
0b424e36 AG |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | VDPAU is the Video Decode and Presentation API for UNIX. It provides | |
47 | an interface to video decode acceleration and presentation hardware | |
48 | present in modern GPUs. | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | VDPAU to skrót od Video Decode and Presentation API for UNIX. | |
52 | Biblioteka ta dostarcza interfejs do akceleracji dekodowania oraz | |
53 | prezentacji video obecnej we współczesnych procesorach graficznych. | |
54 | ||
55 | %package devel | |
56 | Summary: Header files for vdpau library | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vdpau | |
58 | Group: Development/Libraries | |
3a55c6ef | 59 | %if "%{pld_release}" == "ac" |
60 | Requires: XFree86-devel | |
61 | %else | |
62 | Requires: xorg-lib-libX11-devel | |
63 | %endif | |
0b424e36 AG |
64 | Requires: %{name} = %{version}-%{release} |
65 | ||
66 | %description devel | |
67 | Header files for vdpau library. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe biblioteki vdpau. | |
71 | ||
72 | %package static | |
73 | Summary: Static vdpau library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka vdpau | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static vdpau library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka vdpau. | |
83 | ||
6f32ad01 ER |
84 | %package apidocs |
85 | Summary: vdpau API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API biblioteki vdpau | |
87 | Group: Documentation | |
ce37ab17 ER |
88 | %if "%{_rpmversion}" >= "5" |
89 | BuildArch: noarch | |
90 | %endif | |
6f32ad01 ER |
91 | |
92 | %description apidocs | |
93 | API and internal documentation for vdpau library. | |
94 | ||
95 | %description apidocs -l pl.UTF-8 | |
96 | Dokumentacja API biblioteki vdpau. | |
97 | ||
0b424e36 AG |
98 | %prep |
99 | %setup -q | |
e13cded3 | 100 | %patch0 -p1 |
0b424e36 AG |
101 | |
102 | %build | |
103 | %{__libtoolize} | |
104 | %{__aclocal} | |
105 | %{__autoconf} | |
106 | %{__autoheader} | |
107 | %{__automake} | |
abe7e57d ER |
108 | %if "%{pld_release}" == "ac" |
109 | X11_CFLAGS=" " X11_LIBS="-L%{_prefix}/X11R6/%{_lib} -lX11" \ | |
110 | %endif | |
0b424e36 | 111 | %configure \ |
16d044a3 | 112 | --enable-documentation%{!?with_apidocs:=no} \ |
0b424e36 AG |
113 | --enable-static |
114 | %{__make} | |
115 | ||
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %{__make} install \ | |
120 | DESTDIR=$RPM_BUILD_ROOT | |
121 | ||
0c0558e2 | 122 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_trace.{la,a} |
6f32ad01 | 123 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_trace.so |
3f0c26ed | 124 | |
5bcedabe | 125 | %if %{with apidocs} |
7b1f8c60 | 126 | mv $RPM_BUILD_ROOT%{_docdir}/{%{name}/html,%{name}-apidocs} |
5bcedabe | 127 | %endif |
7b1f8c60 | 128 | |
0b424e36 AG |
129 | %clean |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post -p /sbin/ldconfig | |
133 | %postun -p /sbin/ldconfig | |
134 | ||
135 | %files | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS COPYING ChangeLog | |
3f0c26ed JB |
138 | %attr(755,root,root) %{_libdir}/libvdpau.so.*.*.* |
139 | %attr(755,root,root) %ghost %{_libdir}/libvdpau.so.1 | |
0c0558e2 KK |
140 | %dir %{_libdir}/vdpau |
141 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_trace.so.*.*.* | |
5b2cd33e | 142 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_trace.so.1 |
3f5c46f2 | 143 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vdpau_wrapper.cfg |
0b424e36 AG |
144 | |
145 | %files devel | |
146 | %defattr(644,root,root,755) | |
3f0c26ed JB |
147 | %attr(755,root,root) %{_libdir}/libvdpau.so |
148 | %{_libdir}/libvdpau.la | |
0b424e36 | 149 | %{_includedir}/vdpau |
3f0c26ed | 150 | %{_pkgconfigdir}/vdpau.pc |
0b424e36 AG |
151 | |
152 | %files static | |
153 | %defattr(644,root,root,755) | |
3f0c26ed | 154 | %{_libdir}/libvdpau.a |
6f32ad01 ER |
155 | |
156 | %if %{with apidocs} | |
157 | %files apidocs | |
158 | %defattr(644,root,root,755) | |
7b1f8c60 | 159 | %{_docdir}/%{name}-apidocs |
6f32ad01 | 160 | %endif |