]> git.pld-linux.org Git - packages/conman.git/blob - conman.spec
4c47696012b3021c4839ea338bf93e478590abb8
[packages/conman.git] / conman.spec
1 Summary:        The Console Manager
2 Summary(pl.UTF-8):      Zarządca konsol
3 Name:           conman
4 Version:        0.1.9.2
5 Release:        1
6 License:        GPL
7 Group:          Daemons
8 Source0:        http://download.gna.org/conman/0.1.9.2/%{name}-%{version}.tar.bz2
9 # Source0-md5:  8e737e64ae3dfac37bd93df38ac0f6cb
10 Source1:        %{name}d.init
11 Source2:        %{name}d.sysconfig
12 Source3:        %{name}.logrotate
13 URL:            http://home.gna.org/conman/
14 BuildRequires:  libwrap-devel
15 Requires(post,preun):   /sbin/ldconfig
16 Requires:       rc-scripts
17 Conflicts:      logrotate < 3.7.4
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 ConMan is a console management program designed to support a large
22 number of console devices and simultaneous users. It currently
23 supports local serial devices and remote terminal servers (via the
24 telnet protocol).
25
26 %description -l pl.UTF-8
27 ConMan to program do zarządzania konsolami zaprojektowany do obsługi
28 dużej liczby urządzeń konsolowych i jednoczesnych użytkowników.
29 Aktualnie obsługuje lokalne urządzenia szeregowe i zdalne serwery
30 terminali (poprzez protokół telnet).
31
32 %prep
33 %setup -q
34
35 %build
36 %configure \
37         --with-tcp-wrappers
38
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d}
45 install -d $RPM_BUILD_ROOT/var/log/conman
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conmand
51 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conmand
52 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/conmand
53
54 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/examples
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post
60 /sbin/chkconfig --add conmand
61 %service conmand restart
62
63 %preun
64 if [ "$1" = "0" ]; then
65         %service conmand stop
66         /sbin/chkconfig --del conmand
67 fi
68
69 %files
70 %defattr(644,root,root,755)
71 %doc AUTHORS ChangeLog FAQ NEWS
72 %attr(755,root,root) %{_bindir}/*
73 %attr(755,root,root) %{_sbindir}/*
74 %{_libdir}/%{name}
75 %dir %{_var}/log/conman
76 %{_mandir}/man*/*
77
78 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
79 %attr(754,root,root) /etc/rc.d/init.d/conmand
80 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/conmand
81 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
This page took 0.168844 seconds and 2 git commands to generate.