X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Data-Compare.spec;h=13ebfaa4a131b451fc4700c4172cfb0c3680afa8;hb=HEAD;hp=56aeb1b2898ec81263dfe20d7f13e3ec32299dd8;hpb=b29b81deff7e758f3d18bf39fe13f97d722ecea3;p=packages%2Fperl-Data-Compare.git diff --git a/perl-Data-Compare.spec b/perl-Data-Compare.spec index 56aeb1b..13ebfaa 100644 --- a/perl-Data-Compare.spec +++ b/perl-Data-Compare.spec @@ -2,25 +2,28 @@ # Conditional build: %bcond_without tests # do not perform "make test" # -%include /usr/lib/rpm/macros.perl -%define pdir Data -%define pnam Compare +%define pdir Data +%define pnam Compare Summary: Data::Compare - compare Perl data structures -Summary(pl): Data::Compare - porównywanie struktur danych w Perlu +Summary(pl.UTF-8): Data::Compare - porównywanie struktur danych w Perlu Name: perl-Data-Compare -Version: 0.1 +# fill to four decimal digits to avoid epoch bumps after 1.2102 +%define ver 1.25 +Version: %{ver}00 Release: 1 Epoch: 1 # 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: e5767db3c11416ab474b87b8b50bf841 +Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{ver}.tar.gz +# Source0-md5: 6a397ab5833237f3ca05ed7277b19a7a +URL: http://search.cpan.org/dist/Data-Compare/ BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: perl-devel >= 1:5.8.0 %if %{with tests} BuildRequires: perl-File-Find-Rule >= 0.11 BuildRequires: perl-Scalar-Properties +BuildRequires: perl-perldoc %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -28,12 +31,12 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Data::Compare module compares two Perl data structures recursively. -%description -l pl -Modu³ Data::Compare s³u¿y do rekurencyjnego porównywania dwóch +%description -l pl.UTF-8 +Moduł Data::Compare służy do rekurencyjnego porównywania dwóch struktur danych. %prep -%setup -q -n %{pdir}-%{pnam}-%{version} +%setup -q -n %{pdir}-%{pnam}-%{ver} %build %{__perl} Makefile.PL \ @@ -47,11 +50,15 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Data/Compare/Plugins.pod + %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_vendorlib}/Data/Compare.pm +%dir %{perl_vendorlib}/Data/Compare %{perl_vendorlib}/Data/Compare/Plugins -%{_mandir}/man3/* +%{_mandir}/man3/Data::Compare.3pm* +%{_mandir}/man3/Data::Compare::Plugins*.3pm*