X-Git-Url: https://git.pld-linux.org/?p=packages%2Fperl-Net-Ident.git;a=blobdiff_plain;f=perl-Net-Ident.spec;h=4218e30b4abdff2a940e0892a411e3dc51bf5e5b;hp=8706eb33376566a082a26f6c748aca7b6be55f17;hb=HEAD;hpb=1a47bf08158e7a4bf5460ad31716f55c697f1c4a diff --git a/perl-Net-Ident.spec b/perl-Net-Ident.spec index 8706eb3..4218e30 100644 --- a/perl-Net-Ident.spec +++ b/perl-Net-Ident.spec @@ -1,48 +1,54 @@ -%include /usr/lib/rpm/macros.perl -%define __find_provides %{_builddir}/Net-Ident-%{version}/find-perl-provides -Summary: Net-Ident perl module -Summary(pl): Modu³ perla Net-Ident +# +# Conditional build: +%bcond_with tests # do not perform "make test" + +%define pdir Net +%define pnam Ident +Summary: Net::Ident perl module +Summary(pl.UTF-8): Moduł perla Net::Ident Name: perl-Net-Ident -Version: 1.20 -Release: 3 -License: GPL +Version: 1.23 +Release: 1 +# same as perl +License: GPL v1+ or Artistic Group: Development/Languages/Perl -Group(de): Entwicklung/Sprachen/Perl -Group(pl): Programowanie/Jêzyki/Perl -Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/Net-Ident-%{version}.tar.gz -Patch0: %{name}-dep.patch -BuildRequires: rpm-perlprov >= 3.0.3-18 -BuildRequires: perl >= 5.6 +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: f9a2943dc6310c1f31458c49f926b007 +URL: http://search.cpan.org/dist/Net-Ident/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _noautoprov "perl(FileHandle)" + %description -Net-Ident - Perl Ident. +Net::Ident - Perl Ident. -%description -l pl -Net-Ident - Ident w perlu. +%description -l pl.UTF-8 +Net::Ident - Ident w perlu. %prep -%setup -q -n Net-Ident-%{version} -%patch -p1 - -chmod +x find-perl-provides +%setup -q -n %{pdir}-%{pnam}-%{version} %build -yes "" | perl Makefile.PL +yes "" | perl Makefile.PL \ + INSTALLDIRS=vendor %{__make} +%{?with_tests:%{__make} test} + %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT - -gzip -9nf Changes README +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc *.gz -%{perl_sitelib}/Net/Ident.pm +%doc Changes README +%{perl_vendorlib}/Net/Ident.pm %{_mandir}/man3/*