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