[perl-HTML-Entities-Numbered] Specify all dependencies and do some cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 6958201a6510cb7f39b5cfa0ad3c7a425b7af4ac
Author: Petr Šabata <contyk@xxxxxxxxxx>
Date:   Thu Nov 8 10:29:16 2012 +0100

    Specify all dependencies and do some cleanup

 perl-HTML-Entities-Numbered.spec |   32 +++++++++++++++-----------------
 1 files changed, 15 insertions(+), 17 deletions(-)
---
diff --git a/perl-HTML-Entities-Numbered.spec b/perl-HTML-Entities-Numbered.spec
index 67c08b8..05d02af 100644
--- a/perl-HTML-Entities-Numbered.spec
+++ b/perl-HTML-Entities-Numbered.spec
@@ -1,20 +1,21 @@
 Name:           perl-HTML-Entities-Numbered
 Version:        0.04
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        Conversion of numbered HTML entities
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/HTML-Entities-Numbered/
 Source0:        http://www.cpan.org/modules/by-module/HTML/HTML-Entities-Numbered-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+BuildRequires:  perl(base)
+BuildRequires:  perl(Exporter)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Test::More) >= 0.32
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 HTML::Entities::Numbered is a content conversion filter for named HTML
-entities (symbols, mathmetical symbols, Greek letters, Latin letters,
+entities (symbols, mathematical symbols, Greek letters, Latin letters,
 etc.). When an argument of name2decimal() or name2hex() contains some
 nameable HTML entities, they will be replaced to numbered HTML entities.
 And when an argument of name2decimal_xml() or name2hex_xml() contains
@@ -29,32 +30,29 @@ replaced to named HTML entities.
 %setup -q -n HTML-Entities-Numbered-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 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 -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu Nov 08 2012 Petr Šabata <contyk@xxxxxxxxxx> - 0.04-10
+- Specify all dependencies
+- Modernize the spec a bit and drop command macros
+- Correct spelling in description
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.04-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux