]>
Commit | Line | Data |
---|---|---|
42138fe8 | 1 | # |
5105bcf6 BZ |
2 | # TODO: |
3 | # - move to entrace.spec on CVS | |
4 | ||
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 | |
9 | ||
10 | %define src_name entrance | |
42138fe8 | 11 | |
548fd3ff | 12 | Summary: Enlightened display manager |
7b8a17ad | 13 | Summary(pl.UTF-8): Oświecony zarządca ekranu |
5105bcf6 BZ |
14 | Name: entrace |
15 | Version: 0.9.9.042 | |
44ce2e35 | 16 | Release: 1 |
548fd3ff | 17 | License: BSD |
18 | Group: X11/Applications | |
5105bcf6 BZ |
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 | |
548fd3ff | 26 | URL: http://enlightenment.org/ |
44ce2e35 JB |
27 | BuildRequires: autoconf >= 2.59-9 |
28 | BuildRequires: automake >= 1.4 | |
29 | # ecore-evas ecore-file ecore-ipc ecore-config ecore-desktop | |
42138fe8 BZ |
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} | |
c25b571f | 36 | BuildRequires: libtool |
548fd3ff | 37 | BuildRequires: pam-devel |
e1470167 | 38 | BuildRequires: pkgconfig |
ed400c71 | 39 | BuildRequires: sed >= 4.0 |
40 | Requires(post,preun): /sbin/chkconfig | |
44ce2e35 JB |
41 | Requires: %{name}-libs = %{version}-%{release} |
42 | Requires: %{name}-theme | |
43 | #Requires: /bin/bash | |
42138fe8 BZ |
44 | Requires: ecore >= %{ecore_ver} |
45 | Requires: evas-engine-software_x11 >= %{evas_ver} | |
46 | Requires: evas-loader-eet >= %{evas_ver} | |
ed400c71 | 47 | Requires: pam |
48 | Requires: sessreg | |
49 | Requires: xinitrc-ng | |
44ce2e35 JB |
50 | Provides: XDM |
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 | |
548fd3ff | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55 | ||
56 | %description | |
57 | Entrance is the Enlightenment Display Manager. And like Enlightenment, | |
58 | it takes beauty and customization to levels that KDM and GDM can only | |
b035a1d1 JB |
59 | dream about... and without the bloat. |
60 | ||
504bc588 JR |
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. | |
548fd3ff | 65 | |
44ce2e35 JB |
66 | %package libs |
67 | Summary: Entrance library | |
68 | Summary(pl.UTF-8): Biblioteka Entrance | |
69 | Group: X11/Libraries | |
42138fe8 BZ |
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} | |
44ce2e35 JB |
75 | |
76 | %description libs | |
77 | Entrance library. | |
78 | ||
79 | %description libs -l pl.UTF-8 | |
80 | Biblioteka Entrance. | |
81 | ||
82 | %package devel | |
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 | |
42138fe8 | 88 | Requires: ecore-devel >= %{ecore_ver} |
44ce2e35 JB |
89 | |
90 | %description devel | |
91 | Header file for Entrance library. | |
92 | ||
93 | %description devel -l pl.UTF-8 | |
94 | Plik nagłówkowy biblioteki Entrance. | |
95 | ||
96 | %package static | |
97 | Summary: Static Entrance library | |
98 | Summary(pl.UTF-8): Statyczna biblioteka Entrance | |
99 | Group: X11/Development/Libraries | |
100 | Requires: %{name}-devel = %{version}-%{release} | |
101 | ||
102 | %description static | |
103 | Static Entrance library. | |
104 | ||
105 | %description static -l pl.UTF-8 | |
106 | Statyczna biblioteka Entrance. | |
107 | ||
d620690d | 108 | %package theme-default |
109 | Summary: Default Entrance theme | |
7b8a17ad | 110 | Summary(pl.UTF-8): Domyślny motyw Entrance |
d620690d | 111 | Group: X11/Applications |
c89c9823 | 112 | Requires: %{name} = %{version}-%{release} |
d620690d | 113 | Provides: %{name}-theme |
114 | ||
115 | %description theme-default | |
116 | Default Entrance theme. | |
117 | ||
504bc588 JR |
118 | %description theme-default -l pl.UTF-8 |
119 | Domyślny motyw Entrance. | |
c89c9823 | 120 | |
d620690d | 121 | %package theme-darkrock |
122 | Summary: Darkrock Entrance theme | |
7b8a17ad | 123 | Summary(pl.UTF-8): Motyw Entrance Darkrock |
d620690d | 124 | Group: X11/Applications |
c89c9823 | 125 | Requires: %{name} = %{version}-%{release} |
d620690d | 126 | Provides: %{name}-theme |
127 | ||
128 | %description theme-darkrock | |
129 | Darkrock Entrance theme. | |
130 | ||
504bc588 | 131 | %description theme-darkrock -l pl.UTF-8 |
c89c9823 JB |
132 | Motyw Entrance Darkrock. |
133 | ||
548fd3ff | 134 | %prep |
a19ce34e | 135 | %setup -q |
ed400c71 | 136 | %patch0 -p1 |
44ce2e35 JB |
137 | # no-no-no, find real problem |
138 | #%patch1 -p1 | |
c25b571f | 139 | mv data/images/sessions/enlightenment{,DR17}.png |
d620690d | 140 | sed 's/enlightenment.png/enlightenmentDR17.png/' \ |
141 | -i data/images/sessions/Makefile.am | |
ed400c71 | 142 | |
143 | sed '/PACKAGE_CFG_DIR/s@"${sysconfdir}"@"${localstatedir}/lib/${PACKAGE}"@' \ | |
144 | -i configure.in | |
145 | sed -n '/xsession="You should reconfigure --with-xsession"/!p' \ | |
146 | -i configure.in | |
548fd3ff | 147 | |
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 | |
181 | echo "Run \"/etc/rc.d/init.d/entrance restart\" to restart entrance." >&2 | |
182 | else | |
183 | echo "Run \"/etc/rc.d/init.d/entrance start\" to start entrance." >&2 | |
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 |