Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Sort-Sub
perl-Sort-Sub.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Sort-Sub.spec of Package perl-Sort-Sub
# # spec file for package perl-Sort-Sub # # Copyright (c) 2020 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/ # Name: perl-Sort-Sub Version: 0.120 Release: 0 %define cpan_name Sort-Sub Summary: Collection of sort subroutines License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Complete::Sah) >= 0.005 BuildRequires: perl(Complete::Sequence) >= 0.002 BuildRequires: perl(Complete::Util) >= 0.608 BuildRequires: perl(Log::ger) >= 0.037 BuildRequires: perl(Sort::Naturally) BuildRequires: perl(Test::More) >= 0.98 BuildRequires: perl(parent) Requires: perl(Complete::Sah) >= 0.005 Requires: perl(Complete::Sequence) >= 0.002 Requires: perl(Complete::Util) >= 0.608 Requires: perl(Log::ger) >= 0.037 Requires: perl(Sort::Naturally) Requires: perl(Test::More) >= 0.98 Requires: perl(parent) %{perl_requires} %description Sort::Sub and 'Sort::Sub::*' are a convenient packaging of any kind of subroutine which you can use for 'sort()'. To use Sort::Sub, you import a list of: ["$"]NAME [ "<" [i][r] ">" ] Where NAME is actually searched under 'Sort::Sub::*' namespace. For example: naturally will attempt to load 'Sort::Sub::naturally' module and call its 'gen_sorter' subroutine. You can either request a subroutine name like the above or a variable name (e.g. '$naturally'). After the name, you can add some options, enclosed with angle brackets '<>'. There are some known options, e.g. 'i' (for case-insensitive sort) or 'r' (for reverse sort). Some examples: naturally<i> naturally<r> naturally<ri> %prep %setup -q -n %{cpan_name}-%{version} %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 README %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor