]> git.pld-linux.org Git - packages/entrance.git/blob - entrance.spec
- back to unofficial source (builds at last)
[packages/entrance.git] / entrance.spec
1 Summary:        Enlightened display manager
2 Summary(pl):    O¶wiecony zarz±dca ekranu
3 Name:           entrance
4 Version:        0.9.0.004
5 %define _snap   20051029
6 Release:        1.%{_snap}.1
7 License:        BSD
8 Group:          X11/Applications
9 #Source0:       http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
10 Source0:        http://sparky.homelinux.org/snaps/enli/e17/apps/%{name}-%{_snap}.tar.bz2
11 # Source0-md5:  6d98baf539649abbe3124a02574fe87f
12 Source1:        %{name}.init
13 Source2:        %{name}.Xsession
14 Source3:        %{name}.gen-conf
15 Patch0:         %{name}-conf.in.patch
16 URL:            http://enlightenment.org/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  edje
20 BuildRequires:  esmart-devel
21 BuildRequires:  libtool
22 BuildRequires:  pam-devel
23 BuildRequires:  sed >= 4.0
24 Requires:       /bin/bash
25 Requires(post,preun):   /sbin/chkconfig
26 Requires:       ecore
27 Requires:       pam
28 Requires:       sessreg
29 Requires:       xinitrc-ng
30 Obsoletes:      X11-xdm
31 Obsoletes:      kdm
32 Obsoletes:      gdm
33 Obsoletes:      wdm
34 Obsoletes:      xdm
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 Entrance is the Enlightenment Display Manager. And like Enlightenment,
39 it takes beauty and customization to levels that KDM and GDM can only
40 dream about... and without the bloat.
41
42 %description -l pl
43 Entrance to zarz±dca ekranu (Display Manager) dla Enlightenmenta.
44 Podobnie jak Enlightenment ma piêkno i mo¿liwo¶ci konfiguracji, o
45 jakich KDM czy GDM mog± tylko pomarzyæ... i to bez narzutu.
46
47 %prep
48 %setup -q -n %{name}
49 %patch0 -p1
50
51 sed '/PACKAGE_CFG_DIR/s@"${sysconfdir}"@"${localstatedir}/lib/${PACKAGE}"@' \
52         -i configure.in
53 sed -n '/xsession="You should reconfigure --with-xsession"/!p' \
54         -i configure.in
55 sed 's|/bin/sh|/bin/bash|g' \
56         -i src/daemon/spawner.c
57
58 %build
59 %{__libtoolize}
60 %{__aclocal} -I m4
61 %{__autoconf}
62 %{__autoheader}
63 %{__automake}
64 %configure \
65         --with-xsession=%{_sysconfdir}/X11/%{name}/Xsession
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/X11/%{name},/etc/rc.d/init.d,%{_var}/lib/%{name}}
75 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/entrance
76 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/Xsession
77 install %{SOURCE3} \
78         $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/generate-config
79 install data/config/build_config.sh.in \
80         $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/
81 touch $RPM_BUILD_ROOT%{_var}/lib/%{name}/entrance_config.db
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 /sbin/chkconfig --add entrance
88 if [ -f /var/lock/subsys/entrance ]; then
89         echo "Run \"/etc/rc.d/init.d/entrance restart\" to restart entrance." >&2
90 else
91         echo "Run \"/etc/rc.d/init.d/entrance start\" to start entrance." >&2
92 fi
93
94 %preun
95 if [ "$1" = "0" ]; then
96         if [ -f /var/lock/subsys/entrance ]; then
97                 /etc/rc.d/init.d/entrance stop >&2
98         fi
99         /sbin/chkconfig --del entrance
100 fi
101
102 %files
103 %defattr(644,root,root,755)
104 %doc AUTHORS COPYING* README
105 %attr(754,root,root) /etc/rc.d/init.d/entrance
106 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/entrance
107 %attr(755,root,root) %{_bindir}/entrance*
108 %attr(755,root,root) %{_sbindir}/entranced
109 %{_datadir}/%{name}
110 %dir %{_sysconfdir}/X11/%{name}
111 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/Xsession
112 %attr(755,root,root) %{_sysconfdir}/X11/%{name}/generate-config
113 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/build_config.sh.in
114 %dir %{_var}/lib/%{name}
115 %ghost %{_var}/lib/%{name}/entrance_config.db
This page took 0.073242 seconds and 3 git commands to generate.