[perl-HTML-Tidy] List all dependencies and modernize the spec

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

 



commit 23881d5acffe84d3aaec539d9d49844506e6d99c
Author: Petr Šabata <contyk@xxxxxxxxxx>
Date:   Mon Nov 12 14:30:57 2012 +0100

    List all dependencies and modernize the spec

 perl-HTML-Tidy.spec |   43 ++++++++++++++++++-------------------------
 1 files changed, 18 insertions(+), 25 deletions(-)
---
diff --git a/perl-HTML-Tidy.spec b/perl-HTML-Tidy.spec
index 8bbeb60..1f54db9 100644
--- a/perl-HTML-Tidy.spec
+++ b/perl-HTML-Tidy.spec
@@ -6,24 +6,22 @@ License:        Artistic 2.0
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/HTML-Tidy/
 Source0:        http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tidy-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 # needed by webtidy to fetch URLs
 Requires:       perl(LWP::Simple)
-
-# use base 'Exporter';
-Requires:       perl(Exporter)
-
 # non-perl
 BuildRequires:  libtidyp-devel
-# core
-BuildRequires: perl(ExtUtils::MakeMaker) 
-BuildRequires: perl(Test::Builder) 
-BuildRequires: perl(Test::More) 
-# test
-BuildRequires: perl(Test::Pod) 
-BuildRequires: perl(Test::Pod::Coverage)
+BuildRequires:  perl(base)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker) 
+BuildRequires:  perl(Test::Builder) 
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(XSLoader)
+# optional tests
+BuildRequires:  perl(Test::Pod) 
+BuildRequires:  perl(Test::Pod::Coverage)
 
 %{?perl_default_filter}
 
@@ -34,34 +32,25 @@ looking to migrate, see the section "Converting from HTML::Lint".
 
 %prep
 %setup -q -n HTML-Tidy-%{version}
-
 find .  -type f -exec chmod -c -x                              {} +
 find .  -type f -exec perl -pi -e 's/\r//'                     {} +
 find t/ -type f -exec perl -pi -e 's|^#!perl|#!/usr/bin/perl|' {} +
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
+make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} + 
 find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README* t/
 %{perl_vendorarch}/auto/HTML/
 %{perl_vendorarch}/HTML/
@@ -70,6 +59,10 @@ rm -rf %{buildroot}
 %{_mandir}/man3/HTML::Tidy::Message.3pm*
 
 %changelog
+* Mon Nov 12 2012 Petr Šabata <contyk@xxxxxxxxxx> - 1.54-6
+- Fix dependencies
+- Modernize the spec a bit
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.54-6
 - 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