# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir HTTP %define pnam BrowserDetect Summary: HTTP::BrowserDetect - determine the Web browser, version, and platform from an HTTP user agent string Summary(pl): HTTP::BrowserDetect - moduł określający przeglądarkę WWW, wersję i platformę z nagłówka HTTP User-Agent Name: perl-HTTP-BrowserDetect Version: 0.97 Release: 2 License: GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: bd0d645e54f55077f27db3de579f036b BuildRequires: perl-devel >= 5.6.1 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The HTTP::BrowserDetect object does a number of tests on an HTTP user agent string. The results of these tests are available via methods of the object. %description -l pl Obiekt HTTP::BrowserDetect wykonuje wiele testów na nagłówku HTTP User-Agent. Wyniki tych testów są dostępne poprzez metody obiektu. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__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) %doc Changes README %{perl_vendorlib}/HTTP/BrowserDetect.pm %{_mandir}/man3/*