2 %define enable_examples 0
4 Name: wayland-extension
7 Summary: Wayland extenstion protocols that add functionality not available in the Wayland core protocol
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)
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
34 wayland-extension contains Wayland protocols that add functionality not available in the Wayland core protocol.
36 %package -n libwayland-extension-client
37 Group: Graphics & UI Framework/Wayland Window System
38 Summary: Wayland Extension client library
39 Requires: libwayland-client
41 %description -n libwayland-extension-client
42 wayland-extension is a protocol for tizen window system.
44 %package -n libwayland-extension-server
45 Group: Graphics & UI Framework/Wayland Window System
46 Summary: Wayland Extension server library
47 Requires: libwayland-server
49 %description -n libwayland-extension-server
50 wayland-extension is a protocol for tizen window system.
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
57 %description -n wayland-extension-client-devel
58 wayland-extension is a protocol for tizen window system.
60 This package contains all necessary include files and libraries needed
61 to develop applications that require these.
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
68 %description -n wayland-extension-server-devel
69 wayland-extension is a protocol for tizen window system.
71 This package contains all necessary include files and libraries needed
72 to develop a compositor that require these.
74 %package -n wayland-protocols
75 Summary: Wayland upstream protocols
76 Group: Graphics & UI Framework/Development
77 Requires: libwayland-client
79 %description -n wayland-protocols
80 wayland-protocols contains Wayland upstream protocols that add functionality not available in the Wayland core protocol
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
88 %description -n libwayland-extension-unittests
89 Unit test cases for the libwayland-extension
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}
101 %reconfigure --disable-static LIBDIR=%{_libdir}
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
113 %files -n libwayland-extension-client
114 %manifest %{name}.manifest
116 %defattr(-,root,root)
117 %_libdir/*-client.so.0*
118 %if "%{enable_examples}" == "1"
122 %files -n libwayland-extension-server
123 %manifest %{name}.manifest
125 %defattr(-,root,root)
126 %_libdir/*-server.so.0*
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
134 %_libdir/pkgconfig/*-client.pc
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
142 %_libdir/pkgconfig/*-server.pc
144 %files -n wayland-protocols
145 %manifest %{name}.manifest
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
154 %files -n libwayland-extension-unittests
155 %defattr(-,root,root,-)
156 %{_bindir}/libwayland-extension-unittests