forked from pool/perl-HTML-TreeBuilder-XPath
make it work, make it specific for opensuse
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-TreeBuilder-XPath?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
86d4538996
commit
149e1612e3
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#@@PERL_PROV@@ "$@" | sed -e '/HTML::Element/d'
|
/usr/lib/rpm/find-provides "$@" | sed -e '/HTML::Element/d'
|
||||||
|
@@ -36,8 +36,7 @@ Requires: perl(List::Util)
|
|||||||
Requires: perl(XML::XPathEngine) >= 0.12
|
Requires: perl(XML::XPathEngine) >= 0.12
|
||||||
|
|
||||||
Source99: HTML-TreeBuilder-XPath-filter-provides.sh
|
Source99: HTML-TreeBuilder-XPath-filter-provides.sh
|
||||||
%global real_provides %{__find_provides}
|
%define __find_provides %{SOURCE99}
|
||||||
#%define __find_provides %{_builddir}/filter-provides
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
@@ -48,8 +47,6 @@ easy to query a document.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
sed -e 's,@@PERL_PROV@@,%{real_provides},' %{SOURCE99} > %{_builddir}/filter-provides
|
|
||||||
chmod +x %{__find_provides}
|
chmod +x %{__find_provides}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@@ -65,7 +62,7 @@ chmod +x %{__find_provides}
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot} %{__perl_provides}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
|
Reference in New Issue
Block a user