summaryrefslogtreecommitdiff
path: root/perl-Math-Brent.spec
blob: d28379c323935482d6700e8278aad272f8e22efb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%include	/usr/lib/rpm/macros.perl
%define		pdir	Math
%define		pnam	Brent
Summary:	Math::Brent - single dimensional function minimisation
Summary(pl):	Math::Brent - jednowymiarowa minimalizacja funkcji
Name:		perl-Math-Brent
Version:	0.01
Release:	10
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5:	c3cf5b1a0715846387f77f8e3983df5f
Patch0:		%{name}-man.patch
BuildRequires:	rpm-perlprov >= 4.1-13
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	perl-Math-Fortran
BuildRequires:	perl-Math-VecStat
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Math::Brent Perl module is an implementation of Brent's method for
One-Dimensional minimisation of a function without using derivatives.
This algorithm cleverly uses both the Golden Section Search and
parabolic interpolation.

%description -l pl
Moduł Perla Math::Brent stanowi implementację metody Brenta dla
jednowymiarowej minimalizacji funkcji bez korzystania z pochodnych.
Algorytm ten zręcznie korzysta zarówno ze znajdowania złotego
podziału, jak też z interpolacji kwadratowej.

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%patch0 -p0

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README
%{perl_vendorlib}/Math/Brent.pm
%{_mandir}/man3/*