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