# # Conditional build: # _without_tests - do not perform "make test" %include /usr/lib/rpm/macros.perl %define pdir Image %define pnam Xbm Summary: Image::Xbm - Load, create, manipulate and save xbm image files Summary(pl): Image::Xbm - wczytaj, twórz, modyfikuj i zapisuj obrazy w formacie xbm Name: perl-Image-Xbm Version: 1.08 Release: 3 License: GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6 %if %{?_without_tests:0}%{!?_without_tests:1} BuildRequires: perl-Image-Base >= 1.06 %endif BuildRequires: rpm-perlprov >= 3.0.3-16 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This class module provides basic load, manipulate and save functionality for the xbm file format. It inherits from Image::Base which provides additional manipulation functionality, e.g. new_from_image(). %description -l pl Image::Xbm dostarcza prostej funkconalności do wczytywania, manipulacji i zapisywania obrazów w formacie xbm. Dziedziczy po Image::Base, dostarczającym dodatkowych funkcji manipulacyjnych; np. new_from_image(). %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL %{__make} %{!?_without_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) %{perl_sitelib}/Image/* %{_mandir}/man3/*