8
0

- -std=gnu11 to fix build with gcc15

- modified sources
  % cpanspec.yml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Convert-UUlib?expand=0&rev=43
This commit is contained in:
2025-06-02 07:23:35 +00:00
committed by Git OBS Bridge
commit f0035edb5e
6 changed files with 391 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
Convert-UUlib-1.8.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:98c314c50fb15bf53f89fcfe47ecaaf2b7bd3a87573638916c8a04cde9a8db3c
size 302763

31
cpanspec.yml Normal file
View File

@@ -0,0 +1,31 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
preamble: |-
Provides: p_conulb
Obsoletes: p_conulb
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
license: GPL-1.0-or-later
#skip_noarch: 1
custom_build: |-
# https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2341023
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -std=gnu11"
%make_build
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

251
perl-Convert-UUlib.changes Normal file
View File

@@ -0,0 +1,251 @@
-------------------------------------------------------------------
Thu May 29 12:53:01 UTC 2025 - pgajdos@suse.com
- -std=gnu11 to fix build with gcc15
- modified sources
% cpanspec.yml
-------------------------------------------------------------------
Thu Feb 6 22:19:20 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Thu Dec 17 03:06:11 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 1.8
see /usr/share/doc/packages/perl-Convert-UUlib/Changes
TODO: biggest timesinks: FP_fgets/getc_unlocked overall, UUInsertPartToList dominates large loads due to O(n**2) search
1.8 Thu Dec 17 02:23:53 CET 2020
- no bugfixes in this release due to lack of known bugs, but the major changes
in this release might have introduced new bugs, so watch out.
- update large decoder example to disable OPT_AUTOCHK and use Smerge -1.
- some micro-optimisations.
- avoid costly string comparisons by comparing hashes when isnerting items,
which speeds up insertion by a constant factor.
- improve uulist (and other) structure layout and size.
- reverse the order of file list items, which heuristically improves
match speed with large usenet file lists.
- use getc instead of fgetc, which makes no difference on gnu/linux.
- clean up _FP symbol names toi not start with an underscore.
- use feof_unlocked and ferror_unlocked.
- implement a faster ascii-only strnicmp.
- misc very minor code improvements.
- remove quite a bit of pre-posix/dos/etc. cruft.
- use flockfile, if available, for a potential but small
speed gain.
- speed up inner yenc decoder loop.
- kentnl said that this module should no longer claim to be a simple
interface to uulib, as the bunndled copy is now better maintained
than the original upstream library.
-------------------------------------------------------------------
Tue Mar 17 03:10:13 UTC 2020 - <timueller+perl@suse.de>
- updated to 1.71
see /usr/share/doc/packages/perl-Convert-UUlib/Changes
1.71 Tue Mar 17 00:54:06 CET 2020
- backport to c89 (patch by Paul Howarth).
-------------------------------------------------------------------
Sun Mar 1 03:09:16 UTC 2020 - <timueller+perl@suse.de>
- updated to 1.7
see /usr/share/doc/packages/perl-Convert-UUlib/Changes
1.7 Sat Feb 29 22:07:54 CET 2020
- new function: GetFileList.
- experimental perlmulticore support (see manpage).
- Initialize is now a NOP and CleanUp automatically initializes again.
- updated example decoder and documentation a bit.
- include ecb.h to deal with compiler builtins and endianness.
- some further µ-optimisations in hot code, especially for yEnc.
- replace crc32 function by slice-by-16 version by Stephan Brumme,
which should speed up yEnc en-/decoding.
- yEnc: do not calculate two crcs per part, instead, combine
the part crcs together to form the file crc.
- yEnc: allow pcrc= in addition to pcrc32= for yenc trailers, as
some draft mentions both and it is actually in active use.
- yEnc: ignore crc32= on multiparts, except on the last part,
which avoids spurious corruption warnings.
- be more precise in documenting code licenses in COPYING.
- convert constant creation to the method I normally use.
- use common::sense.
-------------------------------------------------------------------
Tue Feb 18 03:07:17 UTC 2020 - <timueller+perl@suse.de>
- updated to 1.62
see /usr/share/doc/packages/perl-Convert-UUlib/Changes
1.62 Mon Feb 17 23:19:42 CET 2020
- major performance improvement by simplifying code in _FP_gets
to not use fscanf. This might slow things down on platforms
with very slow fgetc.
1.61 Sun Feb 9 18:38:29 CET 2020
- lint uulib: fix some format string type mismatches
and some other minor issues.
-------------------------------------------------------------------
Sat Nov 9 10:53:22 UTC 2019 - <tina.mueller@suse.com>
- Add manual license GPL-1.0-or-later to cpanspec.yml (see COPYING file in
the source)
-------------------------------------------------------------------
Fri Oct 25 10:46:24 UTC 2019 - Tina Mueller <tina.mueller@suse.com>
- Regenerate spec with newest cpanspec
* Add manual dependencies to cpanspec.yml
-------------------------------------------------------------------
Fri Oct 25 09:39:40 UTC 2019 - <timueller+perl@suse.de>
- updated to 1.6
see /usr/share/doc/packages/perl-Convert-UUlib/Changes
1.6 Thu Oct 24 17:11:54 CEST 2019
- fix heap overflow (testcase by Noel Duffy, reported
by Robert Scheck). The defense-in-depth mechanism based
on mmap should make this unexploitable for other than denial
of service, on systems supporting mmap/mprotect.
-------------------------------------------------------------------
Tue Sep 25 15:50:19 UTC 2018 - pmonrealgonzalez@suse.com
- update to 1.4
- fix a heap overflow (testcase by Krzysztof Wojtaś).
- on systems that support it (posix + mmap + map_anonymous),
allocate all dynamic areas via mmap and put four guard
pages around them, to catch similar heap overflows
safely in the future.
- find a safer way to pass in CC/CFLAGS to uulib.
- added stability canary support.
-------------------------------------------------------------------
Wed Oct 8 17:02:56 UTC 2014 - jengelh@inai.de
- Use source URLs, and remove old specfile tags and sections.
-------------------------------------------------------------------
Fri Nov 18 11:10:42 UTC 2011 - coolo@suse.com
- use original .tar.gz
-------------------------------------------------------------------
Mon May 30 07:43:35 UTC 2011 - vcizek@novell.com
- update to 1.4
- avoid a classical buffer overflow in case a progress
message is too long.
- this release adds depdencies for snprintf/vsnprintf.
- some uuencode encoders do not generate a final "space" line
before the "end" marker, so do not rely on the line to be there.
-------------------------------------------------------------------
Thu Dec 16 13:48:36 CET 2010 - anicka@suse.cz
- update to 1.34
* fix a one-byte-past-end-write buffer overflow in UURepairData
(reported, analysed and testcase provided by Marco Walther).
* quoted-printable decoding was completely broken, try a fix.
-------------------------------------------------------------------
Wed Dec 1 13:31:14 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Mon Nov 29 18:29:34 UTC 2010 - coolo@novell.com
- remove /var/adm/perl-modules
-------------------------------------------------------------------
Tue Oct 19 08:38:26 UTC 2010 - coolo@novell.com
- add perl as explicit buildrequire
-------------------------------------------------------------------
Sun Feb 14 10:17:27 UTC 2010 - coolo@novell.com
- update to 1.33
* many changes in the last 5 years, see Changes
-------------------------------------------------------------------
Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de
- enable parallel build
-------------------------------------------------------------------
Wed Jan 25 21:39:34 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Apr 15 10:55:33 CEST 2005 - schubi@suse.de
- update to most recent version 1.051
-------------------------------------------------------------------
Fri Feb 27 11:42:22 CET 2004 - choeger@suse.de
- update to most recent version 1.0
-------------------------------------------------------------------
Sun Jan 11 10:19:50 CET 2004 - adrian@suse.de
- add %defattr
-------------------------------------------------------------------
Fri Aug 22 14:18:47 CEST 2003 - mjancar@suse.cz
- require the perl version we build with
-------------------------------------------------------------------
Thu Jul 17 11:39:15 CEST 2003 - choeger@suse.de
- use install_vendor and new %perl_process_packlist macro
-------------------------------------------------------------------
Tue Jun 17 11:22:31 CEST 2003 - choeger@suse.de
- updated filelist
- update to version 0.31
-------------------------------------------------------------------
Mon May 19 12:30:33 CEST 2003 - choeger@suse.de
- remove installed (but unpackaged) file perllocal.pod
-------------------------------------------------------------------
Mon Aug 5 12:37:21 MEST 2002 - link@suse.de
- updated to 0.213
- overhauled spec file
-------------------------------------------------------------------
Tue Jul 2 17:40:06 MEST 2002 - mls@suse.de
- remove race in .packlist generation
-------------------------------------------------------------------
Sun Jan 13 03:41:44 MET 2002 - link@suse.de
- update to v0.201
-------------------------------------------------------------------
Wed Nov 15 17:06:07 CET 2000 - choeger@suse.de
- long package name
- buildroot
-------------------------------------------------------------------
Wed Jul 19 09:14:30 MEST 2000 - choeger@suse.de
- first package, v0.11

