forked from pool/perl-Sort-Versions
Compare commits
10 Commits
54f3ee015d
...
ebe3c3cc75
Author | SHA256 | Date | |
---|---|---|---|
ebe3c3cc75 | |||
|
4ffc48bf0a | ||
|
129fd2d7f1 | ||
|
359151a790 | ||
|
81901989b3 | ||
|
20fcbacb52 | ||
|
b9e00a4dbc | ||
|
3be22a6875 | ||
|
3257ca1020 | ||
|
f0ffeee560 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d9a0c6c83f1a553008cb12d41165af98ab7da178f556c5790781c1b9325b51d6
|
|
||||||
size 4443
|
|
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
|
||||||
|
|
@@ -1,50 +1,100 @@
|
|||||||
%define modname Sort-Versions
|
#
|
||||||
Name: perl-%{modname}
|
# spec file for package perl-Sort-Versions
|
||||||
Version: 1.5
|
#
|
||||||
Release: 1
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
Summary: A perl 5 module for sorting of revision (and similar) numbers
|
#
|
||||||
Requires: perl = %{perl_version}
|
# All modifications and additions to the file contributed by third parties
|
||||||
BuildRequires: perl
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
License: GPL/Artistic
|
# 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
|
Group: Development/Libraries/Perl
|
||||||
Source: %{modname}-%{version}.tar.bz2
|
Url: http://search.cpan.org/dist/Sort-Versions/
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
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
|
%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 ! -name \*.pl -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
|
|
||||||
/var/adm/perl-modules/%{name}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
* Tue Sep 12 2006 - James Oakley <jfunk@funktronics.ca> - 1.5-1
|
|
||||||
- Initial release
|
|
||||||
|
Reference in New Issue
Block a user