]> git.pld-linux.org Git - packages/perl-HTML-SimpleParse.git/blobdiff - perl-HTML-SimpleParse.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-SimpleParse.git] / perl-HTML-SimpleParse.spec
index b24fc71d3b6824633ca76eca77a843cb3a5f5963..b862123e7a2ab637048d0157988306de1760265b 100644 (file)
@@ -1,53 +1,56 @@
-%include       /usr/lib/rpm/macros.perl
-Summary:       HTML-SimpleParse perl module
-Summary(pl):   Modu³ perla HTML-SimpleParse
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define                pdir    HTML
+%define                pnam    SimpleParse
+Summary:       HTML::SimpleParse - a bare-bones HTML parser
+Summary(pl.UTF-8):     HTML::SimpleParse - analizator składniowy "gołego szkieletu" HTML-a
 Name:          perl-HTML-SimpleParse
-Version:       0.08
-Release:       1
-License:       GPL
+Version:       0.12
+Release:       2
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source:                ftp://ftp.perl.org/pub/CPAN/modules/by-module/HTML/HTML-SimpleParse-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-%requires_eq   perl
-Requires:      %{perl_sitearch}
-BuildRoot:     /tmp/%{name}-%{version}-root
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f557818d78932654f9ca8dfeae2566b1
+URL:           http://search.cpan.org/dist/HTML-SimpleParse/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-HTML-SimpleParse module.
+The HTML::SimpleParse module is a simple HTML parser. It is similar in
+concept to HTML::Parser, but it differs from HTML::TreeBuilder in a
+couple of important ways.
 
-%description -l pl
-HTML-SimpleParse jest modu³em pozwalaj±cym analizowaæ pliki HTML.
+%description -l pl.UTF-8
+HTML::SimpleParse jest prostym modułem pozwalającym analizować pliki
+HTML. Jest podobny w idei do HTML::Parser, ale różni się w kilku
+istotnych sprawach od HTML::TreeBuilder.
 
 %prep
-%setup -q -n HTML-SimpleParse-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
-make
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/HTML/SimpleParse
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {Changes,README}.gz
-
-%{perl_sitelib}/HTML/SimpleParse.pm
-%{perl_sitearch}/auto/HTML/SimpleParse
-
+%doc Changes README
+%{perl_vendorlib}/HTML/SimpleParse.pm
 %{_mandir}/man3/*
This page took 0.117154 seconds and 4 git commands to generate.