From c061c62d7c48aa2e638b3697b9aa826ed40b27cd8c9456a63077230ee0493540 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 14 Feb 2024 17:01:42 +0000 Subject: [PATCH 1/2] Accepting request 1146593 from home:pgajdos - version update to 1.8.5 ### 1.8.5 - 19 November 2023 * fix: corrected percentage formatting so it doesn't jump from 2 to 3 characters wide at 100% (#80) * fix: replaced "`--remote`" mechanism, using a temporary file instead of SysV IPC, so it can work reliably even when there are multiple PV instances * fix: corrected compilation failure when without IPC support * security: addressed all issues highlighted by the software auditing tools "`splint`" and "`flawfinder`" (see "`make analyse`") (#77) * cleanup: compilation warnings fixed on non-IPC and MacOS systems * ### 1.8.0 - 24 September 2023 * #### Features * feature: new "`--discard`" option to discard input as if writing to */dev/null* (#42) * feature: new "`--error-skip-block`" option to make "`--skip- errors`" skip whole blocks (#37) * feature: use `posix_fadvise()` like `cat`(1) does, to improve efficiency (#39) * feature: new "`--enable-static`" option to "`configure`" for static builds (#75) * #### Security * security: with "`--pidfile`", write to a temporary file and rename it into place, to improve security * security: keep self-contained copies of name and format string in PV internal state for memory safety * security: ignore _TMP_ / _TMPDIR_ environment variables when using a terminal lock file OBS-URL: https://build.opensuse.org/request/show/1146593 OBS-URL: https://build.opensuse.org/package/show/utilities/pv?expand=0&rev=45 --- pv-1.7.24.tar.gz | 3 -- pv-1.7.24.tar.gz.asc | 14 -------- pv-1.8.5.tar.gz | 3 ++ pv-1.8.5.tar.gz.asc | 14 ++++++++ pv.changes | 77 ++++++++++++++++++++++++++++++++++++++++++++ pv.spec | 10 +++--- 6 files changed, 100 insertions(+), 21 deletions(-) delete mode 100644 pv-1.7.24.tar.gz delete mode 100644 pv-1.7.24.tar.gz.asc create mode 100644 pv-1.8.5.tar.gz create mode 100644 pv-1.8.5.tar.gz.asc diff --git a/pv-1.7.24.tar.gz b/pv-1.7.24.tar.gz deleted file mode 100644 index ad30675..0000000 --- a/pv-1.7.24.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3bf43c5809c8d50066eaeaea5a115f6503c57a38c151975b710aa2bee857b65e -size 160435 diff --git a/pv-1.7.24.tar.gz.asc b/pv-1.7.24.tar.gz.asc deleted file mode 100644 index ce33678..0000000 --- a/pv-1.7.24.tar.gz.asc +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQHLBAABCgA1FiEEQme0+Q8meKESFpvWHR73WBtF6aAFAmTGtlQXHGFuZHJldy53 -b29kQGl2YXJjaC5jb20ACgkQHR73WBtF6aBnEwwArjl3/RyxSNjhYUOe/IVAKeUf -1FIR4cn1CbEpKIaaTwa3fHnHao9tElaQKR4QZlZTXnErWwZ47zCaJq0ax4qnRlvI -oenqaBNmMau9ib2SJNBXi/MmtpciL9ZAWhQwHZTGJndVQQwTV5I2cybcSWW4YDd0 -e0FQ5gOJQ/k6ynco1CckaYCnIMbRa0Om/fxvhVdkBciLfXUPpem8I5MukdMp9jyu -ltLvMqqZ0gkP5xjn6FW+oiQfKSIGPWQCMNI9iNmA0cdFo1wF4Sj98QuLZQL4QadA -PDsE5csP1rfcwP+oHRRwhx6THMh5k6AXfuCbAEi8FZMIZIAX4fpfgG8hGhFHSMso -+H1v18EYljimQJdv+7kuSV3HwjXmOxD8cXhycE0XJrhAQHc13tfRzaE2grTJHR1C -0FnPLTMkzZSrYeny3u7Ylql9IesRsgwy3M9usLx/XzXNyEm24DmxfFEWNceVN2qX -kGMDUKuvDP7tbIOvN/XlYjHYHwxZxWDrWUntsUXY -=pPkX ------END PGP SIGNATURE----- diff --git a/pv-1.8.5.tar.gz b/pv-1.8.5.tar.gz new file mode 100644 index 0000000..747d864 --- /dev/null +++ b/pv-1.8.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d22948d06be06a5be37336318de540a2215be10ab0163f8cd23a20149647b780 +size 327072 diff --git a/pv-1.8.5.tar.gz.asc b/pv-1.8.5.tar.gz.asc new file mode 100644 index 0000000..0dce084 --- /dev/null +++ b/pv-1.8.5.tar.gz.asc @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNATURE----- + +iQHLBAABCgA1FiEEQme0+Q8meKESFpvWHR73WBtF6aAFAmVaUC8XHGFuZHJldy53 +b29kQGl2YXJjaC5jb20ACgkQHR73WBtF6aCQIgv/QdGADADs3fYvZKLu2+rDbD2J +y4CUl2o5LBXXlU7MxnEEvBEj/d/PWY6X+8VsJkVwnpIbBydx/zfby1NBsrbP8n98 +Sm4fIz65Blq74gW7tRzzd16/8082ESwREZRaLfeiu/BTlZ+9Y+3csm3cXgjRR69G +1662gJlFnTuTNSY6z88OG5BOjR7tZ0Zv1E74lSoL/9yTmMCUAsgmDSF8o887020O +tF6ZkVDWgQLpoMMd9K5gmM1hukpKWyy1JMXZNYd62A+eIyLcwM6MjdeJ1QRmf0qf +ATFOK6jcoVDc5RP2FgzCZTA7poFMyldC72vVfE1nOwfqdlCBjsullpw2cMX5w4tb +IMouPY/YWncdABsnDtusOgzh8FC8V2uHKSWqrdq0f2kmZtXPRlu3yQRPnUTj8zMG +CVw3Md4l1y0tE/A9mYBaJCeZp663fN5p0N9mJqN3NThqUxFv7UtNi6sIUJLluc2W +uUA0KRYVMCCqC60XDqO0askpFp0yXCjF2m4g8Dn+ +=ZzLi +-----END PGP SIGNATURE----- diff --git a/pv.changes b/pv.changes index dd4a2c8..b0cd870 100644 --- a/pv.changes +++ b/pv.changes @@ -1,3 +1,80 @@ +------------------------------------------------------------------- +Wed Feb 14 14:46:34 UTC 2024 - pgajdos@suse.com + +- version update to 1.8.5 + ### 1.8.5 - 19 November 2023 + * fix: corrected percentage formatting so it doesn't jump from + 2 to 3 characters wide at 100% (#80) + * fix: replaced "`--remote`" mechanism, using a temporary file + instead of SysV IPC, so it can work reliably even when there + are multiple PV instances + * fix: corrected compilation failure when without IPC support + * security: addressed all issues highlighted by the software + auditing tools "`splint`" and "`flawfinder`" (see "`make + analyse`") (#77) + * cleanup: compilation warnings fixed on non-IPC and MacOS + systems + * ### 1.8.0 - 24 September 2023 + * #### Features + * feature: new "`--discard`" option to discard input as if + writing to */dev/null* (#42) + * feature: new "`--error-skip-block`" option to make "`--skip- + errors`" skip whole blocks (#37) + * feature: use `posix_fadvise()` like `cat`(1) does, to improve + efficiency (#39) + * feature: new "`--enable-static`" option to "`configure`" for + static builds (#75) + * #### Security + * security: with "`--pidfile`", write to a temporary file and + rename it into place, to improve security + * security: keep self-contained copies of name and format + string in PV internal state for memory safety + * security: ignore _TMP_ / _TMPDIR_ environment variables when + using a terminal lock file + * #### Fixes + * fix: only report errors about missing files when starting to + transfer from them, not while calculating size, and behave + more like `cat`(1) by skipping them and moving on + * fix: auto-calculate total line count with "`--line-mode`" + when all inputs are regular files + * fix: use `clock_gettime()` in ETA calculation to cope with + machine suspend/resume (#13) + * fix: if "`--width`" or "`--height`" were provided, do not + change them when the window size changes (#36) + * fix: when a file descriptor position in "`--watchfd`" moves + backwards, show the rate using the correct prefix (#41) + * fix: rewrite terminal state save/restore so state is not + intermittently garbled on exit when using "`--cursor`" (#20), + (#24) + * #### Cleanups + * cleanup: addressed many potential issues highlighted by the + software auditing tools "`splint`" and "`flawfinder`" (see + new target "`make analyse`") + * cleanup: switched the build system to GNU Automake + * cleanup: replaced the test harness with the one native to GNU + Automake + * cleanup: added a test for terminal width detection to "`make + check`" + * cleanup: added a test to "`make check`" to ensure that "`make + install`" installs everything expected + * cleanup: replaced *AC_HEADER_TIOCGWINSZ* with + *AC_CHECK_HEADERS(sys/ioctl.h)* for better MacOS + compatibility (#74) + * cleanup: with "`--sync`", call `fsync()` instead of + `fdatasync()` on incapable systems (#73) + * cleanup: the manual is now a static file instead of needing + to be built with "`configure`" + * #### Dropped items + * dropped: dropped support for "`--enable-static-nls`" + * dropped: removed the Linux Software Map file, as the LSM + project appears to be long dead + * dropped: will no longer publish to SourceForge as it has a + chequered history and is unnecessary + * dropped: removed project from GitHub and moved to Codeberg - + see "Give Up GitHub" + * #### Other items + * licensing change from Artistic 2.0 to GPLv3+ + ------------------------------------------------------------------- Thu Nov 30 11:24:57 UTC 2023 - pgajdos@suse.com diff --git a/pv.spec b/pv.spec index 9cf2170..da51535 100644 --- a/pv.spec +++ b/pv.spec @@ -1,7 +1,7 @@ # # spec file for package pv # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: pv -Version: 1.7.24 +Version: 1.8.5 Release: 0 Summary: PipeViewer - Monitor the Progress of Data through Pipes License: Artistic-2.0 @@ -47,12 +47,13 @@ will be until completion. %autosetup -p1 %build -%configure --enable-lfs --enable-nls --disable-debugging +%configure --enable-lfs --enable-nls --disable-debugging --docdir=%{_docdir}/pv %make_build %install %make_install %find_lang %name +rm %{buildroot}/%{_docdir}/pv/INSTALL %check %ifarch s390x @@ -61,7 +62,8 @@ exit 0 %make_build test %files -f %name.lang -%license doc/COPYING +%license docs/COPYING +%_docdir/pv %_bindir/pv %_mandir/man1/pv.1%ext_man From 3534ab8876da0f8d99772bf89f119a58d111060ea74011e78ce7f4a140946b97 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 14 Feb 2024 17:07:31 +0000 Subject: [PATCH 2/2] curate changelog to what's relevant for end-users (configure is not) OBS-URL: https://build.opensuse.org/package/show/utilities/pv?expand=0&rev=46 --- pv.changes | 98 +++++++++++++++--------------------------------------- pv.spec | 15 ++++----- 2 files changed, 34 insertions(+), 79 deletions(-) diff --git a/pv.changes b/pv.changes index b0cd870..7b8eef2 100644 --- a/pv.changes +++ b/pv.changes @@ -2,78 +2,34 @@ Wed Feb 14 14:46:34 UTC 2024 - pgajdos@suse.com - version update to 1.8.5 - ### 1.8.5 - 19 November 2023 - * fix: corrected percentage formatting so it doesn't jump from - 2 to 3 characters wide at 100% (#80) - * fix: replaced "`--remote`" mechanism, using a temporary file - instead of SysV IPC, so it can work reliably even when there - are multiple PV instances - * fix: corrected compilation failure when without IPC support - * security: addressed all issues highlighted by the software - auditing tools "`splint`" and "`flawfinder`" (see "`make - analyse`") (#77) - * cleanup: compilation warnings fixed on non-IPC and MacOS - systems - * ### 1.8.0 - 24 September 2023 - * #### Features - * feature: new "`--discard`" option to discard input as if - writing to */dev/null* (#42) - * feature: new "`--error-skip-block`" option to make "`--skip- - errors`" skip whole blocks (#37) - * feature: use `posix_fadvise()` like `cat`(1) does, to improve - efficiency (#39) - * feature: new "`--enable-static`" option to "`configure`" for - static builds (#75) - * #### Security - * security: with "`--pidfile`", write to a temporary file and - rename it into place, to improve security - * security: keep self-contained copies of name and format - string in PV internal state for memory safety + * Corrected percentage formatting so it does not jump from 2 to 3 + characters wide at 100%. + * Replaced `--remote` mechanism to use a temporary file instead + of SysV IPC, so it can work reliably even when there are + multiple pv instances. + * feature: new `--discard` option to discard input as if writing + to /dev/null. + * feature: new `--error-skip-block` option to make `--skip- + errors` skip whole blocks. + * feature: use `posix_fadvise()` like cat(1) does, to improve + efficiency. + * security: with `--pidfile`, write to a temporary file and + rename it into place, to improve security. * security: ignore _TMP_ / _TMPDIR_ environment variables when - using a terminal lock file - * #### Fixes - * fix: only report errors about missing files when starting to - transfer from them, not while calculating size, and behave - more like `cat`(1) by skipping them and moving on - * fix: auto-calculate total line count with "`--line-mode`" - when all inputs are regular files - * fix: use `clock_gettime()` in ETA calculation to cope with - machine suspend/resume (#13) - * fix: if "`--width`" or "`--height`" were provided, do not - change them when the window size changes (#36) - * fix: when a file descriptor position in "`--watchfd`" moves - backwards, show the rate using the correct prefix (#41) - * fix: rewrite terminal state save/restore so state is not - intermittently garbled on exit when using "`--cursor`" (#20), - (#24) - * #### Cleanups - * cleanup: addressed many potential issues highlighted by the - software auditing tools "`splint`" and "`flawfinder`" (see - new target "`make analyse`") - * cleanup: switched the build system to GNU Automake - * cleanup: replaced the test harness with the one native to GNU - Automake - * cleanup: added a test for terminal width detection to "`make - check`" - * cleanup: added a test to "`make check`" to ensure that "`make - install`" installs everything expected - * cleanup: replaced *AC_HEADER_TIOCGWINSZ* with - *AC_CHECK_HEADERS(sys/ioctl.h)* for better MacOS - compatibility (#74) - * cleanup: with "`--sync`", call `fsync()` instead of - `fdatasync()` on incapable systems (#73) - * cleanup: the manual is now a static file instead of needing - to be built with "`configure`" - * #### Dropped items - * dropped: dropped support for "`--enable-static-nls`" - * dropped: removed the Linux Software Map file, as the LSM - project appears to be long dead - * dropped: will no longer publish to SourceForge as it has a - chequered history and is unnecessary - * dropped: removed project from GitHub and moved to Codeberg - - see "Give Up GitHub" - * #### Other items - * licensing change from Artistic 2.0 to GPLv3+ + using a terminal lock file. + * Only report errors about missing files when starting to + transfer from them, not while calculating size, and behave more + like cat(1) by skipping them and moving on. + * Auto-calculate total line count with `--line-mode` when all + inputs are regular files. + * Cope with machine suspend/resume and botched timestamps. + * If `--width` or `--height` were provided, do not change them + when the window size changes. + * When a file descriptor position in `--watchfd` moves backwards, + show the rate using the correct prefix. + * Rewrite terminal state save/restore so state is not + intermittently garbled on exit when using `--cursor`. + * Licensing change from Artistic 2.0 to GPLv3+. ------------------------------------------------------------------- Thu Nov 30 11:24:57 UTC 2023 - pgajdos@suse.com diff --git a/pv.spec b/pv.spec index da51535..f8e706a 100644 --- a/pv.spec +++ b/pv.spec @@ -19,8 +19,8 @@ Name: pv Version: 1.8.5 Release: 0 -Summary: PipeViewer - Monitor the Progress of Data through Pipes -License: Artistic-2.0 +Summary: Tool for monitor the progress of data through pipes +License: GPL-3.0-or-later Group: System/Base URL: http://ivarch.com/programs/pv.shtml @@ -47,24 +47,23 @@ will be until completion. %autosetup -p1 %build -%configure --enable-lfs --enable-nls --disable-debugging --docdir=%{_docdir}/pv +%configure --enable-lfs --enable-nls --disable-debugging --docdir="%_docdir/pv" %make_build %install %make_install %find_lang %name -rm %{buildroot}/%{_docdir}/pv/INSTALL +rm %buildroot/%_docdir/pv/INSTALL %check -%ifarch s390x -exit 0 -%endif +%ifnarch s390x %make_build test +%endif %files -f %name.lang %license docs/COPYING %_docdir/pv %_bindir/pv -%_mandir/man1/pv.1%ext_man +%_mandir/man1/pv.1* %changelog