diff --git a/README.md b/README.md index ca01e69..0bc177b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Chart +A perl library that generates on-the-fly charts. + diff --git a/perl-Chart.spec b/perl-Chart.spec new file mode 100644 index 0000000..d12e674 --- /dev/null +++ b/perl-Chart.spec @@ -0,0 +1,95 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Chart +Version: 2.4.6 +Release: 1mamba +Summary: Chart - A perl library that generates on-the-fly charts +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/Chart/Chart-%{version}.tar.gz +License: GPL +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRequires: libgd-devel +BuildRequires: perl-GD +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A perl library that generates on-the-fly charts. + +%prep +%setup -q -n Chart-%{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 +* Thu Oct 11 2012 Automatic Build System 2.4.6-1mamba +- automatic version update by autodist + +* Wed Aug 08 2012 Automatic Build System 2.4.5-1mamba +- automatic version update by autodist + +* Fri Dec 16 2011 Automatic Build System 2.4.3-1mamba +- automatic version update by autodist + +* Wed Mar 16 2011 Automatic Build System 2.4.2-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 2.4.1-2mamba +- automatic rebuild by autodist + +* Mon Nov 26 2007 Aleph0 2.4.1-1mamba +- update to 2.4.1 + +* Fri Oct 22 2004 Alessandro Ramazzina 2.3-1qilnx +- package created by autospec (rebuilt after SRPM loss) + +%changelog +* Thu Oct 11 2012 Automatic Build System 2.4.6-1mamba +- automatic version update by autodist + +* Wed Aug 08 2012 Automatic Build System 2.4.5-1mamba +- automatic version update by autodist + +* Fri Dec 16 2011 Automatic Build System 2.4.3-1mamba +- automatic version update by autodist + +* Wed Mar 16 2011 Automatic Build System 2.4.2-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 2.4.1-2mamba +- automatic rebuild by autodist + +* Mon Nov 26 2007 Aleph0 2.4.1-1mamba +- update to 2.4.1 + +* Tue Sep 09 2003 Silvan Calarco 2.2-1qilnx +- First build \ No newline at end of file