]> git.pld-linux.org Git - packages/perl-HTTP-BrowserDetect.git/blob - perl-HTTP-BrowserDetect.spec
41021c2be9ea3a1124b5231abd50b1180646234b
[packages/perl-HTTP-BrowserDetect.git] / perl-HTTP-BrowserDetect.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    HTTP
7 %define         pnam    BrowserDetect
8 Summary:        HTTP::BrowserDetect - determine the Web browser, version, and platform from an HTTP user agent string
9 Summary(pl.UTF-8):      HTTP::BrowserDetect - moduł określający przeglądarkę WWW, wersję i platformę z nagłówka HTTP User-Agent
10 Name:           perl-HTTP-BrowserDetect
11 Version:        0.98
12 Release:        2
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  ac6837e47e25a13e1c7b927f2c6d9adc
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 The HTTP::BrowserDetect object does a number of tests on an HTTP user
25 agent string.  The results of these tests are available via methods of
26 the object.
27
28 %description -l pl.UTF-8
29 Obiekt HTTP::BrowserDetect wykonuje wiele testów na nagłówku HTTP
30 User-Agent. Wyniki tych testów są dostępne poprzez metody obiektu.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc Changes README
54 %{perl_vendorlib}/HTTP/BrowserDetect.pm
55 %{_mandir}/man3/*
This page took 0.041319 seconds and 3 git commands to generate.