%define pkg_name Project-Gantt %define pkg_version 1.03 %define rpm_pkg_version 1.03 %define rpm_pkg_release 1.n0i.1 Summary: Gantt charts for project management Name: perl-%{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _) %endif Group: Development/Libraries License: GPL or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/A/AW/AWESTHOLM/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) Requires: perl(Class::Date) >= 1.1.7 Requires: perl(Image::Magick) >= 6.0.1 %{!?_without_test:BuildRequires: perl(Class::Date) >= 1.1.7} %{!?_without_test:BuildRequires: perl(Image::Magick) >= 6.0.1} %description Project::Gantt provides the ability to easily draw Gantt charts for managing the schedules of projects and many other things. Gantt charts provide a simple, easy to comprehend visual representation of a schedule. %prep %setup -n Gantt find . -type f | xargs -r chmod 0644 %build PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name .packlist -delete || : find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -delete || : find $RPM_BUILD_ROOT -depth -type d -a -empty -delete || : %{__chmod} -R u+w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man*/* %changelog * Sat Jul 30 2005 Marius Feraru 1.03-1.n0i.1 - version 1.03 - spec file (re)created using N0i::CPAN::RPMizer/0.1 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:1.01-1.n0i.2 - automatic rebuild (perl 5.8.6) * Thu Jan 27 2005 Marius Feraru 0:1.01-1.n0i.1 - version 1.01 - spec file (re?)created using N0i::CPAN::RPMizer/2004120601