Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37764261
en ru br
ALT Linux repos
S:2.8-alt1
5.0: 2.3-alt4.cvs.20081130
4.1: 2.3-alt1.cvs.20080202
4.0: 2.2.cvs.16042007-alt1
3.0: 2.1-alt1

Group :: Communications
RPM: minicom

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define my_lockdir /var/lock/serial
%define my_group uucp

Name: minicom
Version: 2.3
Release: alt4.cvs.20081130

Group: Communications
Summary: A text-menu-driven modem control and terminal emulation program
License: GPL
Url: http://alioth.debian.org/projects/minicom/

Packager: Vladimir V Kamarzin <vvk at altlinux.ru>

# git cvsimport -o upstream -v -d :pserver:anonymous at cvs.alioth.debian.org:/cvsroot/minicom minicom

Source: %name-%version.tar
Source1: %name.sh
Source2: %name.csh
Source3: %name.menu
Source4: %name.admin
Source5: %name.admin.ru
Source6: %name.xpm
Source7: %name-xstart.sh
Source9: %name.FAQ.ru

# Patch against unescaped shell

Patch10: debian/patches/bug199924.diff

# Without this dependency it would be difficult to find the package with file-transfer tools

Requires: lrzsz

# added because autopoint requires it. crap.

BuildRequires: cvs

# I add the specialization of the BuildRequires:

BuildRequires: bison libtinfo-devel

# The access to serial ports should be controlled through '%my_group'

# group. It is provided by the new setup pkg.
# We need it before this package (minicom) is installed in order
# to set right permissions on files.
# Also, we need the place to create lockfiles. It should be
# provided by te new FS pkg.
PreReq: %my_lockdir

%description
Minicom is a simple modem control and terminal emulation program
that resembles MS-DOS Telix somewhat.  It is driven by text-based menus,
has a dialing directory, full ANSI and VT100 emulation, an (external)
scripting language, and other features.

Minicom should be installed if you need a simple modem control program
or terminal emulator. It can be used for remote access (in a terminal)
and to test and configure your modem.

%prep
%setup
%patch10 -p1

%build
%autoreconf
%configure \
--enable-lock-dir=%my_lockdir \
--enable-dfl-port=/dev/modem
%make_build

%install
%makeinstall

dest=%buildroot%_sysconfdir/profile.d
mkdir -p $dest
install -p %SOURCE1 $dest/%name.sh
install -p %SOURCE2 $dest/%name.csh
unset dest

for f in minirc.dfl %name.users; do
 mv {doc,%buildroot%_sysconfdir}/$f
done
install -p -m644 %SOURCE4 %name.admin
install -p -m644 %SOURCE5 %name.admin.ru
install -p -m644 %SOURCE9 %name.FAQ.ru

%find_lang %name

# Preparing the docs:

find extras doc -name 'Makefile*' -print0 |
xargs -r0 rm -f --

# The icon (from Caldera) & menu:

install -pD -m644 %SOURCE3 %buildroot%_menudir/%name
install -pD -m644 %SOURCE6 %buildroot%_iconsdir/%name.xpm

# The script to start minicom in an X terminal

install -pD -m755 %SOURCE7 %buildroot%_libdir/%name/xstart

%files -f %name.lang
%attr(640,root,%my_group) %config(noreplace) %_sysconfdir/%name.users
%attr(640,root,%my_group) %config(noreplace) %_sysconfdir/minirc.dfl
%attr(755,root,root) %config %_sysconfdir/profile.d/%name.sh
%attr(755,root,root) %config %_sysconfdir/profile.d/%name.csh
%_bindir/*
%_mandir/man?/*

%_menudir/*
%_iconsdir/*

%dir %_libdir/%name
%attr(755,root,root) %_libdir/%name/xstart

%doc doc extras
%doc %name.admin
%lang(ru) %doc %name.admin.ru
%lang(ru) %doc %name.FAQ.ru

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin