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