OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Math-Gradient?expand=0&rev=1
50 lines
1.4 KiB
RPMSpec
50 lines
1.4 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-Math-Gradient
|
|
Version: 0.04
|
|
Release: 0
|
|
Summary: Perl extension for calculating gradients
|
|
Source: http://search.cpan.org/CPAN/authors/id/C/CR/CRAKRJACK/Math-Gradient-%{version}.tgz
|
|
URL: http://search.cpan.org/dist/Math-Gradient/
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
Requires: perl = %{perl_version}
|
|
BuildRequires: make perl
|
|
|
|
%description
|
|
Math::Gradient is used to calculate smooth transitions between numerical values
|
|
(also known as a "Gradient"). I wrote this module mainly to mix colours, but it
|
|
probably has several other applications. Methods are supported to handle both
|
|
basic and multiple-point gradients, both with scalars and arrays.
|
|
|
|
%prep
|
|
%setup -q -n "Math-Gradient-%{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 Changes README
|
|
%dir %{perl_vendorlib}/Math
|
|
%{perl_vendorlib}/Math/Gradient.pm
|
|
%dir %{perl_vendorarch}/auto/Math
|
|
%{perl_vendorarch}/auto/Math/Gradient
|
|
%doc %{perl_man3dir}/Math::Gradient.%{perl_man3ext}%{ext_man}
|
|
/var/adm/perl-modules/%{name}
|
|
|