File minicom.spec of Package minicom

#
# spec file for package minicom (Version 2.3)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           minicom
BuildRequires:  gettext-devel ncurses-devel
Url:            http://alioth.debian.org/projects/minicom/
License:        GPL v2 or later
Group:          Hardware/Modem
Requires:       rzsz
Version:        2.3
Release:        27
Summary:        A Terminal Program
Source:         %{name}-%{version}.tar.bz2
Patch0:         minicom-2.2-defaults.diff
Patch1:         xminicom-title.diff
Patch2:         minicom-2.3-conflicting-types.patch
Patch3:         minicom-2.3-ncurses.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.



Authors:
--------
    Miquel van Smoorenburg <miquels@cistron.nl>
    Jukka Lahtinen <walker@netsonic.fi>
    Adam Lackorzynski <adam@os.inf.tu-dresden.de>

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3

%build
autoreconf --force --install
%configure --disable-rpath \
	--enable-music \
	--enable-dfl-baud=57600 \
	--enable-cfg-dir=%{_sysconfdir}
make

%check
make check

%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(644,root,root,755)
%doc doc/minicom.FAQ AUTHORS COPYING NEWS README
%attr(0755,root,root) /usr/bin/ascii-xfr
%attr(0755,root,uucp) /usr/bin/minicom
%attr(0755,root,root) /usr/bin/runscript
%attr(0755,root,root) /usr/bin/xminicom
%{_mandir}/man1/ascii-xfr.1.gz
%{_mandir}/man1/minicom.1.gz
%{_mandir}/man1/xminicom.1.gz
%{_mandir}/man1/runscript.1.gz

%changelog
* Thu Aug 28 2008 ro@suse.de
- add ncurses include to cflags
* Wed Jul 23 2008 crrodriguez@suse.de
- fix build
* Mon Jun 09 2008 mmarek@suse.cz
- xminicom: display "minicom" in window title (bnc#398423)
* Fri Mar 28 2008 mmarek@suse.cz
- updated to 2.3
  * New version of the dial format to be little and big endian as
  well as 32/64 bit safe
  * Support more baud rates
  * Handle device disappearances (e.g. serial-USB device unplug)
  * Various build and other fixes
- specfile cleanup
* Fri Mar 30 2007 ro@suse.de
- added ncurses-devel to buildreq
* Thu Oct 19 2006 mjancar@suse.cz
- update to 2.2
  * Vietnamese translation added
  * Norwegian translation added
  * Traditional chinese translation added
  * Swedish translation added
  * Romanian translation added
  * default to 8bit mode if LANG or LC_ALL are set
  * default baud rate set to 115200
  * Various code cleanups and fixes
* Thu Aug 24 2006 mkoenig@suse.de
- reverted last change (moving scripts from aux/)
- changed gettext issues to fix build
* Tue Aug 22 2006 mkoenig@suse.de
- fixed getline name collision
- moved autotools scripts out of aux/
* Mon Feb 27 2006 anicka@suse.cz
- fix subscript out of range (#151489)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Apr 18 2005 mcihar@suse.cz
- fix for current gcc
* Fri Feb 04 2005 mcihar@suse.cz
- fixed permissions (bug #50438)
* Mon Jan 12 2004 adrian@suse.de
- add missing %%attr
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Wed Jul 23 2003 coolo@suse.de
- use BuildRoot and %%find_lang
- package xminicom man page
* Mon May 26 2003 stepan@suse.de
- update to 2.1
* Tue Dec 24 2002 mfabian@suse.de
- fix charset headers in Japanese .po files (messages in
  ja_JP.UTF-8 were garbled because of this)
- remove backslashes in the SJIS encoded Japanese .po file which were
  only needed as a workaround for deficiencies in older versions
  of gettext. These extra backslashes cause trouble with newer
  gettext versions.
* Fri Nov 29 2002 okir@suse.de
- add support for resmgr
* Mon Nov 18 2002 schwab@suse.de
- Add AM_GNU_GETTEXT_VERSION.
* Tue Oct 01 2002 uli@suse.de
- turned off HW flow control in default setup (bug #20390)
* Wed Sep 18 2002 ro@suse.de
- removed bogus self-provides
* Thu Apr 04 2002 ro@suse.de
- build with current automake/autoconf/gettext
* Thu Dec 06 2001 uli@suse.de
- update -> 2.00.0 (fixes, mainly)
* Thu Apr 19 2001 mfabian@suse.de
- fix invalid multibyte characters in ko.po just to make it build
* Wed Feb 07 2001 uli@suse.de
- fixed for glibc 2.2.1
* Thu Dec 21 2000 uli@suse.de
- replaced call of "sx" with "sz -X"
* Thu Nov 30 2000 uli@suse.de
- fixed some links
* Wed Nov 29 2000 uli@suse.de
- update -> 1.83.1
* Wed May 24 2000 uli@suse.de
- moved docs to /usr/share
* Thu Mar 02 2000 kukuk@suse.de
- Use _mandir macro
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu May 06 1999 kukuk@suse.de
- Don't link against libintl.a
* Thu Jul 30 1998 bs@suse.de
- don't start rz with "-E" by default - our rz does not know it.
* Tue Jul 28 1998 bs@suse.de
- marked minicom.users as %%config again.
* Mon Jul 27 1998 werner@suse.de
- new version 1.81.1
- applied red hat security patches
- DONT set sguid uucp (you can't be saver :) ).  User have to be in
  group uucp, if they want access to modem.
openSUSE Build Service is sponsored by