]>
Commit | Line | Data |
---|---|---|
23af8ab1 | 1 | # |
2 | # Conditional build: | |
86089c65 | 3 | %bcond_without tests # do not perform "make test" |
728a53ec | 4 | |
396d55ac | 5 | %define pdir HTTP |
6 | %define pnam BrowserDetect | |
dd96188f | 7 | Summary: HTTP::BrowserDetect - determine the Web browser, version, and platform from an HTTP user agent string |
a685bd27 | 8 | Summary(pl.UTF-8): HTTP::BrowserDetect - moduł określający przeglądarkę WWW, wersję i platformę z nagłówka HTTP User-Agent |
23af8ab1 | 9 | Name: perl-HTTP-BrowserDetect |
bc6f1cb8 | 10 | Version: 1.41 |
97e3ef59 | 11 | Release: 1 |
87a83267 | 12 | # same as perl |
7c315118 | 13 | License: GPL v1+ or Artistic |
28d5ebe0 | 14 | Group: Development/Languages/Perl |
03507df9 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
bc6f1cb8 | 16 | # Source0-md5: b743ea93895196a677bc62dd7a85b455 |
728a53ec | 17 | URL: http://search.cpan.org/dist/HTTP-BrowserDetect/ |
8dbc9275 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
7fb1cbd4 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
bc6f1cb8 | 20 | %if %{with tests} |
21 | BuildRequires: perl-Data-Dump | |
22 | BuildRequires: perl-File-Slurp | |
23 | %endif | |
28d5ebe0 | 24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
6e9fada5 | 28 | The HTTP::BrowserDetect object does a number of tests on an HTTP user |
728a53ec | 29 | agent string. The results of these tests are available via methods of |
6e9fada5 | 30 | the object. |
28d5ebe0 | 31 | |
4e570c01 JR |
32 | %description -l pl.UTF-8 |
33 | Obiekt HTTP::BrowserDetect wykonuje wiele testów na nagłówku HTTP | |
34 | User-Agent. Wyniki tych testów są dostępne poprzez metody obiektu. | |
05cf4833 | 35 | |
28d5ebe0 | 36 | %prep |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
7fb1cbd4 | 40 | %{__perl} Makefile.PL \ |
6c726ae4 | 41 | INSTALLDIRS=vendor |
28d5ebe0 | 42 | %{__make} |
86089c65 | 43 | |
44 | %{?with_tests:%{__make} test} | |
28d5ebe0 | 45 | |
28d5ebe0 | 46 | %install |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
c628b4d7 | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
28d5ebe0 | 51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
05cf4833 | 57 | %doc Changes README |
7fb1cbd4 | 58 | %{perl_vendorlib}/HTTP/BrowserDetect.pm |
28d5ebe0 | 59 | %{_mandir}/man3/* |