]>
Commit | Line | Data |
---|---|---|
ae363bb0 | 1 | Summary: XvMC library |
3d8a3d77 | 2 | Summary(pl.UTF-8): Biblioteka XvMC |
ae363bb0 | 3 | Name: xorg-lib-libXvMC |
022ee951 | 4 | Version: 1.0.13 |
5fe6c724 | 5 | Release: 1 |
ae363bb0 AM |
6 | License: MIT |
7 | Group: X11/Libraries | |
022ee951 JB |
8 | Source0: https://xorg.freedesktop.org/releases/individual/lib/libXvMC-%{version}.tar.xz |
9 | # Source0-md5: 11a358e7229fa28dc9801c1e64fe2e18 | |
74e87151 | 10 | Source1: XvMCConfig |
187b6eb9 | 11 | Source2: xvmcinfo.c |
d350358c | 12 | URL: https://xorg.freedesktop.org/ |
c9c858a6 | 13 | BuildRequires: autoconf >= 2.60 |
ae363bb0 | 14 | BuildRequires: automake |
ae363bb0 | 15 | BuildRequires: libtool |
fdec6771 | 16 | BuildRequires: pkgconfig >= 1:0.19 |
022ee951 | 17 | BuildRequires: tar >= 1:1.22 |
5fe6c724 | 18 | BuildRequires: xorg-lib-libX11-devel >= 1.6 |
5e8ba525 | 19 | BuildRequires: xorg-lib-libXext-devel |
604959fd | 20 | BuildRequires: xorg-lib-libXv-devel |
5e8ba525 JB |
21 | BuildRequires: xorg-proto-videoproto-devel |
22 | BuildRequires: xorg-proto-xextproto-devel | |
627a9fea | 23 | BuildRequires: xorg-util-util-macros >= 1.8 |
022ee951 | 24 | BuildRequires: xz |
5fe6c724 | 25 | Requires: xorg-lib-libX11 >= 1.6 |
2a176035 | 26 | Provides: libXvMCW = %{version} |
022ee951 | 27 | Obsoletes: libXvMCW < 1 |
351f895d JB |
28 | # withdrawn (and never useful) Mesa drivers |
29 | Obsoletes: Mesa-libXvMC-r300 < 10 | |
30 | Obsoletes: Mesa-libXvMC-softpipe < 10 | |
604959fd | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ae363bb0 | 32 | |
ae363bb0 | 33 | %description |
2566ff3f | 34 | XvMC (X-Video Motion Compensation) library. |
ae363bb0 | 35 | |
c3ca8754 | 36 | %description -l pl.UTF-8 |
2566ff3f JB |
37 | Biblioteka XvMC (X-Video Motion Compensation, czyli kompensacji ruchu |
38 | dla X-Video). | |
ae363bb0 | 39 | |
ae363bb0 | 40 | %package devel |
89093572 | 41 | Summary: Header files for libXvMC library |
3d8a3d77 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libXvMC |
ae363bb0 | 43 | Group: X11/Development/Libraries |
604959fd | 44 | Requires: %{name} = %{version}-%{release} |
5fe6c724 | 45 | Requires: xorg-lib-libX11-devel >= 1.6 |
149fe49f JB |
46 | Requires: xorg-lib-libXext-devel |
47 | # for <X11/extensions/Xvlib.h> in <X11/extensions/XvMClib.h> | |
ae363bb0 | 48 | Requires: xorg-lib-libXv-devel |
149fe49f JB |
49 | # after vldXvMC.h removal |
50 | Requires: xorg-proto-videoproto-devel >= 2.3.3-2019.1.2 | |
51 | Requires: xorg-proto-xproto-devel | |
2a176035 | 52 | Provides: libXvMCW-devel = %{version} |
022ee951 | 53 | Obsoletes: libXvMCW-devel < 1 |
ae363bb0 AM |
54 | |
55 | %description devel | |
2566ff3f | 56 | XvMC (X-Video Motion Compensation) library. |
ae363bb0 AM |
57 | |
58 | This package contains the header files needed to develop programs that | |
89093572 | 59 | use libXvMC. |
ae363bb0 | 60 | |
c3ca8754 | 61 | %description devel -l pl.UTF-8 |
2566ff3f JB |
62 | Biblioteka XvMC (X-Video Motion Compensation, czyli kompensacji ruchu |
63 | dla X-Video). | |
ae363bb0 | 64 | |
c3ca8754 JR |
65 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
66 | używających biblioteki libXvMC. | |
ae363bb0 | 67 | |
ae363bb0 AM |
68 | %package static |
69 | Summary: Static libXvMC libraries | |
3d8a3d77 | 70 | Summary(pl.UTF-8): Biblioteki statyczne libXvMC |
604959fd JB |
71 | Group: X11/Development/Libraries |
72 | Requires: %{name}-devel = %{version}-%{release} | |
2a176035 | 73 | Provides: libXvMCW-static = %{version} |
022ee951 | 74 | Obsoletes: libXvMCW-static < 1 |
ae363bb0 AM |
75 | |
76 | %description static | |
2566ff3f | 77 | XvMC (X-Video Motion Compensation) library. |
ae363bb0 | 78 | |
2a176035 | 79 | This package contains the static libXvMC libraries. |
ae363bb0 | 80 | |
c3ca8754 | 81 | %description static -l pl.UTF-8 |
2566ff3f JB |
82 | Biblioteka XvMC (X-Video Motion Compensation, czyli kompensacji ruchu |
83 | dla X-Video). | |
ae363bb0 | 84 | |
2a176035 | 85 | Pakiet zawiera statyczne biblioteki libXvMC. |
ae363bb0 | 86 | |
ae363bb0 AM |
87 | %prep |
88 | %setup -q -n libXvMC-%{version} | |
187b6eb9 | 89 | cp -p %{SOURCE2} . |
ae363bb0 | 90 | |
ae363bb0 AM |
91 | %build |
92 | %{__libtoolize} | |
93 | %{__aclocal} | |
94 | %{__autoconf} | |
95 | %{__autoheader} | |
96 | %{__automake} | |
97 | %configure | |
98 | ||
99 | %{__make} | |
100 | ||
45886f05 | 101 | %{__cc} %{rpmcflags} -I./include %{rpmldflags} -L./src/.libs xvmcinfo.c -lX11 -lXv -lXvMC -o xvmcinfo |
187b6eb9 | 102 | |
ae363bb0 AM |
103 | %install |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT \ | |
108 | pkgconfigdir=%{_pkgconfigdir} | |
109 | ||
187b6eb9 ER |
110 | install -Dp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/XvMCConfig |
111 | install -Dp xvmcinfo $RPM_BUILD_ROOT%{_bindir}/xvmcinfo | |
74e87151 | 112 | |
9cf71d69 | 113 | # obsoleted by pkg-config |
627a9fea | 114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libXvMC*.la |
d350358c JB |
115 | # packaged as %doc |
116 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/libXvMC/XvMC_API.txt | |
6f789268 | 117 | |
ae363bb0 AM |
118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
ae363bb0 AM |
121 | %post -p /sbin/ldconfig |
122 | %postun -p /sbin/ldconfig | |
123 | ||
ae363bb0 AM |
124 | %files |
125 | %defattr(644,root,root,755) | |
9cf71d69 | 126 | %doc COPYING ChangeLog README.md |
187b6eb9 | 127 | %attr(755,root,root) %{_bindir}/xvmcinfo |
7bd91c67 | 128 | %attr(755,root,root) %{_libdir}/libXvMC.so.*.*.* |
2566ff3f | 129 | %attr(755,root,root) %ghost %{_libdir}/libXvMC.so.1 |
7bd91c67 | 130 | %attr(755,root,root) %{_libdir}/libXvMCW.so.*.*.* |
2566ff3f | 131 | %attr(755,root,root) %ghost %{_libdir}/libXvMCW.so.1 |
74e87151 | 132 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/XvMCConfig |
ae363bb0 AM |
133 | |
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
2566ff3f | 136 | %doc XvMC_API.txt |
7bd91c67 JB |
137 | %attr(755,root,root) %{_libdir}/libXvMC.so |
138 | %attr(755,root,root) %{_libdir}/libXvMCW.so | |
2566ff3f | 139 | %{_includedir}/X11/extensions/XvMClib.h |
149fe49f | 140 | %{_includedir}/X11/extensions/vldXvMC.h |
ae363bb0 | 141 | %{_pkgconfigdir}/xvmc.pc |
149fe49f | 142 | %{_pkgconfigdir}/xvmc-wrapper.pc |
ae363bb0 | 143 | |
ae363bb0 AM |
144 | %files static |
145 | %defattr(644,root,root,755) | |
7bd91c67 JB |
146 | %{_libdir}/libXvMC.a |
147 | %{_libdir}/libXvMCW.a |