67 lines
1.9 KiB
RPMSpec
67 lines
1.9 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-GD-Graph
|
|
Version: 1.4308
|
|
Release: 2mamba
|
|
Summary: GD::Graph - This is GDGraph, a package to generate charts
|
|
Group: Development/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
|
URL: https://www.cpan.org/
|
|
Source: http://search.cpan.org/CPAN/authors/id/B/BW/BWARFIELD/GDGraph-%{version}.tar.gz
|
|
License: GPL
|
|
Requires: perl >= %perl_major_ver
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: perl-GD
|
|
BuildRequires: perl-GD-Text
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
This is GDGraph, a package to generate charts
|
|
|
|
%prep
|
|
%setup -q -n GDGraph-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL
|
|
%make
|
|
%make test
|
|
|
|
%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
|
|
* Tue Oct 04 2022 Automatic Build System <autodist@mambasoft.it> 1.4308-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4308-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.44-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Jun 25 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.44-1mamba
|
|
- update to 1.44
|
|
|
|
* Wed Oct 27 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.43-1qilnx
|
|
- package created by autospec
|