# # Conditional build: %bcond_without tests # do perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Term %define pnam Animation Summary: Term::Animation - ASCII sprite animation framework Summary(pl): Term::Animation - szkielet do animacji duszków ASCII Name: perl-Term-Animation Version: 2.1 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 8bfb8225be9318f95e0b1e1718da9691 BuildRequires: perl-Curses >= 1.06 BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module provides a framework to produce sprite animations using ASCII art. Each ASCII 'sprite' is given one or more frames, and placed into the animation as an 'animation object'. An animation object can have a callback routine that controls the position and frame of the object. %description -l pl Ten moduł dostarcza szkielet do tworzenia animacji duszków przy użyciu ASCII artu. Każdy "duszek" ASCII jest zadany jedną lub większą liczbą ramek i umieszczany w animacji jako "obiekt animacji". Obiekt animacji może mieć wywołanie zwrotne sterujące położeniem i ramką obiektu. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Term/Animation.pm %{perl_vendorlib}/Term/Animation %{_mandir}/man3/*