Accepting request 296388 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/296388 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=11
This commit is contained in:
parent
81901989b3
commit
359151a790
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:09c2ffa65d504b3a0238c41a97e0138cc2a61609a3719af2738e413f95ea1efa
|
|
||||||
size 4482
|
|
3
Sort-Versions-1.60.tar.gz
Normal file
3
Sort-Versions-1.60.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:106b269c35588a3b114f72f5b651e30bc312fa9de5f33e8bd53f66f1fc4220e5
|
||||||
|
size 11723
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
Tue Nov 30 19:20:43 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Sort-Versions
|
# spec file for package perl-Sort-Versions
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX 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,51 +16,84 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define modname Sort-Versions
|
Name: perl-Sort-Versions
|
||||||
|
Version: 1.60
|
||||||
Name: perl-%{modname}
|
Release: 0
|
||||||
Version: 1.5
|
%define cpan_name Sort-Versions
|
||||||
Release: 1
|
Summary: a perl 5 module for sorting of revision-like numbers
|
||||||
Summary: A perl 5 module for sorting of revision (and similar) numbers
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
Url: http://search.cpan.org/dist/Sort-Versions/
|
||||||
|
Source: http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
License: GPL/Artistic
|
|
||||||
Group: Development/Libraries/Perl
|
|
||||||
Source: %{modname}-%{version}.tar.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module allows easy sorting (via comparisons) of mixed text and numeric
|
Sort::Versions allows easy sorting of mixed non-numeric and numeric
|
||||||
strings, similar to the complex "version numbers" that many revision control
|
strings, like the 'version numbers' that many shared library systems and
|
||||||
packages and shared library systems use.
|
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.
|
||||||
|
|
||||||
Authors:
|
For an explanation of the algorithm, it's simplest to look at these
|
||||||
--------
|
examples:
|
||||||
Ed Avis <ed@membled.com>
|
|
||||||
Matt Johnson <mwj99@doc.ic.ac.uk>
|
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
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
find . -type f -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
make
|
%{__make} %{?_smp_mflags}
|
||||||
make test
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
%perl_make_install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%files -f %{name}.files
|
||||||
rm -rf %{buildroot}
|
%defattr(-,root,root,755)
|
||||||
|
%doc Changes LICENSE README
|
||||||
%files
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%doc README Changes
|
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%{perl_vendorlib}/Sort
|
|
||||||
%{perl_vendorarch}/auto/Sort
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user