Files
perl-Data-Paginator/perl-Data-Paginator.spec
2025-08-12 18:13:05 +02:00

73 lines
2.3 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package perl-Data-Paginator
#
# Copyright (c) 2024 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/
#
%define cpan_name Data-Paginator
Name: perl-Data-Paginator
Version: 0.80.0
Release: 0
# 0.08 -> normalize -> 0.80.0
%define cpan_version 0.08
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Pagination with Moose
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GP/GPHAT/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(MooseX::Types::Moose)
Requires: perl(Moose)
Requires: perl(MooseX::Types)
Requires: perl(MooseX::Types::Moose)
Provides: perl(Data::Paginator) = %{version}
Provides: perl(Data::Paginator::Types) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This is yet another pagination module. It only exists because none of the
other pager modules are written using Moose. Sometimes there is a Moose
feature MooseX::Storage, in my case that you need. It's a pain when you
can't use it with an existing module. This module aims to be completely
compatible with the venerable Data::Page. In fact, it's a pretty blatant
copy of Data::Page, lifting code from some of it's methods.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes ignore.txt README README.mkdn
%license LICENSE
%changelog