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