Compare commits
No commits in common. "372cc4e0f8aa6026e4ce5f831c3a335bb547d246" and "1cb3d37a323ec8c67fb7f3ea3289d734a27e36aa" have entirely different histories.
372cc4e0f8
...
1cb3d37a32
73
backport-fix-warnings-about-never-read-values.patch
Normal file
73
backport-fix-warnings-about-never-read-values.patch
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
From 638f672ce619abe322306c9f1f422dc988978e57 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Miroslav Lichvar <mlichvar@redhat.com>
|
||||||
|
Date: Oct 01 2019 17:13:55 +0000
|
||||||
|
Subject: fix warnings about never-read values
|
||||||
|
|
||||||
|
Conflict: NA
|
||||||
|
Reference: https://pagure.io/newt/c/638f672ce619abe322306c9f1f422dc988978e57.patch
|
||||||
|
---
|
||||||
|
|
||||||
|
diff --git a/grid.c b/grid.c
|
||||||
|
index 5b4b120..6f79ce4 100644
|
||||||
|
--- a/grid.c
|
||||||
|
+++ b/grid.c
|
||||||
|
@@ -158,7 +158,6 @@ static void shuffleGrid(newtGrid grid, int left, int top, int set) {
|
||||||
|
|
||||||
|
thisTop = top;
|
||||||
|
for (row = 0; row < grid->rows; row++) {
|
||||||
|
- i = 0;
|
||||||
|
thisLeft = left;
|
||||||
|
for (col = 0; col < grid->cols; col++) {
|
||||||
|
field = &grid->fields[col][row];
|
||||||
|
diff --git a/listbox.c b/listbox.c
|
||||||
|
index 6177c07..aae4f83 100644
|
||||||
|
--- a/listbox.c
|
||||||
|
+++ b/listbox.c
|
||||||
|
@@ -758,7 +758,7 @@ static void listboxDestroy(newtComponent co) {
|
||||||
|
struct listbox * li = co->data;
|
||||||
|
struct items * item, * nextitem;
|
||||||
|
|
||||||
|
- nextitem = item = li->boxItems;
|
||||||
|
+ item = li->boxItems;
|
||||||
|
|
||||||
|
while (item != NULL) {
|
||||||
|
nextitem = item->next;
|
||||||
|
diff --git a/newt.c b/newt.c
|
||||||
|
index 0a6ca91..c1dd916 100644
|
||||||
|
--- a/newt.c
|
||||||
|
+++ b/newt.c
|
||||||
|
@@ -873,8 +873,6 @@ void newtPopWindowNoRefresh(void) {
|
||||||
|
if (currentWindow == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
- row = col = 0;
|
||||||
|
-
|
||||||
|
row = currentWindow->top - 1;
|
||||||
|
col = currentWindow->left - 2;
|
||||||
|
if (row < 0)
|
||||||
|
diff --git a/whiptail.c b/whiptail.c
|
||||||
|
index 7932d8b..627f1ee 100644
|
||||||
|
--- a/whiptail.c
|
||||||
|
+++ b/whiptail.c
|
||||||
|
@@ -346,7 +346,7 @@ int main(int argc, const char ** argv) {
|
||||||
|
int fullButtons = 0;
|
||||||
|
int outputfd = 2;
|
||||||
|
int topLeft = 0;
|
||||||
|
- FILE *output = stderr;
|
||||||
|
+ FILE *output;
|
||||||
|
char * result;
|
||||||
|
char ** selections, ** next;
|
||||||
|
char * title = NULL;
|
||||||
|
diff --git a/windows.c b/windows.c
|
||||||
|
index f1381ae..29566a6 100644
|
||||||
|
--- a/windows.c
|
||||||
|
+++ b/windows.c
|
||||||
|
@@ -220,7 +220,6 @@ int newtWinEntries(char * title, char * text, int suggestedWidth, int flexDown,
|
||||||
|
|
||||||
|
for (numItems = 0; items[numItems].text; numItems++);
|
||||||
|
|
||||||
|
- buttonName = button1;
|
||||||
|
va_start(args, button1);
|
||||||
|
for (buttonName = button1; buttonName; buttonName = va_arg(args, char *))
|
||||||
|
++totalButtons;
|
||||||
|
|
||||||
BIN
newt-0.52.21.tar.gz
Normal file
BIN
newt-0.52.21.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
52
newt.spec
52
newt.spec
@ -1,13 +1,15 @@
|
|||||||
Name: newt
|
Name: newt
|
||||||
Version: 0.52.23
|
Version: 0.52.21
|
||||||
Release: 3
|
Release: 7
|
||||||
Summary: A library for text mode user interfaces
|
Summary: A library for text mode user interfaces
|
||||||
License: LGPL-2.0-only
|
License: LGPLv2
|
||||||
URL: https://pagure.io/newt
|
URL: https://pagure.io/newt
|
||||||
Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz
|
Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: backport-fix-warnings-about-never-read-values.patch
|
||||||
|
|
||||||
BuildRequires: gcc popt-devel python3-devel slang-devel
|
BuildRequires: gcc popt-devel python3-devel slang-devel
|
||||||
BuildRequires: docbook-utils lynx make
|
BuildRequires: docbook-utils lynx
|
||||||
|
|
||||||
Provides: snack = %{version}-%{release}
|
Provides: snack = %{version}-%{release}
|
||||||
Obsoletes: %{name}-static
|
Obsoletes: %{name}-static
|
||||||
@ -49,63 +51,45 @@ providing a python API for creating text mode interfaces.
|
|||||||
%build
|
%build
|
||||||
%configure --without-tcl
|
%configure --without-tcl
|
||||||
%make_build all
|
%make_build all
|
||||||
chmod 0644 peanuts.py popcorn.py
|
|
||||||
docbook2txt tutorial.sgml
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
%delete_la_and_a
|
chmod 0755 peanuts.py popcorn.py
|
||||||
|
docbook2txt tutorial.sgml
|
||||||
|
|
||||||
%find_lang %{name}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%make_build test
|
make test
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS README
|
%doc AUTHORS README
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
%{_datadir}/locale
|
||||||
%{_libdir}/libnewt.so.*
|
%{_libdir}/libnewt.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
%{_includedir}/newt*
|
%{_includedir}/newt*
|
||||||
%{_libdir}/libnewt.so
|
%{_libdir}/libnewt.so
|
||||||
|
%{_libdir}/libnewt.a
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
|
|
||||||
%files -n python3-newt
|
%files -n python3-newt
|
||||||
|
%defattr(-,root,root)
|
||||||
%doc peanuts.py popcorn.py
|
%doc peanuts.py popcorn.py
|
||||||
%{python3_sitearch}/*.*
|
%{python3_sitearch}/*.*
|
||||||
%{python3_sitearch}/__pycache__/*.py*
|
%{python3_sitearch}/__pycache__/*.py*
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
%doc tutorial.* CHANGES
|
%doc tutorial.* CHANGES
|
||||||
%{_mandir}/man1/whiptail.1*
|
%{_mandir}/man1/whiptail.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Dec 05 2024 Funda Wang <fundawang@yeah.net> - 0.52.23-3
|
|
||||||
- fix locale files installation
|
|
||||||
|
|
||||||
* Thu Aug 01 2024 yanglu <yanglu72@h-partners.com> - 0.52.23-2
|
|
||||||
- Type:bugfix
|
|
||||||
- Id:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:fix license
|
|
||||||
|
|
||||||
* Thu Feb 01 2024 yanglu <yanglu72@h-partners.com> - 0.52.23-1
|
|
||||||
- Type:requirement
|
|
||||||
- Id:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:Revert update newt version to 0.52.24
|
|
||||||
|
|
||||||
* Wed Dec 06 2023 Vicoloa <lvkun@uniontech.com> - 0.52.24-1
|
|
||||||
- Update newt version to 0.52.24
|
|
||||||
|
|
||||||
* Tue Jan 31 2023 yanglu <yanglu72@h-partners.com> - 0.52.23-1
|
|
||||||
- Type:requirement
|
|
||||||
- Id:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:update newt version to 0.52.23
|
|
||||||
|
|
||||||
* Thu Oct 20 2022 yanglu <yanglu72@h-partners.com> - 0.52.21-7
|
* Thu Oct 20 2022 yanglu <yanglu72@h-partners.com> - 0.52.21-7
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user