remove libdrm dependency at devel package
[platform/core/uifw/libtbm.git] / packaging / libtbm.spec
1 Name:           libtbm
2 Version:        1.1.0
3 Release:        2
4 License:        MIT
5 Summary:        The library for Tizen Buffer Manager
6 Group:          System/Libraries
7 Source0:        %{name}-%{version}.tar.gz
8
9 BuildRequires:  pkgconfig(pthread-stubs)
10 BuildRequires:  pkgconfig(libdrm)
11 BuildRequires:  pkgconfig(x11)
12 BuildRequires:  pkgconfig(libdri2)
13 BuildRequires:  pkgconfig(capi-base-common)
14
15 %description
16 Description: %{summary}
17
18 %package devel
19 Summary:        Tizen Buffer Manager Library - Development
20 Group:          Development/Libraries
21 Requires:       libtbm = %{version}
22 Requires:       pkgconfig(capi-base-common)
23
24 %description devel
25 The library for Tizen Buffer Manager.
26
27 Development Files.
28
29 %prep
30 %setup -q
31
32 %build
33
34 %reconfigure --prefix=%{_prefix} \
35             CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
36
37 make %{?_smp_mflags}
38
39 %install
40 rm -rf %{buildroot}
41 mkdir -p %{buildroot}/usr/share/license
42 cp -af COPYING %{buildroot}/usr/share/license/%{name}
43 %make_install
44
45
46 %clean
47 rm -rf %{buildroot}
48
49 %post -p /sbin/ldconfig
50 %postun -p /sbin/ldconfig
51
52
53 %files
54 %manifest libtbm.manifest
55 %defattr(-,root,root,-)
56 /usr/share/license/%{name}
57 %{_libdir}/libtbm.so.*
58 %{_libdir}/libdrm_slp.so.*
59
60 %files devel
61 %defattr(-,root,root,-)
62 %dir %{_includedir}
63 %{_includedir}/tbm_bufmgr.h
64 %{_includedir}/tbm_surface.h
65 %{_includedir}/tbm_surface_internal.h
66 %{_includedir}/tbm_bufmgr_backend.h
67 %{_includedir}/tbm_type.h
68 %{_libdir}/libtbm.so
69 %{_libdir}/libdrm_slp.so
70 %{_libdir}/pkgconfig/libtbm.pc
71