perl-Chart/perl-Chart.spec

93 lines
2.9 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Chart
Version: 2.403.9
Release: 1mamba
Summary: Chart - A perl library that generates on-the-fly charts
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/authors/id/L/LI/LICHTKIND/Chart-v%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-GD
BuildRequires: perl-Graphics-Toolkit-Color
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: libgd-devel
BuildRequires: perl-GD
Requires: perl >= %perl_major_ver
BuildArch: noarch
%description
A perl library that generates on-the-fly charts.
%prep
%setup -q -n Chart-v%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor \
"-options=JPEG,FT,XPM" "-lib_gd_path=%{_libdir}"
%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 $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}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Fri Feb 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.403.9-1mamba
- update to 2.403.9
* Sat Apr 02 2022 Automatic Build System <autodist@mambasoft.it> 2.400.10-1mamba
- automatic version update by autodist
* Fri Apr 01 2022 Automatic Build System <autodist@mambasoft.it> 2.400.5-1mamba
- automatic version update by autodist
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.10-1mamba
- update to 2.4.10
* Thu Oct 11 2012 Automatic Build System <autodist@mambasoft.it> 2.4.6-1mamba
- automatic version update by autodist
* Wed Aug 08 2012 Automatic Build System <autodist@mambasoft.it> 2.4.5-1mamba
- automatic version update by autodist
* Fri Dec 16 2011 Automatic Build System <autodist@mambasoft.it> 2.4.3-1mamba
- automatic version update by autodist
* Wed Mar 16 2011 Automatic Build System <autodist@mambasoft.it> 2.4.2-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.1-2mamba
- automatic rebuild by autodist
* Mon Nov 26 2007 Aleph0 <aleph0@openmamba.org> 2.4.1-1mamba
- update to 2.4.1
* Fri Oct 22 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.3-1qilnx
- package created by autospec (rebuilt after SRPM loss)
* Tue Sep 09 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2-1qilnx
- First build