package created by autospec [release 2.0604-1mamba;Tue Nov 13 2012]

This commit is contained in:
Silvan Calarco 2024-01-06 09:22:16 +01:00
parent e9f01a74bf
commit 75e8860f3d
2 changed files with 80 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# perl-Moose
Moose - A postmodern object system for Perl 5.

78
perl-Moose.spec Normal file
View File

@ -0,0 +1,78 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Moose
Version: 2.0604
Release: 1mamba
Summary: Moose - A postmodern object system for Perl 5
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Moose-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: perl-Class-Load
BuildRequires: perl-Data-OptList
BuildRequires: perl-devel
BuildRequires: perl-Devel-GlobalDestruction
BuildRequires: perl-Eval-Closure
BuildRequires: perl-List-MoreUtils
BuildRequires: perl-MRO-Compat
BuildRequires: perl-Package-DeprecationManager
BuildRequires: perl-Package-Stash
BuildRequires: perl-Params-Util
BuildRequires: perl-Sub-Exporter
BuildRequires: perl-Sub-Name
BuildRequires: perl-Try-Tiny
## AUTOBUILDREQ-END
BuildRequires: perl-Task-Weaken
BuildRequires: perl-Class-Load-XS
BuildRequires: perl-List-MoreUtils
BuildRequires: perl-Dist-Checkconflicts
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
# The following are provided but not detected because of two lines package definition
Provides: perl(Moose::Conflicts)
Provides: perl(Moose::Error::Util)
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Moose - A postmodern object system for Perl 5.
%prep
%setup -q -n Moose-%{version}
%build
%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm -f $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f .packlist
%defattr(-,root,root)
%doc LICENSE
## note: eventually add the remaining documents (if any)
# %doc README TODO
%changelog
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0604-1mamba
- package created by autospec