]> git.pld-linux.org Git - packages/libvdpau.git/blame - libvdpau.spec
noarch apidocs
[packages/libvdpau.git] / libvdpau.spec
CommitLineData
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
9Summary: Wrapper library for the Video Decode and Presentation API
10Summary(pl.UTF-8): Biblioteka pośrednia do API dekodowania i prezentacji video (Video Decode and Presentation API)
11Name: libvdpau
0b9fbed5 12Version: 1.1
ce37ab17 13Release: 2
0b424e36
AG
14License: MIT
15Group: Libraries
16Source0: http://people.freedesktop.org/~aplattner/vdpau/%{name}-%{version}.tar.gz
0b9fbed5 17# Source0-md5: 38d362869f1da5516f0f927db4d606c3
e13cded3 18Patch0: link-X11.patch
0b424e36 19URL: http://freedesktop.org/wiki/Software/VDPAU
16d044a3 20BuildRequires: autoconf >= 2.60
0b424e36 21BuildRequires: automake
0068e9db 22%if %{with apidocs}
23BuildRequires: doxygen
24BuildRequires: graphviz
25%endif
0b424e36
AG
26BuildRequires: libstdc++-devel
27BuildRequires: libtool
28BuildRequires: pkgconfig
6f32ad01 29BuildRequires: rpm >= 4.4.9-56
abe7e57d
ER
30%if "%{pld_release}" == "ac"
31BuildRequires: XFree86-devel
32%else
fb9211d5 33%{?with_apidocs:BuildRequires: texlive-pdftex}
36ded66c 34BuildRequires: xorg-lib-libX11-devel >= 1.5
3ffb19b8 35BuildRequires: xorg-lib-libXext-devel
16d044a3 36BuildRequires: xorg-proto-dri2proto-devel >= 2.2
abe7e57d 37%endif
f757a1f8 38Requires: xorg-lib-libX11 >= 1.5
a7041516
JB
39# withdrawn (and never useful) Mesa drivers
40Obsoletes: libvdpau-driver-mesa-r300 < 10
41Obsoletes: libvdpau-driver-mesa-softpipe < 10
30c321a4 42Conflicts: xorg-driver-video-nvidia-libs < 1:190.42-2
0b424e36
AG
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46VDPAU is the Video Decode and Presentation API for UNIX. It provides
47an interface to video decode acceleration and presentation hardware
48present in modern GPUs.
49
50%description -l pl.UTF-8
51VDPAU to skrót od Video Decode and Presentation API for UNIX.
52Biblioteka ta dostarcza interfejs do akceleracji dekodowania oraz
53prezentacji video obecnej we współczesnych procesorach graficznych.
54
55%package devel
56Summary: Header files for vdpau library
57Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vdpau
58Group: Development/Libraries
3a55c6ef 59%if "%{pld_release}" == "ac"
60Requires: XFree86-devel
61%else
62Requires: xorg-lib-libX11-devel
63%endif
0b424e36
AG
64Requires: %{name} = %{version}-%{release}
65
66%description devel
67Header files for vdpau library.
68
69%description devel -l pl.UTF-8
70Pliki nagłówkowe biblioteki vdpau.
71
72%package static
73Summary: Static vdpau library
74Summary(pl.UTF-8): Statyczna biblioteka vdpau
75Group: Development/Libraries
76Requires: %{name}-devel = %{version}-%{release}
77
78%description static
79Static vdpau library.
80
81%description static -l pl.UTF-8
82Statyczna biblioteka vdpau.
83
6f32ad01
ER
84%package apidocs
85Summary: vdpau API documentation
86Summary(pl.UTF-8): Dokumentacja API biblioteki vdpau
87Group: Documentation
ce37ab17
ER
88%if "%{_rpmversion}" >= "5"
89BuildArch: noarch
90%endif
6f32ad01
ER
91
92%description apidocs
93API and internal documentation for vdpau library.
94
95%description apidocs -l pl.UTF-8
96Dokumentacja 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"
109X11_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
117rm -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 126mv $RPM_BUILD_ROOT%{_docdir}/{%{name}/html,%{name}-apidocs}
5bcedabe 127%endif
7b1f8c60 128
0b424e36
AG
129%clean
130rm -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
This page took 0.069759 seconds and 4 git commands to generate.