8
0

Compare commits

...

10 Commits

Author SHA256 Message Date
ebe3c3cc75 Accepting request 356443 from devel:languages:perl
Dochazka dependency

OBS-URL: https://build.opensuse.org/request/show/356443
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Sort-Versions?expand=0&rev=1
2016-02-17 09:23:57 +00:00
Stephan Kulow
4ffc48bf0a Accepting request 348944 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/348944
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=13
2015-12-15 18:14:57 +00:00
Stephan Kulow
129fd2d7f1 Accepting request 304790 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/304790
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=12
2015-04-30 06:58:30 +00:00
Stephan Kulow
359151a790 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
2015-04-15 09:21:55 +00:00
Stephan Kulow
81901989b3 use gz
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=10
2011-11-17 15:48:44 +00:00
Stephan Kulow
20fcbacb52 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=8 2011-11-11 11:22:25 +00:00
Stephan Kulow
b9e00a4dbc always buildrequire perl-macros if not present, move %perl_requires behind buildroot (script commit)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=7
2010-12-03 14:50:09 +00:00
Stephan Kulow
3be22a6875 siwtch to perl_requires macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=6
2010-11-30 19:28:09 +00:00
Stephan Kulow
3257ca1020 - remove /var/adm/perl-modules
- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=5
2010-11-29 18:59:08 +00:00
Stephan Kulow
f0ffeee560 add changes files
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sort-Versions?expand=0&rev=4
2010-11-29 18:05:40 +00:00
5 changed files with 160 additions and 39 deletions

View File

@@ -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

Binary file not shown.

23
cpanspec.yml Normal file
View 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

View 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

View File

@@ -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