From 012b8f0affc6713eed72c147f1f199a8e2283abb Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 5 Oct 2024 19:42:47 +0200 Subject: [PATCH] package created using the webbuild interface [release 0.38-1mamba;Fri Oct 04 2024] --- README.md | 2 ++ perl-Module-Compile.spec | 56 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 perl-Module-Compile.spec diff --git a/README.md b/README.md index 7ae74f4..303133e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Module-Compile +Module::Compile - Perl Module Compilation. + diff --git a/perl-Module-Compile.spec b/perl-Module-Compile.spec new file mode 100644 index 0000000..0d09d2d --- /dev/null +++ b/perl-Module-Compile.spec @@ -0,0 +1,56 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Module-Compile +Version: 0.38 +Release: 1mamba +Summary: Module::Compile - Perl Module Compilation +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.cpan.org +Source: https://cpan.metacpan.org/authors/id/I/IN/INGY/Module-Compile-%{version}.tar.gz +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver + +%description +Module::Compile - Perl Module Compilation. + +%prep +%setup -q -n Module-Compile-%{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 + +#find %{buildroot} -name *.so -exec chmod u+w {} \; + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f .packlist +%defattr(-,root,root) +%doc LICENSE + +%changelog +* Fri Oct 04 2024 Silvan Calarco 0.38-1mamba +- package created using the webbuild interface