# Conditional build:
%bcond_without tests # do not perform "make test"
#
-%include /usr/lib/rpm/macros.perl
%define pdir prefork
Summary: prefork - optimize module loading across forking and non-forking scenarios
-Summary(pl): prefork - optymalizacja ³adowania modu³ów dla rozwidlonych i nierozwidlonych scenariuszy
+Summary(pl.UTF-8): prefork - optymalizacja ładowania modułów dla rozwidlonych i nierozwidlonych scenariuszy
Name: perl-prefork
-Version: 0.03
+Version: 1.05
Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-authors/id/A/AD/ADAMK/%{pdir}-%{version}.tar.gz
-# Source0-md5: 040b340931bd8190b87c81130ea5f8d0
+Source0: http://www.cpan.org/modules/by-authors/id/E/ET/ETHER/%{pdir}-%{version}.tar.gz
+# Source0-md5: 60d97a66a1e6e4ccfa51f8662a511048
+URL: https://metacpan.org/release/prefork
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.24-2
+%if %{with tests}
+BuildRequires: perl-Scalar-List-Utils >= 0.18
+BuildRequires: perl-Test-Simple
+%endif
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
-BuildRequires: perl-ExtUtils-MakeMaker >= 6.24-2
+BuildRequires: rpmbuild(macros) >= 1.745
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
pre-forking mode) and to act as a relatively light-weight module
loader.
-# %description -l pl
-# TODO
+%description -l pl.UTF-8
+prefork ma umożliwić piszącym moduły zoptymalizowanie ładowania
+modułów dla obu scenariuszy przy użyciu jak najmniejszego dodatkowego
+kodu.
+
+prefork.pm ma służyć jako centralny i opcjonalnie prowadzący punkt dla
+wykrywania stanów (czy program działa w trybie proceduralnym, czy
+pre-fork) i działać jako relatywnie lekki moduł do wczytywania
+modułów.
%prep
%setup -q -n %{pdir}-%{version}
%build
-%{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"%{pdir}")' \
+%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+#rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
+#rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/prefork/.packlist
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes
-%{perl_vendorlib}/*.pm
-%{_mandir}/man3/*
+%{perl_vendorlib}/prefork.pm
+%{_mandir}/man3/prefork.3pm*