forked from pool/perl-Dist-CheckConflicts
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
1c6e8756fe | |||
d010b3e7fa |
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 20 11:15:40 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 6 13:13:01 UTC 2015 - coolo@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Dist-CheckConflicts
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,27 +12,29 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Dist-CheckConflicts
|
||||
Version: 0.11
|
||||
Release: 0
|
||||
%define cpan_name Dist-CheckConflicts
|
||||
Summary: declare version conflicts for your dist
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Dist-CheckConflicts/
|
||||
Source: http://www.cpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{version}.tar.gz
|
||||
Name: perl-Dist-CheckConflicts
|
||||
Version: 0.110.0
|
||||
Release: 0
|
||||
# 0.11 -> normalize -> 0.110.0
|
||||
%define cpan_version 0.11
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Declare version conflicts for your dist
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Module::Runtime) >= 0.009
|
||||
BuildRequires: perl(Module::Runtime) >= 0.9
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
Requires: perl(Module::Runtime) >= 0.009
|
||||
Requires: perl(Module::Runtime) >= 0.9
|
||||
Provides: perl(Dist::CheckConflicts) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -58,22 +60,22 @@ these keys being valid:
|
||||
|
||||
* -conflicts
|
||||
|
||||
A hashref of conflict specifications, where keys are module names, and
|
||||
values are the last broken version - any version greater than the
|
||||
specified version should work.
|
||||
A hashref of conflict specifications, where keys are module names, and
|
||||
values are the last broken version - any version greater than the specified
|
||||
version should work.
|
||||
|
||||
* -also
|
||||
|
||||
Additional modules to get conflicts from (potentially recursively). This
|
||||
should generally be a list of modules which use Dist::CheckConflicts,
|
||||
which correspond to the dists that your dist depends on. (In an ideal
|
||||
world, this would be intuited directly from your dependency list, but the
|
||||
dependency list isn't available outside of build time).
|
||||
Additional modules to get conflicts from (potentially recursively). This
|
||||
should generally be a list of modules which use Dist::CheckConflicts, which
|
||||
correspond to the dists that your dist depends on. (In an ideal world, this
|
||||
would be intuited directly from your dependency list, but the dependency
|
||||
list isn't available outside of build time).
|
||||
|
||||
* -dist
|
||||
|
||||
The name of the distribution, to make the error message from
|
||||
check_conflicts more user-friendly.
|
||||
The name of the distribution, to make the error message from
|
||||
check_conflicts more user-friendly.
|
||||
|
||||
The methods listed below are exported by this module into the module that
|
||||
uses it, so you should call these methods on your module, not
|
||||
@@ -91,14 +93,14 @@ runtime if conflicting modules are detected (regardless of whether they are
|
||||
loaded before or afterwards).
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -106,7 +108,7 @@ loaded before or afterwards).
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes LICENSE README
|
||||
%doc Changes README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user