Accepting request 102428 from devel:libraries:c_c++
see changelog OBS-URL: https://build.opensuse.org/request/show/102428 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/newt?expand=0&rev=30
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
Index: newt-0.52.13/configure
|
|
||||||
===================================================================
|
|
||||||
--- newt-0.52.13.orig/configure
|
|
||||||
+++ newt-0.52.13/configure
|
|
||||||
@@ -3455,7 +3455,7 @@ if test "x$with_python" = "xno"; then
|
|
||||||
$as_echo "skipped" >&6; }
|
|
||||||
PYTHONVERS=
|
|
||||||
else
|
|
||||||
- PYTHONVERS=$(ls /usr/include/python*/Python.h 2> /dev/null | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
|
|
||||||
+ PYTHONVERS=$(ls /usr/include/python*/Python.h 2> /dev/null | sed "s|/usr/include/||g"| sed "s|/Python.h||g" | head -n1 2> /dev/null)
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHONVERS" >&5
|
|
||||||
$as_echo "$PYTHONVERS" >&6; }
|
|
||||||
fi
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:02a6908e048dbb3c23743cdeacf6dba85211fd59fb96ce58e11a4d8976173585
|
|
||||||
size 148350
|
|
||||||
13
newt-0.52.14-incorrect-fsf-address.patch
Normal file
13
newt-0.52.14-incorrect-fsf-address.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: COPYING
|
||||||
|
===================================================================
|
||||||
|
--- COPYING.orig
|
||||||
|
+++ COPYING
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||||
|
- 675 Mass Ave, Cambridge, MA 02139, USA
|
||||||
|
+ 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
3
newt-0.52.14.tar.bz2
Normal file
3
newt-0.52.14.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6802c0dcd622ebed1d2686e25661c19d27913c11448cbc61951dba4f3c798210
|
||||||
|
size 148546
|
||||||
17
newt.changes
17
newt.changes
@@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 1 10:23:33 UTC 2012 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
- update to 0.52.14:
|
||||||
|
+ fix returning strings in whiptail and whiptcl (rh#752818)
|
||||||
|
+ fix configure to work with multiple python versions (rh#737998)
|
||||||
|
- removed newt-0.52.13-python_version.patch : fixed upstream
|
||||||
|
- compile with fPIC - fixes problems with _snackmodule.so
|
||||||
|
thanks to Joerg Steffens (bnc#734171)
|
||||||
|
- newt-doc recommends the main package as the examples need it
|
||||||
|
- added newt-0.52.14-incorrect-fsf-address.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 29 19:32:51 UTC 2012 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Remove redundant tags/sections per specfile guideline suggestions
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 8 11:32:27 UTC 2011 - lars@linux-schulserver.de
|
Mon Aug 8 11:32:27 UTC 2011 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
|||||||
36
newt.spec
36
newt.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package newt
|
# spec file for package newt
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,21 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: newt
|
Name: newt
|
||||||
%define libname lib%{name}
|
%define libname lib%{name}
|
||||||
%define libsoname %{libname}0_52
|
%define libsoname %{libname}0_52
|
||||||
|
|
||||||
Summary: A library for text mode user interfaces
|
Summary: A library for text mode user interfaces
|
||||||
Version: 0.52.13
|
|
||||||
Release: 1
|
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
Version: 0.52.14
|
||||||
|
Release: 0
|
||||||
Url: https://fedorahosted.org/newt/
|
Url: https://fedorahosted.org/newt/
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Source10: %{name}-rpmlintrc
|
Source10: %{name}-rpmlintrc
|
||||||
Patch0: newt-0.52.13-python_version.patch
|
Patch0: newt-0.52.14-incorrect-fsf-address.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: popt-devel
|
BuildRequires: popt-devel
|
||||||
@@ -55,9 +54,8 @@ This package also contains a Dialog replacement called whiptail. Newt
|
|||||||
is based on the slang library.
|
is based on the slang library.
|
||||||
|
|
||||||
%package -n %{libsoname}
|
%package -n %{libsoname}
|
||||||
|
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: Shared libraries for Nifty Erik's Windowing Toolkit
|
Summary: Shared libraries for Nifty Erik's Windowing Toolkit
|
||||||
|
License: LGPL-2.1+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{libsoname}
|
%description -n %{libsoname}
|
||||||
@@ -70,8 +68,8 @@ check boxes, radio buttons, labels, plain text fields, scrollbars,
|
|||||||
etc., to text mode user interfaces.
|
etc., to text mode user interfaces.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: Development files for the Newt windowing toolkit
|
Summary: Development files for the Newt windowing toolkit
|
||||||
|
License: LGPL-2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{libsoname} = %{version}
|
Requires: %{libsoname} = %{version}
|
||||||
Requires: python-devel
|
Requires: python-devel
|
||||||
@@ -89,9 +87,11 @@ Install newt-devel if you want to develop applications which depend on
|
|||||||
newt.
|
newt.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: Tutorial for Nifty Erik's Windowing Toolkit
|
Summary: Tutorial for Nifty Erik's Windowing Toolkit
|
||||||
|
License: LGPL-2.1+
|
||||||
Group: Documentation/Howto
|
Group: Documentation/Howto
|
||||||
|
# the examples need the main package:
|
||||||
|
Recommends: %{name} = %{version}
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package contains a tutorial about the Newt windowing toolkit.
|
This package contains a tutorial about the Newt windowing toolkit.
|
||||||
@@ -101,12 +101,12 @@ interfaces. Newt can be used to add stacked windows, entry widgets,
|
|||||||
check boxes, radio buttons, labels, plain text fields, scrollbars,
|
check boxes, radio buttons, labels, plain text fields, scrollbars,
|
||||||
etc., to text mode user interfaces. Newt is based on the slang library.
|
etc., to text mode user interfaces. Newt is based on the slang library.
|
||||||
|
|
||||||
|
%package static
|
||||||
# Please keep the static package as this is requested by another
|
# Please keep the static package as this is requested by another
|
||||||
# vendor for his tool. It shouldn't be a problem to keep this
|
# vendor for his tool. It shouldn't be a problem to keep this
|
||||||
# special package. (lrupp)
|
# special package. (lrupp)
|
||||||
%package static
|
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: Static libraries of Nifty Erik's Windowing Toolkit
|
Summary: Static libraries of Nifty Erik's Windowing Toolkit
|
||||||
|
License: LGPL-2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-devel = %{version}
|
Requires: %{name}-devel = %{version}
|
||||||
|
|
||||||
@@ -121,10 +121,8 @@ check boxes, radio buttons, labels, plain text fields, scrollbars,
|
|||||||
etc., to text mode user interfaces.
|
etc., to text mode user interfaces.
|
||||||
|
|
||||||
%package -n python-%{name}
|
%package -n python-%{name}
|
||||||
|
|
||||||
|
|
||||||
License: GPL-2.0 ; GPL-2.0+ ; LGPL-2.1+
|
|
||||||
Summary: Python bindings for newt
|
Summary: Python bindings for newt
|
||||||
|
License: GPL-2.0 ; GPL-2.0+ ; LGPL-2.1+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Provides: %{name}-python = %{version}
|
Provides: %{name}-python = %{version}
|
||||||
@@ -137,22 +135,19 @@ library providing a python API for creating text mode interfaces.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# gpm support seems to smash the stack
|
# gpm support seems to smash the stack
|
||||||
# --with-gpm-support
|
# --with-gpm-support
|
||||||
%configure --without-tcl
|
%configure --without-tcl
|
||||||
## make depend
|
## make depend
|
||||||
%{__make} CPPFLAGS="%{optflags}" %{?_smp_mflags} all
|
%{__make} CPPFLAGS="%{optflags} -fPIC" %{?_smp_mflags} all
|
||||||
#docbook2txt tutorial.sgml
|
#docbook2txt tutorial.sgml
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__make} PYTHONVERS="python%{py_ver}" instroot="%{buildroot}" DESTDIR="%{buildroot}" install install-sh
|
%{__make} PYTHONVERS="python%{py_ver}" instroot="%{buildroot}" DESTDIR="%{buildroot}" install install-sh
|
||||||
# currently we don't support these languages
|
# currently we don't support these languages
|
||||||
# FIXME: add to filesystem
|
|
||||||
## and rpmlint
|
|
||||||
# invalid-lc-messages-dir /usr/share/locale/ast/
|
|
||||||
for lang in ast bal sr@latin wo; do
|
for lang in ast bal sr@latin wo; do
|
||||||
%{__rm} -rf %{buildroot}%{_datadir}/locale/$lang
|
%{__rm} -rf %{buildroot}%{_datadir}/locale/$lang
|
||||||
done
|
done
|
||||||
@@ -179,9 +174,6 @@ popd 1>/dev/null
|
|||||||
|
|
||||||
%postun -n %{libsoname} -p /sbin/ldconfig
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
%dir %{_defaultdocdir}/%{name}
|
%dir %{_defaultdocdir}/%{name}
|
||||||
|
|||||||
Reference in New Issue
Block a user