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