# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Data %define pnam Hierarchy Summary: Data::Hierarchy - handle data in a hierarchical structure Summary(pl.UTF-8): Data::Hierarchy - obsługa danych w strukturze hierarchicznej Name: perl-Data-Hierarchy Version: 0.34 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: f4ac04c7f676cbfff9bbd1be118d4c66 URL: http://search.cpan.org/dist/Data-Hierarchy/ BuildRequires: perl-Clone BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-Test-Exception %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Data::Hierarchy provides a simple interface for manipulating inheritable data attached to a hierarchical environment (like filesystem). %description -l pl.UTF-8 Moduł Data::Hierarchy udostępnia prosty interfejs do manipulowania dziedziczonymi danymi umieszczonymi w środowisku hierarchicznym (takim jak system plików). %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 CHANGE* %{perl_vendorlib}/Data/*.pm %{_mandir}/man3/*