]>
Commit | Line | Data |
---|---|---|
5105bcf6 BZ |
1 | %define ecore_ver 0.9.9.043 |
2 | %define edje_ver 0.9.9.043 | |
f9bebc29 | 3 | %define efreet_ver 0.0.3.004 |
5105bcf6 BZ |
4 | %define esmart_ver 0.9.0.042 |
5 | %define evas_ver 0.9.9.043 | |
6 | ||
548fd3ff | 7 | Summary: Enlightened display manager |
7b8a17ad | 8 | Summary(pl.UTF-8): Oświecony zarządca ekranu |
76e812d6 | 9 | Name: entrance |
5105bcf6 | 10 | Version: 0.9.9.042 |
44ce2e35 | 11 | Release: 1 |
548fd3ff | 12 | License: BSD |
13 | Group: X11/Applications | |
76e812d6 | 14 | Source0: http://download.enlightenment.org/snapshots/2008-01-25/entrace-%{version}.tar.bz2 |
5105bcf6 | 15 | # Source0-md5: ad11d899f6bb06641d1eec72651a0e3d |
76e812d6 BZ |
16 | Source1: %{name}.init |
17 | Source2: %{name}.Xsession | |
18 | Source3: %{name}.gen-conf | |
19 | Patch0: %{name}-conf.in.patch | |
20 | Patch1: %{name}-use_bash.patch | |
548fd3ff | 21 | URL: http://enlightenment.org/ |
44ce2e35 | 22 | BuildRequires: autoconf >= 2.59-9 |
f9bebc29 JB |
23 | BuildRequires: automake >= 1.6 |
24 | # ecore ecore-evas ecore-file ecore-ipc ecore-config | |
42138fe8 BZ |
25 | BuildRequires: ecore-devel >= %{ecore_ver} |
26 | BuildRequires: edje >= %{edje_ver} | |
27 | BuildRequires: edje-devel >= %{edje_ver} | |
f9bebc29 JB |
28 | BuildRequires: efreet-devel >= %{efreet_ver} |
29 | # esmart_container esmart_text_entry | |
42138fe8 BZ |
30 | BuildRequires: esmart-devel >= %{esmart_ver} |
31 | BuildRequires: evas-devel >= %{evas_ver} | |
32 | BuildRequires: evas-loader-jpeg >= %{evas_ver} | |
c25b571f | 33 | BuildRequires: libtool |
548fd3ff | 34 | BuildRequires: pam-devel |
e1470167 | 35 | BuildRequires: pkgconfig |
ed400c71 | 36 | BuildRequires: sed >= 4.0 |
37 | Requires(post,preun): /sbin/chkconfig | |
44ce2e35 JB |
38 | Requires: %{name}-libs = %{version}-%{release} |
39 | Requires: %{name}-theme | |
40 | #Requires: /bin/bash | |
42138fe8 | 41 | Requires: ecore >= %{ecore_ver} |
f9bebc29 | 42 | Requires: efreet >= %{efreet_ver} |
42138fe8 BZ |
43 | Requires: evas-engine-software_x11 >= %{evas_ver} |
44 | Requires: evas-loader-eet >= %{evas_ver} | |
ed400c71 | 45 | Requires: pam |
46 | Requires: sessreg | |
47 | Requires: xinitrc-ng | |
44ce2e35 JB |
48 | Provides: XDM |
49 | # disappeared from 0.9.0.009 | |
50 | Obsoletes: entrance-theme-Nebulous < 0.9.0.009 | |
51 | Obsoletes: entrance-theme-taillights < 0.9.0.009 | |
548fd3ff | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
54 | %description | |
55 | Entrance is the Enlightenment Display Manager. And like Enlightenment, | |
56 | it takes beauty and customization to levels that KDM and GDM can only | |
b035a1d1 JB |
57 | dream about... and without the bloat. |
58 | ||
504bc588 JR |
59 | %description -l pl.UTF-8 |
60 | Entrance to zarządca ekranu (Display Manager) dla Enlightenmenta. | |
61 | Podobnie jak Enlightenment ma piękno i możliwości konfiguracji, o | |
62 | jakich KDM czy GDM mogą tylko pomarzyć... i to bez narzutu. | |
548fd3ff | 63 | |
44ce2e35 JB |
64 | %package libs |
65 | Summary: Entrance library | |
66 | Summary(pl.UTF-8): Biblioteka Entrance | |
67 | Group: X11/Libraries | |
42138fe8 BZ |
68 | Requires: ecore-config >= %{ecore_ver} |
69 | Requires: ecore-desktop >= %{ecore_ver} | |
70 | Requires: ecore-evas >= %{ecore_ver} | |
71 | Requires: ecore-file >= %{ecore_ver} | |
72 | Requires: ecore-ipc >= %{ecore_ver} | |
44ce2e35 JB |
73 | |
74 | %description libs | |
75 | Entrance library. | |
76 | ||
77 | %description libs -l pl.UTF-8 | |
78 | Biblioteka Entrance. | |
79 | ||
80 | %package devel | |
81 | Summary: Header file for Entrance library | |
82 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki Entrance | |
83 | Group: X11/Development/Libraries | |
84 | Requires: %{name}-libs = %{version}-%{release} | |
85 | # ecore-evas ecore-file ecore-ipc ecore-config ecore-desktop | |
42138fe8 | 86 | Requires: ecore-devel >= %{ecore_ver} |
44ce2e35 JB |
87 | |
88 | %description devel | |
89 | Header file for Entrance library. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Plik nagłówkowy biblioteki Entrance. | |
93 | ||
94 | %package static | |
95 | Summary: Static Entrance library | |
96 | Summary(pl.UTF-8): Statyczna biblioteka Entrance | |
97 | Group: X11/Development/Libraries | |
98 | Requires: %{name}-devel = %{version}-%{release} | |
99 | ||
100 | %description static | |
101 | Static Entrance library. | |
102 | ||
103 | %description static -l pl.UTF-8 | |
104 | Statyczna biblioteka Entrance. | |
105 | ||
d620690d | 106 | %package theme-default |
107 | Summary: Default Entrance theme | |
7b8a17ad | 108 | Summary(pl.UTF-8): Domyślny motyw Entrance |
d620690d | 109 | Group: X11/Applications |
c89c9823 | 110 | Requires: %{name} = %{version}-%{release} |
d620690d | 111 | Provides: %{name}-theme |
112 | ||
113 | %description theme-default | |
114 | Default Entrance theme. | |
115 | ||
504bc588 JR |
116 | %description theme-default -l pl.UTF-8 |
117 | Domyślny motyw Entrance. | |
c89c9823 | 118 | |
d620690d | 119 | %package theme-darkrock |
120 | Summary: Darkrock Entrance theme | |
7b8a17ad | 121 | Summary(pl.UTF-8): Motyw Entrance Darkrock |
d620690d | 122 | Group: X11/Applications |
c89c9823 | 123 | Requires: %{name} = %{version}-%{release} |
d620690d | 124 | Provides: %{name}-theme |
125 | ||
126 | %description theme-darkrock | |
127 | Darkrock Entrance theme. | |
128 | ||
504bc588 | 129 | %description theme-darkrock -l pl.UTF-8 |
c89c9823 JB |
130 | Motyw Entrance Darkrock. |
131 | ||
548fd3ff | 132 | %prep |
76e812d6 | 133 | %setup -q -n entrace-%{version} |
ed400c71 | 134 | %patch0 -p1 |
44ce2e35 JB |
135 | # no-no-no, find real problem |
136 | #%patch1 -p1 | |
c25b571f | 137 | mv data/images/sessions/enlightenment{,DR17}.png |
d620690d | 138 | sed 's/enlightenment.png/enlightenmentDR17.png/' \ |
139 | -i data/images/sessions/Makefile.am | |
ed400c71 | 140 | |
141 | sed '/PACKAGE_CFG_DIR/s@"${sysconfdir}"@"${localstatedir}/lib/${PACKAGE}"@' \ | |
142 | -i configure.in | |
143 | sed -n '/xsession="You should reconfigure --with-xsession"/!p' \ | |
144 | -i configure.in | |
548fd3ff | 145 | |
76e812d6 BZ |
146 | #just for this release - updated in upstream |
147 | sed 's/AC_INIT(entrace,/AC_INIT(entrance,/' \ | |
148 | -i configure.in | |
149 | ||
548fd3ff | 150 | %build |
c25b571f | 151 | %{__libtoolize} |
152 | %{__aclocal} -I m4 | |
153 | %{__autoconf} | |
154 | %{__autoheader} | |
155 | %{__automake} | |
548fd3ff | 156 | %configure \ |
44ce2e35 JB |
157 | --with-pam-config=entrance \ |
158 | --with-vt=auto \ | |
ed400c71 | 159 | --with-xsession=%{_sysconfdir}/X11/%{name}/Xsession |
548fd3ff | 160 | %{__make} |
161 | ||
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
b035a1d1 | 164 | |
548fd3ff | 165 | %{__make} install \ |
166 | DESTDIR=$RPM_BUILD_ROOT | |
167 | ||
ed400c71 | 168 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/X11/%{name},/etc/rc.d/init.d,%{_var}/lib/%{name}} |
1177e299 | 169 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/entrance |
170 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/Xsession | |
171 | install %{SOURCE3} \ | |
ed400c71 | 172 | $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/generate-config |
173 | install data/config/build_config.sh.in \ | |
44ce2e35 | 174 | $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name} |
d620690d | 175 | touch $RPM_BUILD_ROOT%{_var}/lib/%{name}/entrance_config.cfg |
ed400c71 | 176 | |
548fd3ff | 177 | %clean |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
ed400c71 | 180 | %post |
181 | /sbin/chkconfig --add entrance | |
182 | if [ -f /var/lock/subsys/entrance ]; then | |
76e812d6 | 183 | echo "Run \"service entrance restart\" to restart entrance." >&2 |
ed400c71 | 184 | else |
76e812d6 | 185 | echo "Run \"service entrance start\" to start entrance." >&2 |
ed400c71 | 186 | fi |
187 | ||
188 | %preun | |
189 | if [ "$1" = "0" ]; then | |
190 | if [ -f /var/lock/subsys/entrance ]; then | |
191 | /etc/rc.d/init.d/entrance stop >&2 | |
192 | fi | |
193 | /sbin/chkconfig --del entrance | |
194 | fi | |
195 | ||
44ce2e35 JB |
196 | %post libs -p /sbin/ldconfig |
197 | %postun libs -p /sbin/ldconfig | |
198 | ||
548fd3ff | 199 | %files |
200 | %defattr(644,root,root,755) | |
44ce2e35 | 201 | %doc AUTHORS COPYING ChangeLog README README.edje TODO |
ed400c71 | 202 | %attr(754,root,root) /etc/rc.d/init.d/entrance |
b035a1d1 | 203 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/entrance |
44ce2e35 JB |
204 | %attr(755,root,root) %{_bindir}/entrance |
205 | %attr(755,root,root) %{_bindir}/entrance_edit | |
206 | %attr(755,root,root) %{_bindir}/entrance_edit-config | |
207 | %attr(755,root,root) %{_bindir}/entrance_wrapper | |
548fd3ff | 208 | %attr(755,root,root) %{_sbindir}/entranced |
44ce2e35 JB |
209 | %dir %{_libdir}/%{name} |
210 | %attr(755,root,root) %{_libdir}/%{name}/entrance_login | |
d620690d | 211 | %dir %{_datadir}/%{name} |
212 | %{_datadir}/%{name}/images | |
213 | %dir %{_datadir}/%{name}/themes | |
214 | %{_datadir}/%{name}/users | |
ed400c71 | 215 | %dir %{_sysconfdir}/X11/%{name} |
216 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/Xsession | |
217 | %attr(755,root,root) %{_sysconfdir}/X11/%{name}/generate-config | |
218 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/build_config.sh.in | |
219 | %dir %{_var}/lib/%{name} | |
d620690d | 220 | %ghost %{_var}/lib/%{name}/entrance_config.cfg |
221 | ||
44ce2e35 | 222 | %files libs |
d620690d | 223 | %defattr(644,root,root,755) |
f9bebc29 JB |
224 | %attr(755,root,root) %{_libdir}/libentrance_edit.so.*.*.* |
225 | %attr(755,root,root) %ghost %{_libdir}/libentrance_edit.so.0 | |
d620690d | 226 | |
44ce2e35 | 227 | %files devel |
d620690d | 228 | %defattr(644,root,root,755) |
44ce2e35 JB |
229 | %attr(755,root,root) %{_libdir}/libentrance_edit.so |
230 | %{_libdir}/libentrance_edit.la | |
231 | %{_includedir}/Entrance_Edit.h | |
d620690d | 232 | |
44ce2e35 | 233 | %files static |
d620690d | 234 | %defattr(644,root,root,755) |
44ce2e35 JB |
235 | %{_libdir}/libentrance_edit.a |
236 | ||
237 | %files theme-default | |
238 | %defattr(644,root,root,755) | |
239 | %{_datadir}/%{name}/themes/default.edj | |
d620690d | 240 | |
44ce2e35 | 241 | %files theme-darkrock |
d620690d | 242 | %defattr(644,root,root,755) |
44ce2e35 | 243 | %{_datadir}/%{name}/themes/darkrock.edj |