--- /dev/null
+%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
+Summary: Math-MatrixReal perl module
+Summary(pl): Modu³ perla Math-MatrixReal
+Name: perl-Math-MatrixReal
+Version: 1.2
+Release: 3
+Copyright: GPL
+Group: Development/Languages/Perl
+Group(pl): Programowanie/Jêzyki/Perl
+Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Math/Math-MatrixReal-%{version}.tar.gz
+BuildRequires: perl >= 5.005_03-10
+%requires_eq perl
+Requires: %{perl_sitearch}
+BuildRoot: /tmp/%{name}-%{version}-root
+
+%description
+Math-MatrixReal perl module.
+
+%description -l pl
+Modu³ perla Math-MatrixReal.
+
+%prep
+%setup -q -n Math-MatrixReal-%{version}
+
+%build
+perl Makefile.PL
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+(
+ cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Math/MatrixReal
+ sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
+ mv .packlist.new .packlist
+)
+
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
+ README
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.gz
+
+%{perl_sitelib}/Math/MatrixReal.pm
+%{perl_sitearch}/auto/Math/MatrixReal
+
+%{_mandir}/man3/*