Package version up to 1.4.43
[platform/core/uifw/wayland-extension.git] / packaging / wayland-extension.spec
1 # to build examples
2 %define enable_examples 0
3
4 Name:           wayland-extension
5 Version:        1.3.43
6 Release:        0
7 Summary:        Wayland extenstion protocols that add functionality not available in the Wayland core protocol
8 License:        MIT
9 Group:          Graphics & UI Framework/Wayland Window System
10 URL:            http://www.tizen.org/
11 Source:         %name-%version.tar.xz
12 Source1001:     %name.manifest
13 BuildRequires:  autoconf >= 2.64, automake >= 1.11
14 BuildRequires:  libtool >= 2.2
15 BuildRequires:  pkgconfig
16 BuildRequires:  pkgconfig(wayland-server)
17 BuildRequires:  pkgconfig(wayland-client)
18 BuildRequires:  pkgconfig(gmock)
19
20 # requires to build examples
21 %if "%{enable_examples}" == "1"
22 BuildRequires:  pkgconfig(evas)
23 BuildRequires:  pkgconfig(ecore)
24 BuildRequires:  pkgconfig(ecore-wl2)
25 BuildRequires:  pkgconfig(elementary)
26 BuildRequires:  pkgconfig(libtbm)
27 BuildRequires:  pkgconfig(wayland-tbm-client)
28 # NB: It causes a circular dependency, however we have no choice
29 #     but to use the elm to build examples.
30 BuildRequires:  wayland-extension-client-devel
31 %endif
32
33 %description
34 wayland-extension contains Wayland protocols that add functionality not available in the Wayland core protocol.
35
36 %package -n libwayland-extension-client
37 Group:          Graphics & UI Framework/Wayland Window System
38 Summary:        Wayland Extension client library
39 Requires:   libwayland-client
40
41 %description -n libwayland-extension-client
42 wayland-extension is a protocol for tizen window system.
43
44 %package -n libwayland-extension-server
45 Group:          Graphics & UI Framework/Wayland Window System
46 Summary:        Wayland Extension server library
47 Requires:   libwayland-server
48
49 %description -n libwayland-extension-server
50 wayland-extension is a protocol for tizen window system.
51
52 %package -n wayland-extension-client-devel
53 Summary:        Client development files for the Wayland Extension Protocol
54 Group:          Graphics & UI Framework/Development
55 Requires:       libwayland-extension-client = %version
56
57 %description -n wayland-extension-client-devel
58 wayland-extension is a protocol for tizen window system.
59
60 This package contains all necessary include files and libraries needed
61 to develop applications that require these.
62
63 %package -n wayland-extension-server-devel
64 Summary:        Server development files for the Wayland Extension Protocol
65 Group:          Graphics & UI Framework/Development
66 Requires:       libwayland-extension-server = %version
67
68 %description -n wayland-extension-server-devel
69 wayland-extension is a protocol for tizen window system.
70
71 This package contains all necessary include files and libraries needed
72 to develop a compositor that require these.
73
74 %package -n wayland-protocols
75 Summary:        Wayland upstream protocols
76 Group:          Graphics & UI Framework/Development
77 Requires:   libwayland-client
78
79 %description -n wayland-protocols
80 wayland-protocols contains Wayland upstream protocols that add functionality not available in the Wayland core protocol
81
82 %package -n libwayland-extension-unittests
83 Summary: Unit test cases for the libwayland-extension
84 Group:   Graphics & UI Framework/Development
85 Requires:   libwayland-client
86 Requires:   libwayland-server
87
88 %description -n libwayland-extension-unittests
89 Unit test cases for the libwayland-extension
90
91 %prep
92 %setup -q
93 cp %{SOURCE1001} .
94
95 %build
96 export CFLAGS+=" -Wall -Werror"
97 %if "%{enable_examples}" == "1"
98    export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
99    %reconfigure --disable-static --enable-build-examples LIBDIR=%{_libdir}
100 %else
101    %reconfigure --disable-static LIBDIR=%{_libdir}
102 %endif
103 make %{?_smp_mflags}
104
105 %install
106 %make_install
107
108 %post -n libwayland-extension-client -p /sbin/ldconfig
109 %postun -n libwayland-extension-client -p /sbin/ldconfig
110 %post -n libwayland-extension-server -p /sbin/ldconfig
111 %postun -n libwayland-extension-server -p /sbin/ldconfig
112
113 %files -n libwayland-extension-client
114 %manifest %{name}.manifest
115 %license COPYING
116 %defattr(-,root,root)
117 %_libdir/*-client.so.0*
118 %if "%{enable_examples}" == "1"
119 %{_bindir}/*
120 %endif
121
122 %files -n libwayland-extension-server
123 %manifest %{name}.manifest
124 %license COPYING
125 %defattr(-,root,root)
126 %_libdir/*-server.so.0*
127
128 %files -n wayland-extension-client-devel
129 %manifest %{name}.manifest
130 %defattr(-,root,root)
131 %_includedir/wayland-extension/wayland-extension-version.h
132 %_includedir/wayland-extension/*-client-protocol.h
133 %_libdir/*-client.so
134 %_libdir/pkgconfig/*-client.pc
135
136 %files -n wayland-extension-server-devel
137 %manifest %{name}.manifest
138 %defattr(-,root,root)
139 %_includedir/wayland-extension/wayland-extension-version.h
140 %_includedir/wayland-extension/*-server-protocol.h
141 %_libdir/*-server.so
142 %_libdir/pkgconfig/*-server.pc
143
144 %files -n wayland-protocols
145 %manifest %{name}.manifest
146 %license COPYING
147 %defattr(-,root,root)
148 %_datadir/wayland-extension/protocol/tizen/*
149 %_datadir/wayland-extension/protocol/stable/*
150 %_datadir/wayland-extension/protocol/staging/*
151 %_datadir/wayland-extension/protocol/unstable/*
152 %_libdir/pkgconfig/wayland-protocols.pc
153
154 %files -n libwayland-extension-unittests
155 %defattr(-,root,root,-)
156 %{_bindir}/libwayland-extension-unittests
157
158 %changelog