Jarod Wilson ca8bcf
Name:               conman
Dan Horák f31213
Version:            0.2.9
Fedora Release Engineering e37c84
Release:            4%{?dist}
Jarod Wilson ca8bcf
Summary:            ConMan - The Console Manager
Jarod Wilson ca8bcf
Jarod Wilson ca8bcf
Group:              Applications/System
David Sommerseth 97e5be
License:            GPLv3+
David Sommerseth f0d8fa
URL:                https://dun.github.io/conman/
David Sommerseth 778109
Source0:            https://github.com/dun/%{name}/archive/%{name}-%{version}.tar.gz#/%{name}-%{version}.tar.gz
Jarod Wilson ca8bcf
Jarod Wilson ca8bcf
Requires:           logrotate
Dan Horák ddef80
Requires(post):     systemd
Dan Horák ddef80
Requires(preun):    systemd
Dan Horák ddef80
Requires(postun):   systemd
Igor Gnatenko 47f315
BuildRequires:  gcc
Dan Horák f31213
BuildRequires:      perl-generators
Dan Horák ddef80
BuildRequires:      freeipmi-devel
Dan Horák ddef80
BuildRequires:      systemd
Jarod Wilson 740e88
Jarod Wilson 740e88
%description
Jarod Wilson 740e88
ConMan is a serial console management program designed to support a large
Jarod Wilson 740e88
number of console devices and simultaneous users.  It currently supports
Jarod Wilson 740e88
local serial devices and remote terminal servers (via the telnet protocol).
Jarod Wilson 740e88
Its features include:
Jarod Wilson 740e88
Jarod Wilson 740e88
  - mapping symbolic names to console devices
Jarod Wilson 740e88
  - logging all output from a console device to file
Jarod Wilson 740e88
  - supporting monitor (R/O), interactive (R/W), and
Jarod Wilson 740e88
    broadcast (W/O) modes of console access
Jarod Wilson 740e88
  - allowing clients to join or steal console "write" privileges
Jarod Wilson 740e88
  - executing Expect scripts across multiple consoles in parallel
