perl-Exporter-Tiny/perl-Exporter-Tiny.spec

97 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Exporter-Tiny
Version: 1.006002
Release: 2mamba
Summary: Exporter::Tiny - an exporter with the features of Sub::Exporter but only core dependencies
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Exporter-Tiny-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
Requires: perl >= %perl_major_ver
%description
Exporter::Tiny - an exporter with the features of Sub::Exporter but only core dependencies.
%prep
%setup -q -n Exporter-Tiny-%{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 CREDITS LICENSE
## note: eventually add the remaining documents (if any)
# %doc README
%changelog
* Mon Apr 17 2023 Sdk Build System <sdk@mambasoft.it> 1.006002-2mamba
- rebuilt with perl 5.36.0
* Sat Apr 01 2023 Automatic Build System <autodist@mambasoft.it> 1.006002-1mamba
- automatic version update by autodist
* Sat Mar 25 2023 Automatic Build System <autodist@mambasoft.it> 1.006001-1mamba
- automatic version update by autodist
* Tue Nov 22 2022 Automatic Build System <autodist@mambasoft.it> 1.006000-1mamba
- automatic version update by autodist
* Sun Oct 16 2022 Automatic Build System <autodist@mambasoft.it> 1.004004-1mamba
- automatic version update by autodist
* Sat Oct 01 2022 Automatic Build System <autodist@mambasoft.it> 1.004003-1mamba
- automatic version update by autodist
* Sat Sep 17 2022 Automatic Build System <autodist@mambasoft.it> 1.004002-1mamba
- automatic version update by autodist
* Sun Sep 11 2022 Automatic Build System <autodist@mambasoft.it> 1.004001-1mamba
- automatic version update by autodist
* Sat Aug 27 2022 Automatic Build System <autodist@mambasoft.it> 1.004000-1mamba
- automatic version update by autodist
* Sat Feb 20 2021 Automatic Build System <autodist@mambasoft.it> 1.002002-1mamba
- automatic version update by autodist
* Sat Apr 18 2020 Automatic Build System <autodist@mambasoft.it> 1.002001-1mamba
- automatic update by autodist
* Sun Jun 11 2017 Automatic Build System <autodist@mambasoft.it> 1.000000-1mamba
- automatic update by autodist
* Wed Dec 03 2014 Automatic Build System <autodist@mambasoft.it> 0.043_01-1mamba
- automatic update by autodist
* Mon Nov 03 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.042-1mamba
- package created using the webbuild interface