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