Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 632c4eadc371285da21e43fd98fb4c6f > files > 6

newt-0.51.6-11mdk.src.rpm

%define name newt
%define majver 0.51
%define version 0.51.6
%define release 11mdk

%define libname %mklibname %{name} %{majver}
%define libdevel  %libname-devel

Summary: A development library for text mode user interfaces
Name: %{name}
Version: %{version}
Release: %{release}
License: LGPL
Group: System/Libraries
BuildRequires:	glibc-static-devel
BuildRequires:	popt-devel
BuildRequires:	python-devel >= 2.2
BuildRequires:	slang-devel
Source: ftp://ftp.redhat.com/pub/redhat/linux/code/newt/newt-%{version}.tar.bz2
Patch0: newt-gpm-fix.diff.bz2
Patch1: newt-mdkconf.patch.bz2
Patch2: newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch.bz2
Patch3: newt-0.51.6-do-not-ignore-EARLY-events-in-listbox--and-allow-textbox-to-take-focus.patch.bz2
Requires: slang
Provides: snack
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%package -n %libname
Summary: Newt windowing toolkit development files library
Group: Development/C
Provides: %{name} = %{version}-%{release}

%package -n %libdevel
Summary: Newt windowing toolkit development files
Requires: slang-devel %{libname} = %{version}
Provides: lib%{name}-devel = %{version}-%{release} %{name}-devel = %{version}-%{release}
Group: Development/C
Obsoletes: %{name}-devel

%description
Newt is a programming library for color text mode, widget based user
interfaces.  Newt can be used to add stacked windows, entry widgets,
checkboxes, radio buttons, labels, plain text fields, scrollbars,
etc., to text mode user interfaces.  This package contains a
/usr/bin/dialog replacement called whiptail.  Newt is based on the
slang library.

%description -n %libname
Newt is a programming library for color text mode, widget based user
interfaces.  Newt can be used to add stacked windows, entry widgets,
checkboxes, radio buttons, labels, plain text fields, scrollbars,
etc., to text mode user interfaces.  This package contains the
shared library needed by programs built with newt. Newt is based on the
slang library.

%description -n %libdevel
The newt-devel package contains the header files and libraries
necessary for developing applications which use newt.  Newt is
a development library for text mode user interfaces.  Newt is
based on the slang library.

Install newt-devel if you want to develop applications which will
use newt.

%prep
%setup -q

%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
%configure --with-gpm-support
%make
%make shared

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
%makeinstall
ln -sf lib%{name}.so.%{version} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.%{majver}

rm -rf  $RPM_BUILD_ROOT%{_libdir}/python{1.5,2.0,2.1,2.2}

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %libname -p /sbin/ldconfig

%postun -n %libname -p /sbin/ldconfig

%files -n %libname
%defattr (-,root,root)
%doc CHANGES
%{_libdir}/libnewt.so.*

