3 # - move to entrace.spec on CVS
5 %define ecore_ver 0.9.9.043
6 %define edje_ver 0.9.9.043
7 %define esmart_ver 0.9.0.042
8 %define evas_ver 0.9.9.043
10 %define src_name entrance
12 Summary: Enlightened display manager
13 Summary(pl.UTF-8): Oświecony zarządca ekranu
18 Group: X11/Applications
19 Source0: http://download.enlightenment.org/snapshots/2008-01-25/%{name}-%{version}.tar.bz2
20 # Source0-md5: ad11d899f6bb06641d1eec72651a0e3d
21 Source1: %{src_name}.init
22 Source2: %{src_name}.Xsession
23 Source3: %{src_name}.gen-conf
24 Patch0: %{src_name}-conf.in.patch
25 Patch1: %{src_name}-use_bash.patch
26 URL: http://enlightenment.org/
27 BuildRequires: autoconf >= 2.59-9
28 BuildRequires: automake >= 1.4
29 # ecore-evas ecore-file ecore-ipc ecore-config ecore-desktop
30 BuildRequires: ecore-devel >= %{ecore_ver}
31 BuildRequires: edje >= %{edje_ver}
32 BuildRequires: edje-devel >= %{edje_ver}
33 BuildRequires: esmart-devel >= %{esmart_ver}
34 BuildRequires: evas-devel >= %{evas_ver}
35 BuildRequires: evas-loader-jpeg >= %{evas_ver}
36 BuildRequires: libtool
37 BuildRequires: pam-devel
38 BuildRequires: pkgconfig
39 BuildRequires: sed >= 4.0
40 Requires(post,preun): /sbin/chkconfig
41 Requires: %{name}-libs = %{version}-%{release}
42 Requires: %{name}-theme
44 Requires: ecore >= %{ecore_ver}
45 Requires: evas-engine-software_x11 >= %{evas_ver}
46 Requires: evas-loader-eet >= %{evas_ver}
51 # disappeared from 0.9.0.009
52 Obsoletes: entrance-theme-Nebulous < 0.9.0.009
53 Obsoletes: entrance-theme-taillights < 0.9.0.009
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 Entrance is the Enlightenment Display Manager. And like Enlightenment,
58 it takes beauty and customization to levels that KDM and GDM can only
59 dream about... and without the bloat.
61 %description -l pl.UTF-8
62 Entrance to zarządca ekranu (Display Manager) dla Enlightenmenta.
63 Podobnie jak Enlightenment ma piękno i możliwości konfiguracji, o
64 jakich KDM czy GDM mogą tylko pomarzyć... i to bez narzutu.
67 Summary: Entrance library
68 Summary(pl.UTF-8): Biblioteka Entrance
70 Requires: ecore-config >= %{ecore_ver}
71 Requires: ecore-desktop >= %{ecore_ver}
72 Requires: ecore-evas >= %{ecore_ver}
73 Requires: ecore-file >= %{ecore_ver}
74 Requires: ecore-ipc >= %{ecore_ver}
79 %description libs -l pl.UTF-8
83 Summary: Header file for Entrance library
84 Summary(pl.UTF-8): Plik nagłówkowy biblioteki Entrance
85 Group: X11/Development/Libraries
86 Requires: %{name}-libs = %{version}-%{release}
87 # ecore-evas ecore-file ecore-ipc ecore-config ecore-desktop
88 Requires: ecore-devel >= %{ecore_ver}
91 Header file for Entrance library.
93 %description devel -l pl.UTF-8
94 Plik nagłówkowy biblioteki Entrance.
97 Summary: Static Entrance library
98 Summary(pl.UTF-8): Statyczna biblioteka Entrance
99 Group: X11/Development/Libraries
100 Requires: %{name}-devel = %{version}-%{release}
103 Static Entrance library.
105 %description static -l pl.UTF-8
106 Statyczna biblioteka Entrance.
108 %package theme-default
109 Summary: Default Entrance theme
110 Summary(pl.UTF-8): Domyślny motyw Entrance
111 Group: X11/Applications
112 Requires: %{name} = %{version}-%{release}
113 Provides: %{name}-theme
115 %description theme-default
116 Default Entrance theme.
118 %description theme-default -l pl.UTF-8
119 Domyślny motyw Entrance.
121 %package theme-darkrock
122 Summary: Darkrock Entrance theme
123 Summary(pl.UTF-8): Motyw Entrance Darkrock
124 Group: X11/Applications
125 Requires: %{name} = %{version}-%{release}
126 Provides: %{name}-theme
128 %description theme-darkrock
129 Darkrock Entrance theme.
131 %description theme-darkrock -l pl.UTF-8
132 Motyw Entrance Darkrock.
137 # no-no-no, find real problem
139 mv data/images/sessions/enlightenment{,DR17}.png
140 sed 's/enlightenment.png/enlightenmentDR17.png/' \
141 -i data/images/sessions/Makefile.am
143 sed '/PACKAGE_CFG_DIR/s@"${sysconfdir}"@"${localstatedir}/lib/${PACKAGE}"@' \
145 sed -n '/xsession="You should reconfigure --with-xsession"/!p' \
155 --with-pam-config=entrance \
157 --with-xsession=%{_sysconfdir}/X11/%{name}/Xsession
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT
166 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/X11/%{name},/etc/rc.d/init.d,%{_var}/lib/%{name}}
167 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/entrance
168 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/Xsession
170 $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/generate-config
171 install data/config/build_config.sh.in \
172 $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}
173 touch $RPM_BUILD_ROOT%{_var}/lib/%{name}/entrance_config.cfg
176 rm -rf $RPM_BUILD_ROOT
179 /sbin/chkconfig --add entrance
180 if [ -f /var/lock/subsys/entrance ]; then
181 echo "Run \"/etc/rc.d/init.d/entrance restart\" to restart entrance." >&2
183 echo "Run \"/etc/rc.d/init.d/entrance start\" to start entrance." >&2
187 if [ "$1" = "0" ]; then
188 if [ -f /var/lock/subsys/entrance ]; then
189 /etc/rc.d/init.d/entrance stop >&2
191 /sbin/chkconfig --del entrance
194 %post libs -p /sbin/ldconfig
195 %postun libs -p /sbin/ldconfig
198 %defattr(644,root,root,755)
199 %doc AUTHORS COPYING ChangeLog README README.edje TODO
200 %attr(754,root,root) /etc/rc.d/init.d/entrance
201 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/entrance
202 %attr(755,root,root) %{_bindir}/entrance
203 %attr(755,root,root) %{_bindir}/entrance_edit
204 %attr(755,root,root) %{_bindir}/entrance_edit-config
205 %attr(755,root,root) %{_bindir}/entrance_wrapper
206 %attr(755,root,root) %{_sbindir}/entranced
207 %dir %{_libdir}/%{name}
208 %attr(755,root,root) %{_libdir}/%{name}/entrance_login
209 %dir %{_datadir}/%{name}
210 %{_datadir}/%{name}/images
211 %dir %{_datadir}/%{name}/themes
212 %{_datadir}/%{name}/users
213 %dir %{_sysconfdir}/X11/%{name}
214 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/Xsession
215 %attr(755,root,root) %{_sysconfdir}/X11/%{name}/generate-config
216 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/build_config.sh.in
217 %dir %{_var}/lib/%{name}
218 %ghost %{_var}/lib/%{name}/entrance_config.cfg
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libentrance_edit.so.*
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/libentrance_edit.so
227 %{_libdir}/libentrance_edit.la
228 %{_includedir}/Entrance_Edit.h
231 %defattr(644,root,root,755)
232 %{_libdir}/libentrance_edit.a
235 %defattr(644,root,root,755)
236 %{_datadir}/%{name}/themes/default.edj
238 %files theme-darkrock
239 %defattr(644,root,root,755)
240 %{_datadir}/%{name}/themes/darkrock.edj