add ttrace
[platform/core/uifw/libtdm.git] / packaging / libtdm.spec
1 Name:           libtdm
2 Version:        1.1.0
3 Release:        0
4 Summary:        User Library of Tizen Display Manager
5 Group:          Development/Libraries
6 License:        MIT
7 Source0:        %{name}-%{version}.tar.gz
8 Source1001:         %{name}.manifest
9 BuildRequires:  pkgconfig(pthread-stubs)
10 BuildRequires:  pkgconfig(libtbm)
11 BuildRequires:  pkgconfig(libpng)
12 BuildRequires:  pkgconfig(ttrace)
13
14 %description
15 Common user library of Tizen Display Manager : libtdm front-end library
16
17 %package devel
18 Summary:        Devel of Tizen Display Manager Library
19 Group:          Development/Libraries
20 Requires:       libtdm = %{version}
21 Requires:       pkgconfig(libtbm)
22
23 %description devel
24 This supports frontend & backend library header and so
25
26 %prep
27 %setup -q
28 cp %{SOURCE1001} .
29
30 %build
31 %reconfigure --disable-static \
32              CFLAGS="${CFLAGS} -Wall -Werror" \
33              LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
34 make %{?_smp_mflags}
35
36 %install
37 %make_install
38
39 %post -p /sbin/ldconfig
40 %postun -p /sbin/ldconfig
41
42
43 %files
44 %manifest %{name}.manifest
45 %license COPYING
46 %defattr(-,root,root,-)
47 %{_libdir}/libtdm.so.*
48
49 %files devel
50 %manifest %{name}.manifest
51 %defattr(-,root,root,-)
52 %{_includedir}/*
53 %{_libdir}/pkgconfig/*
54 %{_libdir}/libtdm.so
55
56 %changelog