#
# Conditional build:
-# _without_tests - do not perform "make test"
-#
-# TODO:
-# - check BRs
-# - intl descs
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
-%define pdir ExtUtils
-%define pnam Depends
-Summary: ExtUtils::Depends - Easily build XS extensions
-Name: perl-%{pdir}-%{pnam}
-Version: 0.102
-Release: 0.1
-License: GPL
+%define pdir ExtUtils
+%define pnam Depends
+Summary: ExtUtils::Depends - easily build XS extensions that depend on XS extensions
+Summary(pl.UTF-8): ExtUtils::Depends - łatwe budowanie rozszerzeń XS zależących od innych rozszerzeń XS
+Name: perl-ExtUtils-Depends
+Version: 0.8000
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://dl.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: f151d695809e43ded95bbde9ad029a32
-URL: http://gtk2-perl.sf.net/
-BuildRequires: perl-devel >= 5.8.0
+Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: ac2d17114f1b50624a8f37381c90485e
+URL: https://metacpan.org/release/ExtUtils-Depends
+BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires: perl-Test-Number-Delta >= 1.0
+BuildRequires: perl-Test-Simple
+%endif
BuildRequires: rpm-perlprov >= 4.1-13
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This module tries to make it easy to build Perl extensions that use
-functions and typemaps provided by other perl extensions.
+functions and typemaps provided by other Perl extensions.
+
+%description -l pl.UTF-8
+Ten moduł próbuje ułatwić budowanie perlowych rozszerzeń używających
+funkcji i map typów udostępnianych przez inne rozszerzenia Perla.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
INSTALLDIRS=vendor
%{__make} \
+ CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc Changes README
+%doc Changes
%{perl_vendorlib}/ExtUtils/Depends.pm
-%{_mandir}/man3/*
+%{_mandir}/man3/ExtUtils::Depends.3pm*