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