forked from pool/perl-Algorithm-Annotate
generated via source service
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Algorithm-Annotate?expand=0&rev=27
This commit is contained in:
parent
c8a6c969b6
commit
ba0db9725b
@ -34,19 +34,8 @@ BuildRequires: perl
|
|||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: perl(Algorithm::Diff) >= 1.15
|
BuildRequires: perl(Algorithm::Diff) >= 1.15
|
||||||
BuildRequires:
|
|
||||||
Requires: perl = %{perl_version}
|
Requires: perl = %{perl_version}
|
||||||
Requires: perl(Algorithm::Diff) >= 1.15
|
Requires: perl(Algorithm::Diff) >= 1.15
|
||||||
Requires:
|
|
||||||
Provides:
|
|
||||||
|
|
||||||
Source98: Algorithm-Annotate-filter-requires.sh
|
|
||||||
%global real_perl_requires %{__perl_requires}
|
|
||||||
%define __perl_requires %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-requires
|
|
||||||
|
|
||||||
Source99: Algorithm-Annotate-filter-provides.sh
|
|
||||||
%global real_perl_provides %{__perl_provides}
|
|
||||||
%define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-provides
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Algorithm::Annotate generates a list that is useful for generating output
|
Algorithm::Annotate generates a list that is useful for generating output
|
||||||
@ -55,12 +44,6 @@ simliar to cvs annotate.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
sed -e 's,@@PERL_REQ@@,%{real_perl_requires},' %{SOURCE98} > %{__perl_requires}
|
|
||||||
chmod +x %{__perl_requires}
|
|
||||||
|
|
||||||
sed -e 's,@@PERL_PROV@@,%{real_perl_provides},' %{SOURCE99} > %{__perl_provides}
|
|
||||||
chmod +x %{__perl_provides}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
@ -78,7 +61,7 @@ chmod +x %{__perl_provides}
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot} %{__perl_requires} %{__perl_provides}
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user