merge with master
[platform/upstream/libwsbm.git] / packaging / libwsbm.spec
1 Summary: Buffer manager abstraction library
2 Name:    libwsbm
3 Version: 1.1.0
4 Release: 1
5 Group:   Development/Libraries
6 License: MIT
7 Source:  libwsbm-src.1.1.0.tar.bz2
8 Patch0:  libwsbm.patch
9 Patch1:  0001-CDV-include-tweaks.patch
10 URL:     http://www.x.org/wiki/libwsbm
11 BuildRequires: libdrm-devel
12 BuildRequires: psb-headers
13 Conflicts: libwsbm-cdv
14 ExclusiveArch: %ix86
15
16 %description
17 The libwsbm (wsbm stands for Window System Buffer Manager) library previously
18 lived as a dri buffer manager within mesa. This package builds against
19 PVR-provided PSB headers found in the kernel-adaptation-pc image. This package
20 ought only be installed on a CDV system.
21
22 %package devel
23 Summary: Development headers for libwsbm
24 Group: Development/Libraries
25 Requires: %{name} = %{version}-%{release}
26
27 %description devel
28 Development headers (Graphics) for libwsbm
29
30 %prep
31 %setup -q -n libwsbm-src.%{version}
32
33 # libswbm.patch
34 %patch0 -p1
35 # 0001-CDV-include-tweaks.patch
36 %patch1 -p1
37
38 %build
39 %autogen
40 make %{?_smp_mflags}
41
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 %make_install
46
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post -p /sbin/ldconfig
52 %postun -p /sbin/ldconfig
53
54 %files
55 %defattr(-,root,root,-)
56 %{_libdir}/libwsbm.so.1
57 %{_libdir}/libwsbm.so.1.1.0
58
59
60 %files devel
61 %defattr(-,root,root,-)
62 %{_libdir}/pkgconfig/libwsbm.pc
63 %{_libdir}/libwsbm.so
64 %{_includedir}/wsbm/*.h
65
66
67 %changelog