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