Added enable-quick-init option
[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(transform-server)
50 BuildRequires:  pkgconfig(screenshooter-server)
51 BuildRequires:  pkgconfig(screenshooter-client)
52 BuildRequires:  pkgconfig(tizen-extension-server)
53 BuildRequires:  pkgconfig(wayland-tbm-server)
54 BuildRequires:  pkgconfig(ecore-drm)
55 Requires:       libwayland-extension-server
56 %endif
57
58
59 %description
60 Enlightenment is a window manager.
61
62 %package devel
63 Summary:        Development components for the enlightenment package
64 Group:          Development/Libraries
65 Requires:       %{name} = %{version}
66
67 %description devel
68 Development files for enlightenment
69
70 %prep
71 %setup -q -n %{name}-%{version}
72 cp %{SOURCE1001} .
73
74
75 %build
76 %autogen \
77 %if %{with wayland}
78       --enable-wayland-only \
79       --enable-wl-drm \
80       --disable-shot \
81       --disable-xkbswitch \
82       --disable-conf-randr \
83       --disable-conf-bindings \
84       --disable-conf-display \
85       --disable-conf-theme \
86       --disable-everything \
87       --disable-fileman \
88       --disable-pager \
89       --disable-pager-plain \
90       --disable-systray \
91       --disable-tiling \
92       --disable-winlist \
93       --disable-wizard \
94       --disable-wl-x11 \
95       --enable-quick-init \
96 %endif
97       --enable-mount-eeze
98
99 make %{?_smp_mflags}
100
101 %install
102 %make_install
103
104 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
105 rm -f %{buildroot}%{_prefix}/lib/systemd/user/enlightenment.service
106
107 %find_lang enlightenment
108 %fdupes  %{buildroot}/%{_libdir}/enlightenment
109 %fdupes  %{buildroot}/%{_datadir}/enlightenment
110
111 %lang_package
112
113 %files
114 %manifest %{name}.manifest
115 %defattr(-,root,root,-)
116 %license COPYING
117 %config %{_sysconfdir}/enlightenment/sysactions.conf
118 %{_bindir}/enlightenment*
119 %{_libdir}/enlightenment/*
120 %{_datadir}/enlightenment/*
121 %{_datadir}/xsessions/enlightenment.desktop
122 %{_sysconfdir}/xdg/menus/e-applications.menu
123 %{_datadir}/applications/enlightenment_filemanager.desktop
124 %{_sysconfdir}/dbus-1/system.d/org.enlightenment.wm.conf
125 %exclude /usr/share/enlightenment/data/config/profile.cfg
126
127 %files devel
128 %manifest %{name}.manifest
129 %defattr(-,root,root,-)
130 %{_includedir}/enlightenment/*
131 %{_libdir}/pkgconfig/*.pc