Eric Smith 25f1ecc
%global patchlevel 302
Eric Smith ecb1045
Eric Smith edb200d
Summary:       The quintessential all-purpose communications program
Eric Smith edb200d
Name:          ckermit
Eric Smith ecb1045
Version:       9.0.%{patchlevel}
f5c3d4a
Release:       16%{?dist}
Eric Smith edb200d
License:       BSD with advertising and MIT
Eric Smith edb200d
# Most of the package is under a three-clause BSD license, but the file
Eric Smith edb200d
# ckaut2.h appears to be covered by three licenses:
Eric Smith edb200d
#   The blanket license in COPYING.TXT and ckcmai.c, which is BSD three-clause
Eric Smith edb200d
#   BSD four-clause (w/ advertising)
Eric Smith edb200d
#   MIT Old Style (no advertising without permission)
Eric Smith edb200d
Group:         Applications/Communications
Eric Smith 25f1ecc
Source0:       ftp://ftp.kermitproject.org/kermit/archives/cku%{patchlevel}.tar.gz
Eric Smith edb200d
Source1:       ckermit.ini
Eric Smith edb200d
Source2:       cku-%{name}.local.ini
Eric Smith edb200d
Source3:       cku-%{name}.modem.generic.ini
Eric Smith edb200d
Source4:       cku-%{name}.locale.ini
Eric Smith edb200d
Source5:       cku-%{name}.phone
Eric Smith 25f1ecc
Source6:       README.fedora
Eric Smith 25f1ecc
URL:           http://www.kermitproject.org/ck90.html
Eric Smith edb200d
BuildRequires: pam-devel
Eric Smith edb200d
BuildRequires: pkgconfig
Eric Smith edb200d
BuildRequires: openssl-devel >= 0.9.7
Eric Smith edb200d
BuildRequires: gmp-devel >= 3.1.1
Eric Smith edb200d
BuildRequires: libtermcap-devel
Eric Smith edb200d
BuildRequires: ncurses-devel
Eric Smith edb200d
BuildRequires: lockdev-devel >= 1.0.1-8
0decccf
BuildRequires: perl-interpreter
b3150ac
Eric Smith edb200d
Requires:      lockdev >= 1.0.1-8
Eric Smith edb200d
# NB There used to be a spurious "Obsoletes: gkermit" line here, but ckermit
Eric Smith edb200d
# does NOT obsolete gkermit. They are independent programs with different
Eric Smith edb200d
# purposes.
Eric Smith edb200d
Eric Smith edb200d
%description
Eric Smith edb200d
C-Kermit is a combined serial and network communication software
Eric Smith edb200d
package offering a consistent, medium-independent, cross-platform
Eric Smith edb200d
approach to connection establishment, terminal sessions, file transfer
Eric Smith edb200d
and management, character-set translation, and automation of
Eric Smith edb200d
communication tasks.
Eric Smith edb200d
Eric Smith edb200d
%prep
Eric Smith edb200d
%setup -q -c
Eric Smith 25f1ecc
cp %{SOURCE6} .
Eric Smith edb200d
Eric Smith edb200d
%build
Eric Smith edb200d
%{__make} linux \
Eric Smith 25f1ecc
        KFLAGS="-O0 $RPM_OPT_FLAGS -Wall -DOPENSSL_097 -Dsdata=s_data -DHAVE_OPENPTY -D'krb5_init_ets(__ctx)='" \
Eric Smith edb200d
        K4LIB= \
Eric Smith edb200d
        K4INC= \
Eric Smith edb200d
        K5LIB=-lutil \
Eric Smith edb200d
        K5INC=-I%{_includedir}/et \
Eric Smith edb200d
        SSLLIB= \
Eric Smith edb200d
        SSLINC= \
Eric Smith edb200d
        %{?_smp_mflags}
Eric Smith edb200d
Eric Smith edb200d
# convert doc file from ISO-8859-1 to UTF-8 encoding
Eric Smith ecb1045
for f in ckc%{patchlevel}.txt
Eric Smith edb200d
do
Eric Smith edb200d
  iconv -fiso88591 -tutf8 $f >$f.new
Eric Smith edb200d
  touch -r $f $f.new
Eric Smith edb200d
  mv $f.new $f
