]> git.pld-linux.org Git - packages/entrance.git/blob - entrance.spec
c3e1ae29b7513410e0196b5d754b20128b88bacf
[packages/entrance.git] / entrance.spec
1 #
2 Summary:        Enlightened display manager
3 Summary(pl.UTF-8):      Oświecony zarządca ekranu
4 Name:           entrance
5 Version:        0.9.0.007
6 Release:        2
7 License:        BSD
8 Group:          X11/Applications
9 Source0:        http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
10 # Source0-md5:  b789d09fa76e76a6466a786f0628d0ff
11 Source1:        %{name}.init
12 Source2:        %{name}.Xsession
13 Source3:        %{name}.gen-conf
14 Patch0:         %{name}-conf.in.patch
15 Patch1:         %{name}-use_bash.patch
16 URL:            http://enlightenment.org/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  edje
20 BuildRequires:  esmart-devel
21 BuildRequires:  evas-loader-jpeg
22 BuildRequires:  libtool
23 BuildRequires:  pam-devel
24 BuildRequires:  sed >= 4.0
25 Requires:       %{name}-theme
26 Requires:       /bin/bash
27 Requires(post,preun):   /sbin/chkconfig
28 Requires:       ecore
29 Requires:       evas-engine-software_x11
30 Requires:       evas-loader-eet
31 Requires:       pam
32 Requires:       sessreg
33 Requires:       xinitrc-ng
34 Obsoletes:      X11-xdm
35 Obsoletes:      kdm
36 Obsoletes:      gdm
37 Obsoletes:      wdm
38 Obsoletes:      xdm
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 Entrance is the Enlightenment Display Manager. And like Enlightenment,
43 it takes beauty and customization to levels that KDM and GDM can only
44 dream about... and without the bloat.
45
46 %description -l pl.UTF-8
47 Entrance to zarządca ekranu (Display Manager) dla Enlightenmenta.
48 Podobnie jak Enlightenment ma piękno i możliwości konfiguracji, o
49 jakich KDM czy GDM mogą tylko pomarzyć... i to bez narzutu.
50
51 %package theme-default
52 Summary:        Default Entrance theme
53 Summary(pl.UTF-8):      Domyślny motyw Entrance
54 Group:          X11/Applications
55 Requires:       %{name} = %{version}-%{release}
56 Provides:       %{name}-theme
57
58 %description theme-default
59 Default Entrance theme.
60
61 %description theme-default -l pl.UTF-8
62 Domyślny motyw Entrance.
63
64 %package theme-Nebulous
65 Summary:        Nebulous Entrance theme
66 Summary(pl.UTF-8):      Motyw Entrance Nebulous
67 Group:          X11/Applications
68 Requires:       %{name} = %{version}-%{release}
69 Provides:       %{name}-theme
70
71 %description theme-Nebulous
72 Nebulous Entrance theme.
73
74 %description theme-Nebulous -l pl.UTF-8
75 Motyw Entrance Nebulous.
76
77 %package theme-darkrock
78 Summary:        Darkrock Entrance theme
79 Summary(pl.UTF-8):      Motyw Entrance Darkrock
80 Group:          X11/Applications
81 Requires:       %{name} = %{version}-%{release}
82 Provides:       %{name}-theme
83
84 %description theme-darkrock
85 Darkrock Entrance theme.
86
87 %description theme-darkrock -l pl.UTF-8
88 Motyw Entrance Darkrock.
89
90 %package theme-taillights
91 Summary:        Taillights Entrance theme
92 Summary(pl.UTF-8):      Motyw Entrance Taillights
93 Group:          X11/Applications
94 Requires:       %{name} = %{version}-%{release}
95 Provides:       %{name}-theme
96
97 %description theme-taillights
98 Taillights Entrance theme.
99
100 %description theme-taillights -l pl.UTF-8
101 Motyw Entrance Taillights.
102
103 %prep
104 %setup -q
105 # -n %{name}
106 %patch0 -p1
107 %patch1 -p1
108 mv data/images/sessions/enlightenment{,DR17}.png
109 sed 's/enlightenment.png/enlightenmentDR17.png/' \
110         -i data/images/sessions/Makefile.am
111
112 sed '/PACKAGE_CFG_DIR/s@"${sysconfdir}"@"${localstatedir}/lib/${PACKAGE}"@' \
113         -i configure.in
114 sed -n '/xsession="You should reconfigure --with-xsession"/!p' \
115         -i configure.in
116
117 %build
118 %{__libtoolize}
119 %{__aclocal} -I m4
120 %{__autoconf}
121 %{__autoheader}
122 %{__automake}
123 %configure \
124         --with-xsession=%{_sysconfdir}/X11/%{name}/Xsession
125 %{__make}
126
127 %install
128 rm -rf $RPM_BUILD_ROOT
129
130 %{__make} install \
131         DESTDIR=$RPM_BUILD_ROOT
132
133 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/X11/%{name},/etc/rc.d/init.d,%{_var}/lib/%{name}}
134 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/entrance
135 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/Xsession
136 install %{SOURCE3} \
137         $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/generate-config
138 install data/config/build_config.sh.in \
139         $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/
140 touch $RPM_BUILD_ROOT%{_var}/lib/%{name}/entrance_config.cfg
141
142 %clean
143 rm -rf $RPM_BUILD_ROOT
144
145 %post
146 /sbin/chkconfig --add entrance
147 if [ -f /var/lock/subsys/entrance ]; then
148         echo "Run \"/etc/rc.d/init.d/entrance restart\" to restart entrance." >&2
149 else
150         echo "Run \"/etc/rc.d/init.d/entrance start\" to start entrance." >&2
151 fi
152
153 %preun
154 if [ "$1" = "0" ]; then
155         if [ -f /var/lock/subsys/entrance ]; then
156                 /etc/rc.d/init.d/entrance stop >&2
157         fi
158         /sbin/chkconfig --del entrance
159 fi
160
161 %files
162 %defattr(644,root,root,755)
163 %doc AUTHORS COPYING* README
164 %attr(754,root,root) /etc/rc.d/init.d/entrance
165 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/entrance
166 %attr(755,root,root) %{_bindir}/entrance*
167 %attr(755,root,root) %{_sbindir}/entranced
168 %dir %{_datadir}/%{name}
169 %{_datadir}/%{name}/images
170 %dir %{_datadir}/%{name}/themes
171 %{_datadir}/%{name}/users
172 %dir %{_sysconfdir}/X11/%{name}
173 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/Xsession
174 %attr(755,root,root) %{_sysconfdir}/X11/%{name}/generate-config
175 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/build_config.sh.in
176 %dir %{_var}/lib/%{name}
177 %ghost %{_var}/lib/%{name}/entrance_config.cfg
178
179 %files theme-default
180 %defattr(644,root,root,755)
181 %{_datadir}/%{name}/themes/default.edj
182
183 %files theme-Nebulous
184 %defattr(644,root,root,755)
185 %{_datadir}/%{name}/themes/Nebulous.edj
186
187 %files theme-darkrock
188 %defattr(644,root,root,755)
189 %{_datadir}/%{name}/themes/darkrock.edj
190
191 %files theme-taillights
192 %defattr(644,root,root,755)
193 %{_datadir}/%{name}/themes/taillights.edj
This page took 0.045344 seconds and 2 git commands to generate.