%files 
%defattr (-,root,root)
%doc CHANGES COPYING
%{_bindir}/whiptail
%{_libdir}/python%pyver/site-packages/*

%files -n %libdevel
%defattr (-,root,root)
%doc tutorial.sgml
%{_includedir}/newt.h
%{_libdir}/libnewt.a
%{_libdir}/libnewt.so

%changelog
* Tue Apr 26 2005 Pixel <pixel@mandriva.com> 0.51.6-11mdk
- do not ignore EARLY events in listbox and allow textbox to take focus
  => this fixes drakauth which has a scrollbar for the text and also for the entries
  (bugzilla #15067)

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.51.6-10mdk
- Rebuild for new python
- fix dir ownership

* Fri Jul 23 2004 Marcel Pol <mpol@mandrake.org> 0.51.6-9mdk
- again build against new slang

* Wed Jul 21 2004 Marcel Pol <mpol@mandrake.org> 0.51.6-8mdk
- build against new slang

* Wed Jan 28 2004 Warly <warly@mandrakesoft.com> 0.51.6-7mdk
- new version

* Wed Sep 17 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.51.4-7mdk
- fix mklibnamization

* Mon Sep  8 2003 Warly <warly@mandrakesoft.com> 0.51.4-6mdk
- mklibnamize

* Sat Aug 30 2003 Pixel <pixel@mandrakesoft.com> 0.51.4-5mdk
- fix wstrlen() for non-utf8 strings

* Tue Aug 12 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.51.4-4mdk
- rebuild for new python

* Wed Jul 09 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.51.4-3mdk
- rebuild for new devel provides

* Mon Jun 16 2003 Warly <warly@mandrakesoft.com> 0.51.4-2mdk
- add mklibname macros

* Mon Jun 16 2003 Warly <warly@mandrakesoft.com> 0.51.4-1mdk
- new version (main changes):
  0.51.4:
    - fixed help line drawing in UTF-8
    - fixed snack.CListbox to work properly with UTF-8
  0.51.3:
    - added Ctrl-L screen refresh 
    - fixed segfault in test.c when listbox items are selected
    - accessibility: made newt useable with monochrome terms
    - error checking (curcomp exists) for formEvent, newtFormGetCurrent, removed fifty button limit
  0.51.2:
    - fixed wstrlen() it was calculating wcwidth(first wide char in  string) * strlen(str) instead of the actual width of the whole string

* Fri Oct 25 2002 Warly <warly@mandrakesoft.com> 0.51.0-1mdk
- new version

* Tue Aug 06 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.50.34-4mdk
- BuildRequires.

* Wed Jun 26 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.50.34-3mdk
- Patch3: Fix reference to libdir in python(bin)?dir variables
- Patch2: Don't build whiptcl.so. Nuke BuildRequires: tcl. Nobody
  appears to have used it, and wasn't in rpm either.

* Mon Jan 14 2002 Stefan van der Eijk <stefan@eijk.nu> 0.50.34-2mdk
- BuildRequires
- Remove patch2.
- fix %%files for python 2.2

* Mon Oct 29 2001 Warly <warly@mandrakesoft.com> 0.50.34-1mdk
- new version

* Fri Oct 12 2001 Stefan van der Eijk <stefan@eijk.nu> 0.50.31-2mdk
- BuildRequires: python --> python-devel

* Fri Aug 24 2001 Warly <warly@mandrakesoft.com> 0.50.31-1mdk
- new version

* Tue Jun  5 2001  Warly <warly@mandrakesoft.com> 0.50.22-1mdk
- new version

* Sun Apr 29 2001 Stefan van der Eijk <stefan@eijk.nu> 0.50.19-4mdk
- fixed patch for python 2.1
- fixed .spec file for python 2.1

* Tue Apr 12 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.50.19-3mdk
- Change buildrequires.
- More macros.
- Add obsoletes.

* Tue Feb 20 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 0.50.19-2mdk
- change a bit color theme of buttons and active buttons
- fix Provides

* Tue Jan 09 2001 Geoff <snailtalk@mandrakesoft.com> 0.50.19-1mdk
- new and shiny source.

* Wed Nov 29 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.50.8-8mdk
- Add missing Provides: (thx stefan, warlyscks).

* Fri Nov 24 2000 Warly <warly@mandrakesoft.com> 0.50.8-7mdk
- split libnewt0 packages

* Thu Nov 23 2000 Vincent Saugey <vince@mandrakesoft.com> 0.50.8-6mdk
- add dependencie on newt from newt-devel
- Patch for python 2.0
- Add build requires on tcl

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.50.8-5mdk
- automatically added BuildRequires

* Sun Jul 23 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.50.8-4mdk
- macro-ization
- BM

* Fri May 19 2000 Pixel <pixel@mandrakesoft.com> 0.50.8-3mdk
- add soname

* Wed Apr 5 2000 Warly <warly@mandrakesoft.com> 0.50.8-2mdk
- readd the mandrake colors patch

* Wed Apr 5 2000 Warly <warly@mandrakesoft.com> 0.50.8-1mdk
- new groups: System/Librairies and Development/C for devel

* Sat Mar 11 2000 Pixel <pixel@mandrakesoft.com> 0.50-15mdk
- really default to mandrake colors (applying the patch works better :)

* Tue Jan 11 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.50-14mdk
- By default mandrake colors.

* Tue Dec 14 1999 Frederic Lepied <flepied@mandrakesoft.com>

- fix bug when gpm isn't running

* Wed Oct 27 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- Build release.

* Fri Oct  1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- 0.50.

* Wed Jun 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- Patch from H.J. Lu <hjl@varesearch.com> :
- fixed tab expansion.

* Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- Mandrake adaptions
- add de locale

* Mon Mar 15 1999 Matt Wilson <msw@redhat.com>
- fix from Jakub Jelinek for listbox keypresses

* Fri Feb 27 1999 Matt Wilson <msw@redhat.com>
- fixed support for navigating listboxes with alphabetical keypresses

* Thu Feb 25 1999 Matt Wilson <msw@redhat.com>
- updated descriptions
- added support for navigating listboxes with alphabetical keypresses

* Mon Feb  8 1999 Matt Wilson <msw@redhat.com>
- made grid wrapped windows at least the size of their title bars

* Fri Feb  5 1999 Matt Wilson <msw@redhat.com>
- Function to set checkbox flags.  This will go away later when I have
  a generic flag setting function and signals to comps to go insensitive.

* Tue Jan 19 1999 Matt Wilson <msw@redhat.com>
- Stopped using libgpm, internalized all gpm calls.  Still need some cleanups.

* Thu Jan  7 1999 Matt Wilson <msw@redhat.com>
- Added GPM mouse support
- Moved to autoconf to allow compiling without GPM support
- Changed revision to 0.40

* Wed Oct 21 1998 Bill Nottingham <notting@redhat.com>
- built against slang-1.2.2

* Wed Aug 19 1998 Bill Nottingham <notting@redhat.com>
- bugfixes for text reflow
- added docs

* Fri May 01 1998 Cristian Gafton <gafton@redhat.com>
- devel package moved to Development/Libraries

* Thu Apr 30 1998 Erik Troan <ewt@redhat.com>
- removed whiptcl.so -- it should be in a separate package

* Mon Feb 16 1998 Erik Troan <ewt@redhat.com>
- added newtWinMenu()
- many bug fixes in grid code

* Wed Jan 21 1998 Erik Troan <ewt@redhat.com>
- removed newtWinTernary()
- made newtWinChoice() return codes consistent with newtWinTernary()

* Fri Jan 16 1998 Erik Troan <ewt@redhat.com>
- added changes from Bruce Perens
    - small cleanups
    - lets whiptail automatically resize windows
- the order of placing a grid and adding components to a form no longer
  matters
- added newtGridAddComponentsToForm()

* Wed Oct 08 1997 Erik Troan <ewt@redhat.com>
- added newtWinTernary()

* Tue Oct 07 1997 Erik Troan <ewt@redhat.com>
- made Make/spec files use a buildroot
- added grid support (for newt 0.11 actually)

* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
- Added patched from Clarence Smith for setting the size of a listbox
- Version 0.9

* Tue May 28 1997 Elliot Lee <sopwith@redhat.com> 0.8-2
- Touchups on Makefile
- Cleaned up NEWT_FLAGS_*

* Tue Mar 18 1997 Erik Troan <ewt@redhat.com>
- Cleaned up listbox
- Added whiptail
- Added newtButtonCompact button type and associated colors
- Added newtTextboxGetNumLines() and newtTextboxSetHeight()

* Tue Feb 25 1997 Erik Troan <ewt@redhat.com>
- Added changes from sopwith for C++ cleanliness and some listbox fixes.