63 lines
1.9 KiB
RPMSpec
63 lines
1.9 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
Name: perl-Algorithm-Dependency
|
||
|
Version: 1.110
|
||
|
Release: 0
|
||
|
Summary: Base class for implementing various dependency trees
|
||
|
Source: ftp://ftp.cpan.org/pub/CPAN/authors/id/A/AD/ADAMK/Algorithm-Dependency-%{version}.tar.gz
|
||
|
URL: http://search.cpan.org/dist/Algorithm-Dependency
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
%{perl_requires}
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl(Test::More) >= 0.47
|
||
|
BuildRequires: perl(File::Spec) >= 0.80
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
||
|
BuildRequires: perl(Test::ClassAPI) >= 0.6
|
||
|
BuildRequires: perl(List::Util) >= 1.11
|
||
|
BuildRequires: perl(Params::Util) >= 0.31
|
||
|
Requires: perl(List::Util) >= 1.11
|
||
|
Requires: perl(Params::Util) >= 0.31
|
||
|
%if 0%{?suse_version} >= 1120
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
%description
|
||
|
Algorithm::Dependency is a framework for creating simple read-only
|
||
|
dependency heirachies, where you have a set of items that rely on other
|
||
|
items in the set, and require actions on them as well.
|
||
|
Despite the most visible of these being software installation systems like
|
||
|
the CPAN installer, or debian apt-get, they are useful in other
|
||
|
situations. This module intentionally uses implementation-neutral words,
|
||
|
to avoid confusion.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "Algorithm-Dependency-%{version}"
|
||
|
%__sed -i '/^auto_install/d' Makefile.PL
|
||
|
|
||
|
%build
|
||
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||
|
%__make %{?jobs:-j%{jobs}}
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%check
|
||
|
%__make test
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc README LICENSE Changes
|
||
|
%dir %{perl_vendorlib}/Algorithm
|
||
|
%{perl_vendorlib}/Algorithm/Dependency
|
||
|
%{perl_vendorlib}/Algorithm/Dependency.pm
|
||
|
%doc %{perl_man3dir}/Algorithm::Dependency.%{perl_man3ext}%{ext_man}
|
||
|
%doc %{perl_man3dir}/Algorithm::Dependency::*.%{perl_man3ext}%{ext_man}
|
||
|
|