94 lines
2.9 KiB
RPMSpec
94 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-DBIx-Class-Candy
|
|
#
|
|
# 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 DBIx-Class-Candy
|
|
Name: perl-DBIx-Class-Candy
|
|
Version: 0.5.4
|
|
Release: 0
|
|
# 0.005004 -> normalize -> 0.5.4
|
|
%define cpan_version 0.005004
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Sugar for your favorite ORM, DBIx::Class
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/W/WE/WESM/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(DBIx::Class) >= 0.08123
|
|
BuildRequires: perl(Lingua::EN::Inflect)
|
|
BuildRequires: perl(MRO::Compat) >= 0.11
|
|
BuildRequires: perl(Sub::Exporter) >= 0.982
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl(Test::Fatal)
|
|
BuildRequires: perl(Test::More) >= 0.94
|
|
BuildRequires: perl(namespace::clean) >= 0.18
|
|
Requires: perl(DBIx::Class) >= 0.08123
|
|
Requires: perl(Lingua::EN::Inflect)
|
|
Requires: perl(MRO::Compat) >= 0.11
|
|
Requires: perl(Sub::Exporter) >= 0.982
|
|
Requires: perl(namespace::clean) >= 0.18
|
|
Provides: perl(DBIx::Class::Candy) = %{version}
|
|
Provides: perl(DBIx::Class::Candy::Exports) = %{version}
|
|
Provides: perl(DBIx::Class::Candy::ResultSet) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
'DBIx::Class::Candy' is a simple sugar layer for definition of DBIx::Class
|
|
results. Note that it may later be expanded to add sugar for more
|
|
'DBIx::Class' related things. By default 'DBIx::Class::Candy':
|
|
|
|
* turns on strict and warnings
|
|
|
|
* sets your parent class
|
|
|
|
* exports a bunch of the package methods that you normally use to define your
|
|
DBIx::Class results
|
|
|
|
* makes a few aliases to make some of the original method names shorter or
|
|
more clear
|
|
|
|
* defines very few new subroutines that transform the arguments passed to
|
|
them
|
|
|
|
It assumes a DBIx::Class::Core-like API, but you can tailor it to suit your
|
|
needs.
|
|
|
|
%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 README
|
|
%license LICENSE
|
|
|
|
%changelog
|