82
perl-Convert-UUlib.spec Normal file
View File

@@ -0,0 +1,82 @@
#
# spec file for package perl-Convert-UUlib
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Convert-UUlib
Name: perl-Convert-UUlib
Version: 1.800.0
Release: 0
# 1.8 -> normalize -> 1.800.0
%define cpan_version 1.8
#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later)
License: GPL-1.0-or-later
Summary: Decode uu/xx/b64/mime/yenc/etc-encoded data from a massive number of files
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Canary::Stability)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
BuildRequires: perl(common::sense) >= 3.740
Requires: perl(common::sense) >= 3.740
Provides: perl(Convert::UUlib) = %{version}
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
Provides: p_conulb
Obsoletes: p_conulb
# MANUAL END
%description
This module started as an interface to the uulib/uudeview library by Frank
Pilhofer that can be used to decode all kinds of usenet (and other) binary
messages.
After upstream abondoned the project, th library was continuously bugfixed
and improved in this module, with major focuses on security fixes,
correctness and speed (that does not mean that this library is considered
safe with untrusted data, but it surely is safer than the poriginal
uudeview).
Read the file doc/library.pdf from the distribution for in-depth
information about the C-library used in this interface, and the rest of
this document and especially the non-trivial decoder program at the end.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
# https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2341023
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -std=gnu11"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes doc example-decoder README
%license COPYING COPYING.Artistic COPYING.GNU
%changelog