File minicom.spec of Package minicom

# spec file for package minicom
# Copyright (c) 2023 SUSE LLC
# 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

Name:           minicom
Version:        2.9
Release:        0
Summary:        A Terminal Program
License:        GPL-2.0-or-later
Group:          Hardware/Modem
# PATCH-FIX-OPENSUSE openSUSE-defaults.patch -- Fix default settings for *SUSE
Patch0:         openSUSE-defaults.patch
# PATCH-FIX-OPENSUSE openSUSE-no-root-setup.patch
Patch1:         openSUSE-no-root-setup.patch
Patch2:         03norzsz.diff
# PATCH-FIX-UPSTREAM minicom-2.8-replace-sigrelse.patch -- Replace deprecated sigrelse
Patch3:         minicom-2.8-replace-sigrelse.patch
# PATCH-FIX-UPSTREAM fix-undefined-reference.patch -- Fix undefined reference to external COLS and LINES
Patch4:         minicom-2.8-fix-undefined-reference.patch
BuildRequires:  ckermit
BuildRequires:  gettext-devel
BuildRequires:  ncurses-devel
BuildRequires:  pkg-config
Requires:       ckermit
Requires:       rzsz
Requires(pre):  group(uucp)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A terminal program similar to Telix(tm) (a program for calling other
computers via modem) under MS-DOS.

If you want to access your modem with minicom, you have to be a member
of the uucp group.


%autosetup -p1

export CFLAGS="%{optflags} $(ncursesw6-config --cflags)"
export LDFLAGS="$(ncursesw6-config --libs)"
%configure \
    --disable-rpath \
    --enable-music \
    --enable-dfl-baud=57600 \
    --enable-dfl-port=/dev/modem \
    --enable-socket \

%find_lang %{name}

%license COPYING
%doc doc/minicom.FAQ AUTHORS NEWS README
%attr(0755,root,root) %{_bindir}/ascii-xfr
%attr(0755,root,uucp) %{_bindir}/minicom
%attr(0755,root,root) %{_bindir}/runscript
%attr(0755,root,root) %{_bindir}/xminicom

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by