psabata pushed to perl-Digest-Nilsimsa (master). "Modernize the spec (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu May 21 11:24:00 UTC 2015


From d06ad36bfa1880f3ede36f73a01e51d27de63f67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Thu, 21 May 2015 13:23:52 +0200
Subject: Modernize the spec

- Correct the dep list

diff --git a/perl-Digest-Nilsimsa.spec b/perl-Digest-Nilsimsa.spec
index 70c817c..ea8b04b 100644
--- a/perl-Digest-Nilsimsa.spec
+++ b/perl-Digest-Nilsimsa.spec
@@ -1,56 +1,50 @@
 Name:           perl-Digest-Nilsimsa
 Version:        0.06
-Release:        27%{?dist}
-
+Release:        28%{?dist}
 Summary:        Perl interface to the Nilsima Algorithm
-
-Group:          Development/Libraries
 License:        GPLv2+
 Source0:        http://www.cpan.org/authors/id/V/VI/VIPUL/Digest-Nilsimsa-%{version}.tar.gz
 URL:            http://search.cpan.org/dist/Digest-Nilsimsa/
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires:  perl(ExtUtils::MakeMaker)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Build
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(DynaLoader)
+# Test sonly
+# -
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 
 %description
-%{summary}.
-
+A nilsimsa signature is a statistic of n-gram occurance in a piece of
+text. It is a 256 bit value usually represented in hex. This module is a
+wrapper around nilsimsa implementation in C by cmeclax.
 
 %prep
 %setup -q -n Digest-Nilsimsa-%{version}
 
-
 %build
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
 make %{?_smp_mflags}
 
-
 %install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} +
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc COPYING README
-%{perl_vendorarch}/Digest/
-%{perl_vendorarch}/auto/Digest/
+%{perl_vendorarch}/*
+%{perl_vendorarch}/auto/*
 %{_mandir}/man3/*.3*
 
 %changelog
+* Thu May 21 2015 Petr Ĺ abata <contyk at redhat.com> - 0.06-28
+- Modernize the spec
+- Correct the dep list
+
 * Tue Aug 26 2014 Jitka Plesnikova <jplesnik at redhat.com> - 0.06-27
 - Perl 5.20 rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Digest-Nilsimsa.git/commit/?h=master&id=d06ad36bfa1880f3ede36f73a01e51d27de63f67


More information about the scm-commits mailing list