]> git.pld-linux.org Git - packages/perl-HTTP-BrowserDetect.git/blame - perl-HTTP-BrowserDetect.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTTP-BrowserDetect.git] / perl-HTTP-BrowserDetect.spec
CommitLineData
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 7Summary: HTTP::BrowserDetect - determine the Web browser, version, and platform from an HTTP user agent string
a685bd27 8Summary(pl.UTF-8): HTTP::BrowserDetect - moduł określający przeglądarkę WWW, wersję i platformę z nagłówka HTTP User-Agent
23af8ab1 9Name: perl-HTTP-BrowserDetect
bc6f1cb8 10Version: 1.41
97e3ef59 11Release: 1
87a83267 12# same as perl
7c315118 13License: GPL v1+ or Artistic
28d5ebe0 14Group: Development/Languages/Perl
03507df9 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
bc6f1cb8 16# Source0-md5: b743ea93895196a677bc62dd7a85b455
728a53ec 17URL: http://search.cpan.org/dist/HTTP-BrowserDetect/
8dbc9275 18BuildRequires: perl-devel >= 1:5.8.0
7fb1cbd4 19BuildRequires: rpm-perlprov >= 4.1-13
bc6f1cb8 20%if %{with tests}
21BuildRequires: perl-Data-Dump
22BuildRequires: perl-File-Slurp
23%endif
28d5ebe0 24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
6e9fada5 28The HTTP::BrowserDetect object does a number of tests on an HTTP user
728a53ec 29agent string. The results of these tests are available via methods of
6e9fada5 30the object.
28d5ebe0 31
4e570c01
JR
32%description -l pl.UTF-8
33Obiekt HTTP::BrowserDetect wykonuje wiele testów na nagłówku HTTP
34User-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
47rm -rf $RPM_BUILD_ROOT
48
c628b4d7 49%{__make} install \
50 DESTDIR=$RPM_BUILD_ROOT
28d5ebe0 51
52%clean
53rm -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/*
This page took 0.559515 seconds and 5 git commands to generate.