File ckermit.spec of Package ckermit

#
# spec file for package ckermit
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           ckermit
%if 0%{?fedora_version} || 0%{?rhel_version}
BuildRequires:  zsh
%else
BuildRequires:  termcap
%endif
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version} || 0%{?mandriva_version}
BuildRequires:  lockdev-devel
%endif
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
Summary:        A Combined Serial and Network Communication Software Package
License:        BSD-3-Clause
Group:          Hardware/Modem
Provides:       kermit
Version:        9.0.302
Release:        0.0
Url:            http://www.kermitproject.org/
Source:         cku302.tar.bz2
Patch:          decl-definition-conflict.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
C-Kermit is a combined serial and network communication software
package offering a consistent, medium-independent, and cross-platform
approach to connection establishment, terminal sessions, file transfer,
character-set translation, and automation of communication tasks.

%package doc
Summary:        Documentation for CKermit
Group:          Documentation/Howto
%if !0%{?sles_version}
BuildArch:      noarch
%endif

%description doc
This package contains the documentation and manual pages for ckermit

%prep
%setup -q -c
%patch -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"
make linux

%install
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 wermit $RPM_BUILD_ROOT/usr/bin/kermit
install -m 644 ckuker.nr $RPM_BUILD_ROOT%{_mandir}/man1/kermit.1
cd $RPM_BUILD_ROOT%{_mandir}/man1
ln -s kermit.1 ckermit.1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING.TXT
%{_mandir}/man1/*
/usr/bin/*

%files doc
%defattr(-,root,root)
%doc *.txt

%changelog
openSUSE Build Service is sponsored by