Группа :: Разработка/Прочее
Пакет: perl-HTML-Selector-XPath
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(CPAN.pm) perl(JSON.pm) perl(LWP/Simple.pm) perl(Module/Build.pm) perl(Net/FTP.pm) perl(Parse/CPAN/Meta.pm) perl(YAML/Tiny.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-HTML-Selector-XPath
Version: 0.28
Release: alt1
Summary: CSS Selector to XPath compiler
License: GPL+ or Artistic
URL: https://metacpan.org/release/HTML-Selector-XPath
Source0: http://www.cpan.org/authors/id/C/CO/CORION/HTML-Selector-XPath-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-devel >= 5.8.1
BuildRequires: rpm-build-perl
BuildRequires: %{__perl}
BuildRequires: perl(Carp.pm)
BuildRequires: perl(Exporter.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(Test/Base.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(inc/Module/Install.pm)
# for improved tests
BuildRequires: perl(Encode.pm)
BuildRequires: perl(HTML/TreeBuilder/XPath.pm)
BuildRequires: perl(Test/Pod.pm)
Source44: import.info
%description
HTML::Selector::XPath is a utility function to compile CSS2 selector to the
equivalent XPath expression.
%prep
%setup -q -n HTML-Selector-XPath-%{version}
rm -r inc
sed -i -e '/^inc\/.*$/d' MANIFEST
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
%{__make} test
%files
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Полный changelog можно просмотреть здесь
Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(CPAN.pm) perl(JSON.pm) perl(LWP/Simple.pm) perl(Module/Build.pm) perl(Net/FTP.pm) perl(Parse/CPAN/Meta.pm) perl(YAML/Tiny.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-HTML-Selector-XPath
Version: 0.28
Release: alt1
Summary: CSS Selector to XPath compiler
License: GPL+ or Artistic
URL: https://metacpan.org/release/HTML-Selector-XPath
Source0: http://www.cpan.org/authors/id/C/CO/CORION/HTML-Selector-XPath-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-devel >= 5.8.1
BuildRequires: rpm-build-perl
BuildRequires: %{__perl}
BuildRequires: perl(Carp.pm)
BuildRequires: perl(Exporter.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(Test/Base.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(inc/Module/Install.pm)
# for improved tests
BuildRequires: perl(Encode.pm)
BuildRequires: perl(HTML/TreeBuilder/XPath.pm)
BuildRequires: perl(Test/Pod.pm)
Source44: import.info
%description
HTML::Selector::XPath is a utility function to compile CSS2 selector to the
equivalent XPath expression.
%prep
%setup -q -n HTML-Selector-XPath-%{version}
rm -r inc
sed -i -e '/^inc\/.*$/d' MANIFEST
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
%{__make} test
%files
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Полный changelog можно просмотреть здесь