Sync from SUSE:SLFO:Main perl-Sort-Versions revision 8f282f13b6c433752905e49bb645558c
This commit is contained in:
commit
6058259b80
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
BIN
Sort-Versions-1.62.tar.gz
(Stored with Git LFS)
Normal file
BIN
Sort-Versions-1.62.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#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_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
48
perl-Sort-Versions.changes
Normal file
48
perl-Sort-Versions.changes
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 15 10:23:56 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.62
|
||||||
|
see /usr/share/doc/packages/perl-Sort-Versions/Changes
|
||||||
|
|
||||||
|
1.62 2015-12-13 NEILB
|
||||||
|
- Fixed Hack Kampbjørn's surname -- I'd previously switched the ø to an
|
||||||
|
upper-case Ø -- thanks to pink-mist for pointing this out.
|
||||||
|
- Updated github repo URL after changing my github username
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 30 06:19:12 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.61
|
||||||
|
see /usr/share/doc/packages/perl-Sort-Versions/Changes
|
||||||
|
|
||||||
|
1.61 2015-04-29 NEILB
|
||||||
|
- Removed spaces from function prototype for versioncmp(). RT#103810
|
||||||
|
Kerin Millar++
|
||||||
|
- Added [MetaJSON] so the dist will get a META.json file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 14 19:45:24 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.60
|
||||||
|
see /usr/share/doc/packages/perl-Sort-Versions/Changes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 30 19:20:43 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
- switch to perl_requires macro
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 29 18:31:05 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
- remove /var/adm/perl-modules
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 29 18:00:52 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
- called spec2changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 12 00:00:00 UTC 2006 - jfunk@funktronics.ca
|
||||||
|
|
||||||
|
- Initial release
|
||||||
|
|
100
perl-Sort-Versions.spec
Normal file
100
perl-Sort-Versions.spec
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
#
|
||||||
|
# spec file for package perl-Sort-Versions
|
||||||
|
#
|
||||||
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: perl-Sort-Versions
|
||||||
|
Version: 1.62
|
||||||
|
Release: 0
|
||||||
|
%define cpan_name Sort-Versions
|
||||||
|
Summary: Perl 5 Module for Sorting of Revision-Like Numbers
|
||||||
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
Url: http://search.cpan.org/dist/Sort-Versions/
|
||||||
|
Source0: http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
|
||||||
|
Source1: cpanspec.yml
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Sort::Versions allows easy sorting of mixed non-numeric and numeric
|
||||||
|
strings, like the 'version numbers' that many shared library systems and
|
||||||
|
revision control packages use. This is quite useful if you are trying to
|
||||||
|
deal with shared libraries. It can also be applied to applications that
|
||||||
|
intersperse variable-width numeric fields within text. Other applications
|
||||||
|
can undoubtedly be found.
|
||||||
|
|
||||||
|
For an explanation of the algorithm, it's simplest to look at these
|
||||||
|
examples:
|
||||||
|
|
||||||
|
1.1 < 1.2
|
||||||
|
1.1a < 1.2
|
||||||
|
1.1 < 1.1.1
|
||||||
|
1.1 < 1.1a
|
||||||
|
1.1.a < 1.1a
|
||||||
|
1 < a
|
||||||
|
a < b
|
||||||
|
1 < 2
|
||||||
|
1.1-3 < 1.1-4
|
||||||
|
1.1-5 < 1.1.6
|
||||||
|
|
||||||
|
More precisely (but less comprehensibly), the two strings are treated as
|
||||||
|
subunits delimited by periods or hyphens. Each subunit can contain any
|
||||||
|
number of groups of digits or non-digits. If digit groups are being
|
||||||
|
compared on both sides, a numeric comparison is used, otherwise a ASCII
|
||||||
|
ordering is used. A group or subgroup with more units will win if all
|
||||||
|
comparisons are equal. A period binds digit groups together more tightly
|
||||||
|
than a hyphen.
|
||||||
|
|
||||||
|
Some packages use a different style of version numbering: a simple real
|
||||||
|
number written as a decimal. Sort::Versions has limited support for this
|
||||||
|
style: when comparing two subunits which are both digit groups, if either
|
||||||
|
subunit has a leading zero, then both are treated like digits after a
|
||||||
|
decimal point. So for example:
|
||||||
|
|
||||||
|
0002 < 1
|
||||||
|
1.06 < 1.5
|
||||||
|
|
||||||
|
This won39t always work, because there won39t always be a leading zero in
|
||||||
|
real-number style version numbers. There is no way for Sort::Versions to
|
||||||
|
know which style was intended. But a lot of the time it will do the right
|
||||||
|
thing. If you are making up version numbers, the style with (possibly) more
|
||||||
|
than one dot is the style to use.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
|
%install
|
||||||
|
%perl_make_install
|
||||||
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root,755)
|
||||||
|
%doc Changes LICENSE README
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user