2024-01-06 09:31:41 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Pod-POM
|
2024-01-06 09:31:42 +01:00
|
|
|
Version: 2.01
|
|
|
|
Release: 1mamba
|
2024-01-06 09:31:41 +01:00
|
|
|
Summary: Pod-POM module for Perl
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 09:31:42 +01:00
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: https://cpan.metacpan.org/authors/id/N/NE/NEILB/Pod-POM-%{version}.tar.gz
|
2024-01-06 09:31:41 +01:00
|
|
|
License: GPL
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 09:31:42 +01:00
|
|
|
BuildRequires: libperl
|
|
|
|
BuildRequires: perl-devel
|
2024-01-06 09:31:41 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 09:31:42 +01:00
|
|
|
BuildRequires: perl-File-Slurper
|
2024-01-06 09:31:41 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Pod-POM module for Perl.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Pod-POM-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL
|
|
|
|
%make
|
|
|
|
%ifnarch arm
|
|
|
|
%make test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:31:42 +01:00
|
|
|
* Sat Aug 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.01-1mamba
|
|
|
|
- update to 2.01
|
|
|
|
|
2024-01-06 09:31:41 +01:00
|
|
|
* Sun Jul 01 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17-5mamba
|
|
|
|
- specfile and maintainer updated
|
|
|
|
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17-4mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Wed Jun 25 2008 Tiziana Ferro <tiziana.ferro@email.it> 0.17-3mamba
|
|
|
|
- update make macros in specfile
|
|
|
|
- update Vendor, Distribution, mantainer
|
|
|
|
|
|
|
|
* Tue Feb 01 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17-2qilnx
|
|
|
|
- rebuilt to fix a dependency problem with apt
|
|
|
|
|
|
|
|
* Mon Oct 25 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.17-1qilnx
|
|
|
|
- package created by autospec (rebuilt after SRPM loss)
|
|
|
|
|
|
|
|
* Wed Sep 03 2003 Silvan Calarco <silvan.calarco@qinet.it> 0.15-1qilnx
|
|
|
|
- First build
|