# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir MasonX %define pnam Request-HTMLTemplate Summary: MasonX::Request::HTMLTemplate - add templates to the Mason Request object Summary(pl.UTF-8): MasonX::Request::HTMLTemplate - dodawanie szablonów do obiektu Mason Request Name: perl-MasonX-Request-HTMLTemplate Version: 0.06 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/MasonX/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 9118cba82276f13e45885576b0a86d84 URL: http://search.cpan.org/dist/MasonX-Request-HTMLTemplate/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-Apache-Session BuildRequires: perl-HTML-Mason BuildRequires: perl-HTML-Template-Extension %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module tries to add two peculiar functionalities to Mason: - easy use of templates; - easy building of localized web site; to produce a framework with all power of Mason but by separating completely the script language from the graphical interface language. %description -l pl.UTF-8 Ten moduł próbuje dodać dwie szczególne funkcjonalności do Masona: - łatwe używanie szablonów; - łatwe budowanie zlokalizowanych serwisów WWW aby stworzyć szkielet z całą siłą Masona, ale oddzielając całkowicie język skryptowy od języka interfejsu graficznego. %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}/MasonX/*/*.pm %{perl_vendorlib}/MasonX/Request/HTMLTemplate %{_mandir}/man3/*