]> git.pld-linux.org Git - packages/entrance.git/blob - entrance.spec
- up to 0.9.9.042
[packages/entrance.git] / entrance.spec
1 #
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
11
12 Summary:        Enlightened display manager
13 Summary(pl.UTF-8):      Oświecony zarządca ekranu
14 Name:           entrace
15 Version:        0.9.9.042
16 Release:        1
17 License:        BSD
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
43 #Requires:      /bin/bash
44 Requires:       ecore >= %{ecore_ver}
45 Requires:       evas-engine-software_x11 >= %{evas_ver}
46 Requires:       evas-loader-eet >= %{evas_ver}
47 Requires:       pam
48 Requires:       sessreg
49 Requires:       xinitrc-ng
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
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
59 dream about... and without the bloat.
60
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.
65
66 %package libs
67 Summary:        Entrance library
68 Summary(pl.UTF-8):      Biblioteka Entrance
69 Group:          X11/Libraries
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}
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
88 Requires:       ecore-devel >= %{ecore_ver}
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
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
114
115 %description theme-default
116 Default Entrance theme.
117
118 %description theme-default -l pl.UTF-8
119 Domyślny motyw Entrance.
120
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
127
128 %description theme-darkrock
129 Darkrock Entrance theme.
130
131 %description theme-darkrock -l pl.UTF-8
132 Motyw Entrance Darkrock.
133
134 %prep
135 %setup -q
136 %patch0 -p1
137 # no-no-no, find real problem
138 #%patch1 -p1
139 mv data/images/sessions/enlightenment{,DR17}.png
140 sed 's/enlightenment.png/enlightenmentDR17.png/' \
141         -i data/images/sessions/Makefile.am
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
147
148 %build
149 %{__libtoolize}
150 %{__aclocal} -I m4
151 %{__autoconf}
152 %{__autoheader}
153 %{__automake}
154 %configure \
155         --with-pam-config=entrance \
156         --with-vt=auto \
157         --with-xsession=%{_sysconfdir}/X11/%{name}/Xsession
158 %{__make}
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162
163 %{__make} install \
164         DESTDIR=$RPM_BUILD_ROOT
165
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
169 install %{SOURCE3} \
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
174
175 %clean
176 rm -rf $RPM_BUILD_ROOT
177
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
194 %post   libs -p /sbin/ldconfig
195 %postun libs -p /sbin/ldconfig
196
197 %files
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
219
220 %files libs
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libentrance_edit.so.*
223
224 %files devel
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
229
230 %files static
231 %defattr(644,root,root,755)
232 %{_libdir}/libentrance_edit.a
233
234 %files theme-default
235 %defattr(644,root,root,755)
236 %{_datadir}/%{name}/themes/default.edj
237
238 %files theme-darkrock
239 %defattr(644,root,root,755)
240 %{_datadir}/%{name}/themes/darkrock.edj
This page took 0.070049 seconds and 3 git commands to generate.