0ff696c1b4530cf36cbdac06f9e0671d6f04b9bc
[platform/upstream/libXv.git] / packaging / libXv.spec
1 Name:           libXv
2 Version:        1.0.7
3 Release:        1
4 License:        MIT
5 Summary:        X
6 Url:            http://www.x.org
7 Group:          System/Libraries
8
9 Source:         %{name}-%{version}.tar.bz2
10
11 BuildRequires:  pkgconfig(videoproto)
12 BuildRequires:  pkgconfig(xext)
13 BuildRequires:  pkgconfig(xorg-macros)
14
15 %description
16 X.Org X11 libXv runtime library
17
18 %package devel
19 Summary:        X
20 Group:          Development/Libraries
21 Requires:       %{name} = %{version}
22 Provides:       libxv-devel
23
24 %description devel
25 X.Org X11 libXv development package
26
27 %prep
28 %setup -q
29
30 %build
31 %reconfigure --disable-static \
32                LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
33 make %{?_smp_mflags}
34
35 %install
36
37 %make_install
38 %remove_docs
39
40 %post -p /sbin/ldconfig
41 %postun -p /sbin/ldconfig
42
43 %files
44 %defattr(-,root,root,-)
45 %doc COPYING 
46 %{_libdir}/libXv.so.1
47 %{_libdir}/libXv.so.1.0.0
48
49 %files devel
50 %defattr(-,root,root,-)
51 %doc man/xv-library-v2.2.txt
52 %{_includedir}/X11/extensions/Xvlib.h
53 %{_libdir}/libXv.so
54 %{_libdir}/pkgconfig/xv.pc