using tizen-extension wayland protocol instead of including *protocol.c directly
[platform/upstream/enlightenment.git] / packaging / enlightenment.spec
1 %bcond_with x
2 %bcond_with wayland
3
4 Name:           enlightenment
5 Version:        0.19.99
6 Release:        0
7 License:        BSD-2-Clause
8 Summary:        The Enlightenment window manager
9 Url:            http://www.enlightenment.org/
10 Group:          Graphics/EFL
11 Source0:        enlightenment-%{version}.tar.bz2
12 Source1001:     enlightenment.manifest
13 BuildRequires:  doxygen
14 BuildRequires:  eet-tools
15 BuildRequires:  fdupes
16 BuildRequires:  gettext
17 BuildRequires:  pam-devel
18 BuildRequires:  pkgconfig(alsa)
19 BuildRequires:  pkgconfig(dbus-1)
20 BuildRequires:  pkgconfig(ecore)
21 BuildRequires:  pkgconfig(ecore-con)
22 BuildRequires:  pkgconfig(ecore-evas)
23 BuildRequires:  pkgconfig(ecore-file)
24 BuildRequires:  pkgconfig(ecore-input)
25 BuildRequires:  pkgconfig(ecore-input-evas)
26 BuildRequires:  pkgconfig(ecore-ipc)
27 BuildRequires:  pkgconfig(edbus)
28 BuildRequires:  pkgconfig(edje)
29 BuildRequires:  pkgconfig(eet)
30 BuildRequires:  pkgconfig(eeze)
31 BuildRequires:  pkgconfig(efreet)
32 BuildRequires:  pkgconfig(eina)
33 BuildRequires:  pkgconfig(eio)
34 BuildRequires:  pkgconfig(evas)
35 BuildRequires:  pkgconfig(elementary)
36 BuildRequires:  pkgconfig(ice)
37 BuildRequires:  pkgconfig(libudev)
38 BuildRequires:  pkgconfig(udev)
39 BuildRequires:  pkgconfig(libtbm)
40 %if %{with x}
41 BuildRequires:  pkgconfig(x11)
42 BuildRequires:  pkgconfig(xext)
43 BuildRequires:  pkgconfig(xcb-keysyms)
44 BuildRequires:  pkgconfig(ecore-x)
45 %else
46 BuildRequires:  pkgconfig(wayland-server)
47 BuildRequires:  pkgconfig(xdg-shell-server)
48 BuildRequires:  pkgconfig(scaler-server)
49 BuildRequires:  pkgconfig(screenshooter-server)
50 BuildRequires:  pkgconfig(screenshooter-client)
51 BuildRequires:  pkgconfig(tizen-extension-server)
52 %endif
53
54
55 %description
56 Enlightenment is a window manager.
57
58 %package devel
59 Summary:        Development components for the enlightenment package
60 Group:          Development/Libraries
61 Requires:       %{name} = %{version}
62
63 %description devel
64 Development files for enlightenment
65
66 %prep
67 %setup -q -n %{name}-%{version}
68 cp %{SOURCE1001} .
69
70
71 %build
72 %autogen \
73 %if %{with wayland}
74       --enable-wayland-only \
75       --enable-wl-drm \
76       --disable-shot \
77       --disable-xkbswitch \
78       --disable-conf-randr \
79       --disable-conf-bindings \
80       --disable-conf-display \
81       --disable-conf-theme \
82       --disable-everything \
83       --disable-fileman \
84       --disable-pager \
85       --disable-pager-plain \
86       --disable-systray \
87       --disable-tiling \
88       --disable-winlist \
89       --disable-wizard \
90       --disable-wl-x11 \
91 %endif
92       --enable-mount-eeze
93
94 make %{?_smp_mflags}
95
96 %install
97 %make_install
98
99 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
100 rm -f %{buildroot}%{_prefix}/lib/systemd/user/enlightenment.service
101
102 %find_lang enlightenment
103 %fdupes  %{buildroot}/%{_libdir}/enlightenment
104 %fdupes  %{buildroot}/%{_datadir}/enlightenment
105
106 %lang_package
107
108 %files
109 %manifest %{name}.manifest
110 %defattr(-,root,root,-)
111 %license COPYING
112 %config %{_sysconfdir}/enlightenment/sysactions.conf
113 %{_bindir}/enlightenment*
114 %{_libdir}/enlightenment/*
115 %{_datadir}/enlightenment/*
116 %{_datadir}/xsessions/enlightenment.desktop
117 %{_sysconfdir}/xdg/menus/e-applications.menu
118 %{_datadir}/applications/enlightenment_filemanager.desktop
119 %{_sysconfdir}/dbus-1/system.d/org.enlightenment.wm.conf
120 %exclude /usr/share/enlightenment/data/config/profile.cfg
121
122 %files devel
123 %manifest %{name}.manifest
124 %defattr(-,root,root,-)
125 %{_includedir}/enlightenment/*
126 %{_libdir}/pkgconfig/*.pc