OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MRO-Compat?expand=0&rev=1
This commit is contained in:
commit
5c9fb20796
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
MRO-Compat-0.09.tar.gz
Normal file
3
MRO-Compat-0.09.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:88ee4273696067ac674cd8dfe4cde9b576f4e98d4dd9ed27e9eaaad2fa3a839a
|
||||
size 25066
|
69
perl-MRO-Compat.spec
Normal file
69
perl-MRO-Compat.spec
Normal file
@ -0,0 +1,69 @@
|
||||
%define cpan_name MRO-Compat
|
||||
|
||||
Name: perl-%cpan_name
|
||||
Version: 0.09
|
||||
Release: 1
|
||||
Provides: %cpan_name
|
||||
Requires: perl = %{perl_version} perl-Class-C3
|
||||
Group: Development/Libraries/Perl
|
||||
License: Artistic
|
||||
URL: http://search.cpan.org/dist/MRO-Compat/
|
||||
Summary: mro::* interface compatibility for Perls < 5.9.5
|
||||
Source: %cpan_name-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl-Class-C3
|
||||
|
||||
%description
|
||||
The "mro" namespace provides several utilities for dealing with method
|
||||
resolution order and method caching in general in Perl 5.9.5 and higher.
|
||||
This module provides those interfaces for earlier versions of Perl (back to
|
||||
5.6.0 anyways).
|
||||
|
||||
It is a harmless no-op to use this module on 5.9.5+. That is to say, code
|
||||
which properly uses MRO::Compat will work unmodified on both older Perls and
|
||||
5.9.5+.
|
||||
|
||||
If you're writing a piece of software that would like to use the parts of
|
||||
5.9.5+'s mro:: interfaces that are supported here, and you want compatibility
|
||||
with older Perls, this is the module for you.
|
||||
|
||||
Some parts of this code will work better and/or faster with Class::C3::XS
|
||||
installed (which is an optional prereq of Class::C3, which is in turn a prereq
|
||||
of this package), but it's not a requirement.
|
||||
|
||||
This module never exports any functions. All calls must be fully qualified
|
||||
with the mro:: prefix.
|
||||
|
||||
The interface documentation here serves only as a quick reference of what the
|
||||
function basically does, and what differences between MRO::Compat and 5.9.5+
|
||||
One should look out for. The main docs in 5.9.5's mro are the real interface
|
||||
docs, and contain a lot of other useful information.
|
||||
|
||||
%prep
|
||||
%setup -q -n %cpan_name-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
make test
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_process_packlist
|
||||
|
||||
%clean
|
||||
# clean up the hard disc after build
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/MRO
|
||||
%{perl_vendorarch}/auto/MRO
|
||||
/var/adm/perl-modules/%{name}
|
||||
%doc ChangeLog MANIFEST README
|
||||
|
||||
%changelog -n %{name}
|
||||
* Sun Oct 26 2008 - gerrit.beine@gmx.de
|
||||
- first release 0.09
|
||||
|
Loading…
x
Reference in New Issue
Block a user