Eric Smith edb200d
done
Eric Smith edb200d
Eric Smith edb200d
%install
Eric Smith edb200d
rm -rf %{buildroot}
Eric Smith edb200d
install -d %{buildroot}{%{_bindir},%{_mandir}/man1,%{_sysconfdir}/kermit}
Eric Smith edb200d
Eric Smith edb200d
perl -pi -e "s|%{_prefix}/local/bin/kermit|%{_bindir}/kermit|g" ckermit.ini
Eric Smith edb200d
Eric Smith edb200d
install -m 755 wermit %{buildroot}%{_bindir}/kermit
Eric Smith edb200d
install -m 644 ckuker.nr %{buildroot}%{_mandir}/man1/kermit.1
Eric Smith edb200d
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/kermit/
Eric Smith edb200d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/kermit/ckermit.local.ini
Eric Smith edb200d
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/kermit/ckermit.modem.ini
Eric Smith edb200d
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/kermit/ckermit.locale.ini
Eric Smith edb200d
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/kermit/ckermit.phone
Eric Smith edb200d
Eric Smith edb200d
%files
Eric Smith edb200d
%{_bindir}/kermit
Eric Smith edb200d
%dir %{_sysconfdir}/kermit
Eric Smith edb200d
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/kermit/*
Eric Smith edb200d
%{_mandir}/man1/kermit.1*
Eric Smith edb200d
%doc COPYING.TXT
Eric Smith ecb1045
%doc ckc%{patchlevel}.txt
Eric Smith 25f1ecc
%doc README.fedora
Eric Smith edb200d
Eric Smith edb200d
%changelog
f5c3d4a
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.302-16
f5c3d4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f5c3d4a
53c9d84
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.302-15
53c9d84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
53c9d84
08f326e
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 9.0.302-14
08f326e
- Rebuilt for switch to libxcrypt
08f326e
e6ded90
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.302-13
e6ded90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e6ded90
6a62e8e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.302-12
6a62e8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6a62e8e
b3150ac
* Thu Feb 16 2017 Ralf Corsépius <corsepiu@fedoraproject.org> - 9.0.302-11
b3150ac
- Add BR: perl (Fix F26FTBS).
b3150ac
2212d3c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.302-10
2212d3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2212d3c
cfce307
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.302-9
cfce307
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cfce307
27b5870
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.302-8
27b5870
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
27b5870
1f5c72c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.302-7
1f5c72c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
1f5c72c
64bf892
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.302-6
64bf892
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
64bf892
7386d0b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.302-5
7386d0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7386d0b
b59f1b5
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.302-4
b59f1b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b59f1b5
ca7364a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.302-3
ca7364a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ca7364a
7d2aee0
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.302-2
7d2aee0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7d2aee0
Eric Smith 25f1ecc
* Wed Nov 09 2011 Eric Smith <eric@brouhaha.com> - 9.0.302-1
Eric Smith 25f1ecc
- removed definition of HAVE_BAUDBOY from make invocation (#747923)
Eric Smith 25f1ecc
- updated to latest upstream (no changes that affect Fedora, but
Eric Smith 25f1ecc
  cku301 tarball is no longer available
Eric Smith 25f1ecc
- updated URL and Source tags for kermitproject.org
Eric Smith 25f1ecc
- added README.fedora
Eric Smith 25f1ecc
Eric Smith ecb1045
* Mon Jul 11 2011 Eric Smith <eric@brouhaha.com> - 9.0.301-1
Eric Smith ecb1045
- updated to final release
Eric Smith ecb1045
Eric Smith edb200d
* Fri Jun 24 2011 Eric Smith <eric@brouhaha.com> - 9.0-0.1.beta2
Eric Smith edb200d
- updated to upstream 9.0 beta 2 release
Eric Smith edb200d
Eric Smith edb200d
* Mon Jul 03 2006 Peter Vrabec <pvrabec@redhat.com> - 8.0.211-5
Eric Smith edb200d
- fix requires (#195573)
Eric Smith edb200d
Eric Smith edb200d
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 8.0.211-4.2.1
Eric Smith edb200d
- bump again for double-long bug on ppc(64)
Eric Smith edb200d
Eric Smith edb200d
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 8.0.211-4.2
Eric Smith edb200d
- rebuilt for new gcc4.1 snapshot and glibc changes
Eric Smith edb200d
Eric Smith edb200d
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Eric Smith edb200d
- rebuilt
Eric Smith edb200d
Eric Smith edb200d
* Tue Nov  8 2005 Tomas Mraz <tmraz@redhat.com> 8.0.211-4
Eric Smith edb200d
- rebuilt with new openssl
Eric Smith edb200d
Eric Smith edb200d
* Wed Aug 31 2005 Peter Vrabec <pvrabec@redhat.com> 8.0.211-3
Eric Smith edb200d
- use baudboy.h to create per-device lock(s) in /var/lock (#166155)
Eric Smith edb200d
Eric Smith edb200d
* Fri Jul 29 2005 Peter Vrabec <pvrabec@redhat.com> 8.0.211-2
Eric Smith edb200d
- use openpty library (#156417,#164465)
Eric Smith edb200d
Eric Smith edb200d
* Wed Mar 15 2005 Nalin Dahyabhai <nalin@redhat.com> 8.0.211-1
Eric Smith edb200d
- update to 211
Eric Smith edb200d
Eric Smith edb200d
* Mon Feb 28 2005 Nalin Dahyabhai <nalin@redhat.com>
Eric Smith edb200d
- remove now-unnecessary use of krb5_init_ets()
Eric Smith edb200d
Eric Smith edb200d
* Thu Feb 08 2005 Peter Vrabec <pvrabec@redhat.com>
Eric Smith edb200d
- rebuilt
Eric Smith edb200d
Eric Smith edb200d
* Tue Nov 02 2004 Peter Vrabec <pvrabec@redhat.com>
Eric Smith edb200d
- fix ssh connection (#128349)
Eric Smith edb200d
Eric Smith edb200d
* Wed Oct 20 2004 Peter Vrabec <pvrabec@redhat.com>
Eric Smith edb200d
- add BuildRequires: libtermcap-devel BuildRequires: ncurses-devel
Eric Smith edb200d
- rebuilt
Eric Smith edb200d
Eric Smith edb200d
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
Eric Smith edb200d
- rebuilt
Eric Smith edb200d
Eric Smith edb200d
* Thu Apr  1 2004 Jeff Johnson <jbj@redhat.com> 8.0.209-7
Eric Smith edb200d
- remove old copyright from description (#115952).
Eric Smith edb200d
Eric Smith edb200d
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
Eric Smith edb200d
- rebuilt
Eric Smith edb200d
Eric Smith edb200d
* Mon Jan 19 2004 Jeff Johnson <jbj@jbj.org> 8.0.209-5
Eric Smith edb200d
- fix: printf arg lists cleaned up, (itsadir && !iswild(*xp)) (#113663)
Eric Smith edb200d
Eric Smith edb200d
* Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 8.0.209-4
Eric Smith edb200d
- rebuild
Eric Smith edb200d
Eric Smith edb200d
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
Eric Smith edb200d
- rebuilt
Eric Smith edb200d
Eric Smith edb200d
* Thu May  1 2003 Elliot Lee <sopwith@redhat.com> 8.0.209-2
Eric Smith edb200d
- Define sdata=s_data to fix ppc64 build
Eric Smith edb200d
Eric Smith edb200d
* Mon Apr 21 2003 Jeff Johnson <jbj@redhat.com> 8.0.209-1
Eric Smith edb200d
- update to 8.0.209.
Eric Smith edb200d
Eric Smith edb200d
* Wed Feb 26 2003 Jeff Johnson <jbj@redhat.com> 8.0.206-1.20030226
Eric Smith edb200d
- build 20030226 snap shot (with errno fix) for raw hide.
Eric Smith edb200d
Eric Smith edb200d
* Thu Jan 23 2003 Tim Powers <timp@redhat.com> 8.0.206-0.6
Eric Smith edb200d
- rebuild
Eric Smith edb200d
Eric Smith edb200d
* Tue Jan 21 2003 Jeff Johnson <jbj@redhat.com> 8.0.26-0.5
Eric Smith edb200d
- remove "CLICK HERE" from description (#82133).
Eric Smith edb200d
Eric Smith edb200d
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 8.0.206-0.4
Eric Smith edb200d
- rebuild
Eric Smith edb200d
Eric Smith edb200d
* Fri Jan  3 2003 Nalin Dahyabhai <nalin@redhat.com>
Eric Smith edb200d
- Build using predefined redhat80 target
Eric Smith edb200d
- Pass include and library paths for Kerberos and SSL directly to make
Eric Smith edb200d
- Define OPENSSL_097 in KFLAGS to build with OpenSSL 0.9.7
Eric Smith edb200d
Eric Smith edb200d
* Thu Dec 12 2002 Elliot Lee <sopwith@redhat.com> 8.0.206-0.3
Eric Smith edb200d
- Add patch2 to include errno.h
Eric Smith edb200d
- Change cku-makefile to not build KRB4 & KRB524, because kerberosIV/des.h
Eric Smith edb200d
  conflicts with openssl/des.h
Eric Smith edb200d
Eric Smith edb200d
* Fri Nov 29 2002 Jeff Johnson <jbj@redhat.com> 8.0.206-0.2
Eric Smith edb200d
- obsolete gkermit
Eric Smith edb200d
Eric Smith edb200d
* Mon Nov 25 2002 Jeff Johnson <jbj@redhat.com> 8.0.206-0.1
Eric Smith edb200d
- create (with thanks to PLD, who packaged C-Kermit before Red Hat did).