perl-Log-Log4perl/perl-Log-Log4perl.spec

90 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Log-Log4perl
Version: 1.55
Release: 1mamba
Summary: Log::Log4perl - Log4j implementation for Perl
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/Log/Log-Log4perl-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-DBI
BuildRequires: perl-Log-Dispatch
BuildRequires: perl-Log-Dispatch-FileRotate
BuildRequires: perl-XML-DOM
BuildRequires: perl-devel
BuildRequires: rrdtool-perl
## AUTOBUILDREQ-END
Requires: perl >= %perl_major_ver
%description
Log::Log4perl - Log4j implementation for Perl.
%prep
%setup -q -n Log-Log4perl-%{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
%changelog
* Fri Jun 03 2022 Automatic Build System <autodist@mambasoft.it> 1.55-1mamba
- automatic version update by autodist
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 1.54-1mamba
- automatic version update by autodist
* Thu Oct 26 2017 Automatic Build System <autodist@mambasoft.it> 1.49-1mamba
- automatic update by autodist
* Sun Aug 14 2016 Automatic Build System <autodist@mambasoft.it> 1.47-1mamba
- automatic update by autodist
* Wed Nov 05 2014 Automatic Build System <autodist@mambasoft.it> 1.46-1mamba
- automatic update by autodist
* Sat May 24 2014 Automatic Build System <autodist@mambasoft.it> 1.44-1mamba
- automatic update by autodist
* Sun Jul 28 2013 Automatic Build System <autodist@mambasoft.it> 1.42-1mamba
- automatic update by autodist
* Fri May 03 2013 Automatic Build System <autodist@mambasoft.it> 1.41-1mamba
- automatic version update by autodist
* Tue Jan 08 2013 Automatic Build System <autodist@mambasoft.it> 1.40-1mamba
- automatic version update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.39-1mamba
- package created by autospec