Jarod Wilson 740e88
Dan Horák ddef80
Jarod Wilson 740e88
%prep
David Sommerseth 778109
%setup -qn %{name}-%{name}-%{version}
Jarod Wilson 740e88
Dan Horák ddef80
# fix paths
Dan Horák ddef80
sed -i -e 's|lib\/|share\/|g' lib/examples/*.exp
Dan Horák ddef80
Dan Horák ddef80
# fix shebang
Dan Horák ddef80
sed -i -e 's|\/usr\/bin\/env perl|\/usr\/bin\/perl|g' conmen
Jarod Wilson 740e88
Dan Horák ddef80
Dan Horák ddef80
%build
Dan Horák f31213
%configure
Jarod Wilson 5b6967
make %{?_smp_mflags}
Jarod Wilson 740e88
Dan Horák ddef80
Jarod Wilson 740e88
%install
Jarod Wilson 740e88
make install DESTDIR=$RPM_BUILD_ROOT
Dan Horák ddef80
Dan Horák ddef80
# clean sysvinit stuff
Dan Horák ddef80
rm -r $RPM_BUILD_ROOT/etc/{init.d,sysconfig}
Dan Horák ddef80
Jarod Wilson 740e88
# make log directories
Jarod Wilson 740e88
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}
Jarod Wilson 740e88
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}.old
Jarod Wilson 740e88
Dan Horák ddef80
# examples don't belong in libdir
Dan Horák ddef80
rm -r $RPM_BUILD_ROOT/usr/lib/%{name}/examples
Dan Horák ddef80
# move scripts to proper place
Dan Horák ddef80
mv $RPM_BUILD_ROOT/usr/lib/%{name} $RPM_BUILD_ROOT%{_datadir}/%{name}
Dan Horák ddef80
chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/*.exp
Dan Horák ddef80
Jarod Wilson 740e88
Jarod Wilson 740e88
%post
Dan Horák ddef80
%systemd_post conman.service
Jarod Wilson 740e88
Jarod Wilson 740e88
%preun
Dan Horák ddef80
%systemd_preun conman.service
Jarod Wilson 740e88
Jarod Wilson 740e88
%postun
Dan Horák ddef80
%systemd_postun_with_restart conman.service
Dan Horák ddef80
Jon Ciesla 129d57
Jarod Wilson 740e88
%files
Dan Horák ddef80
%license COPYING
Dan Horák ddef80
%doc AUTHORS FAQ NEWS
Dan Horák ddef80
%doc lib/examples
Jarod Wilson 740e88
%config(noreplace) %{_sysconfdir}/%{name}.conf
Jarod Wilson 740e88
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
Jon Ciesla 129d57
%{_unitdir}/%{name}.service
Dan Horák ddef80
%dir %{_localstatedir}/log/%{name}
Dan Horák ddef80
%dir %{_localstatedir}/log/%{name}.old
Jarod Wilson 740e88
%{_bindir}/*
Jarod Wilson 740e88
%{_sbindir}/*
Dan Horák ddef80
%{_datadir}/%{name}/
Jarod Wilson 740e88
%{_mandir}/*/*
Jarod Wilson 740e88
Dan Horák ddef80
Jarod Wilson 740e88
%changelog
Fedora Release Engineering e37c84
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-4
Fedora Release Engineering e37c84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Fedora Release Engineering e37c84
Igor Gnatenko aa7a29
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.9-3
Igor Gnatenko aa7a29
- Escape macros in %%changelog
Igor Gnatenko aa7a29
Fedora Release Engineering f74d97
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-2
Fedora Release Engineering f74d97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering f74d97
Dan Horák f31213
* Thu Dec 14 2017 Dan Horák <dan[at]danny.cz> - 0.2.9-1
Dan Horák f31213
- updated to 0.2.9 (#1526194)
Dan Horák f31213
- build without tcp_wrappers (https://fedoraproject.org/wiki/Changes/Deprecate_TCP_wrappers)
Dan Horák f31213
Fedora Release Engineering dd692d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-3
Fedora Release Engineering dd692d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Fedora Release Engineering dd692d
Fedora Release Engineering 145e82
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-2
Fedora Release Engineering 145e82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering 145e82
Dan Horák ddef80
* Thu Mar 09 2017 Dan Horák <dan[at]danny.cz> - 0.2.8-1
Dan Horák ddef80
- updated to 0.2.8
Dan Horák ddef80
- spec cleanups (#1244218)
Dan Horák ddef80
- enable IPMI support
Dan Horák ddef80
Fedora Release Engineering 1a2c8e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-11
Fedora Release Engineering 1a2c8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering 1a2c8e
Dennis Gilmore 3f5d8d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-10
Dennis Gilmore 3f5d8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Dennis Gilmore 3f5d8d
David Sommerseth 778109
* Fri Jan 15 2016 David Sommerseth <davids@redhat.com> - 0.2.7-9
Igor Gnatenko aa7a29
- Minor cleanup, corrected URL and %%Source0 to new upstream hosting
David Sommerseth 97e5be
- Align package license with upstream license - GPLv3+
David Sommerseth 778109
Dennis Gilmore 3612b4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-8
Dennis Gilmore 3612b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore 3612b4
Peter Robinson 1066c4
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-7
Peter Robinson 1066c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Peter Robinson 1066c4
Dennis Gilmore 5d8882
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-6
Dennis Gilmore 5d8882
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore 5d8882
Dennis Gilmore 03cd7f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-5
Dennis Gilmore 03cd7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Paul Howarth 2d54c0
- BR: systemd-units for %%{_unitdir} macro definition
Dennis Gilmore 03cd7f
Petr Písař 471a7e
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.2.7-4
Petr Písař 471a7e
- Perl 5.18 rebuild
Petr Písař 471a7e
Dennis Gilmore 4eccb9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-3
Dennis Gilmore 4eccb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore 4eccb9
Dennis Gilmore 2c44bd
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
Dennis Gilmore 2c44bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 2c44bd
Jon Ciesla 129d57
* Tue Apr 17 2012 Jon Ciesla <limburgher@gmail.com> - 0.2.7-1
Jon Ciesla 129d57
- Migrate to systemd, BZ 771474.
Jon Ciesla 129d57
Steven M. Parrish 6d81b4
* Sun Apr 15 2012 Steven M. Parrish <smparrish@gmail.com> - 0.2.7-0
Steven M. Parrish 6d81b4
- New upstream release
Steven M. Parrish 6d81b4
Dennis Gilmore d42083
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-4
Dennis Gilmore d42083
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore d42083
Dennis Gilmore 0bd6d9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-3
Dennis Gilmore 0bd6d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore 0bd6d9
Jesse Keating b1c2c1
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
Jesse Keating b1c2c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating b1c2c1
Steven M. Parrish f9e67c
* Mon Jun 08 2009 Steven M. Parrish <tuxbrewr@fedoraproject.org> - 0.2.5-0
Steven M. Parrish f9e67c
- New upstream release
Steven M. Parrish f9e67c
Steven M. Parrish 672a65
* Mon Apr 20 2009 Steven M. Parrish <tuxbrewr@fedoraproject.org> - 0.2.4.1-1
Steven M. Parrish 672a65
- New upstream release
Steven M. Parrish 672a65
Jesse Keating 9b986a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-3
Jesse Keating 9b986a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating 9b986a
Jarod Wilson e79813
* Mon Oct 06 2008 Jarod Wilson <jarod@redhat.com> 0.2.2-2
Jarod Wilson e79813
- The console option in conman.conf is case-insensitive, so relax
Jarod Wilson e79813
  defined consoles check in initscript (Mark McLoughlin, #465777)
Jarod Wilson e79813
Steven M. Parrish a08c76
* Mon Sep 08 2008 Steven M. Parrish <smparrish@shallowcreek.net> 0.2.2-1
Steven M. Parrish a08c76
- New upstream release
Tom Callaway abae52
Jarod Wilson 74932b
* Fri May 02 2008 Jarod Wilson <jwilson@redhat.com> 0.2.1-1
Jarod Wilson 74932b
- New upstream release
Jarod Wilson 74932b
Jarod Wilson 28b49d
* Wed Feb 13 2008 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-8
Jarod Wilson 28b49d
- Bump and rebuild for gcc 4.3
Jarod Wilson 28b49d
Jarod Wilson 6afb1c
* Thu Apr 26 2007 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-7
Jarod Wilson 6afb1c
- Update project urls
Jarod Wilson 6afb1c
- Fix up initscript exit codes (#237936)
Jarod Wilson 6afb1c
Jarod Wilson e27da7
* Tue Sep 05 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-6
Jarod Wilson e27da7
- Bump for new glibc
Jarod Wilson e27da7
Jarod Wilson 5b6967
* Fri Jul 28 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-5
Jarod Wilson 5b6967
- Properly enable smp_mflags this time
Jarod Wilson 5b6967
Jarod Wilson ca8bcf
* Fri Jul 28 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-4
Jarod Wilson ca8bcf
- Add Reqs on chkconfig and service
Jarod Wilson ca8bcf
- Turn on smp_mflags
Jarod Wilson ca8bcf
- Initial build for RHEL5
Jarod Wilson ca8bcf
Jarod Wilson 60ba5d
* Wed Jul 05 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-3
Jarod Wilson 60ba5d
- Add missing condrestart fuction to initscript
Jarod Wilson 60ba5d
Jarod Wilson 2a92b1
* Tue Jun 27 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-2
Jarod Wilson 2a92b1
- Don't strip bins on make install, leave for find-debug.sh
Jarod Wilson 2a92b1
Jarod Wilson 695670
* Tue Jun 27 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.2-1
Jarod Wilson 695670
- Update to 0.1.9.2
Jarod Wilson 695670
Jarod Wilson 740e88
* Tue Jun 20 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.1-3
Jarod Wilson 740e88
- Add Requires: logrotate
Jarod Wilson 740e88
- Ugh, conmand exits cleanly if no CONSOLE(s) are defined in
Jarod Wilson 740e88
  /etc/conman.conf, add check to initscript to report failure
Jarod Wilson 740e88
  if none are defined
Jarod Wilson 740e88
Jarod Wilson 740e88
* Wed Jun 14 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.1-2
Jarod Wilson 740e88
- Create log directories and install working logrotate config
Jarod Wilson 740e88
- Use a much cleaner RH/FC-specific initscript
Jarod Wilson 740e88
Jarod Wilson 740e88
* Tue Jun 13 2006 Jarod Wilson <jwilson@redhat.com> 0.1.9.1-1
Jarod Wilson 740e88
- Initial build for Fedora Extras