From bed929b05b943cc9a75bdcbd3211d74ce3ca6394 Mon Sep 17 00:00:00 2001 From: Emmanuel Seyman <emman...@seyman.fr> Date: Tue, 2 Feb 2016 10:19:58 +0100 Subject: Modernize spec file
--- auto.ini | 70 ----------------------------------------------------- perl-Test-JSON.spec | 30 +++++++++-------------- 2 files changed, 12 insertions(+), 88 deletions(-) delete mode 100644 auto.ini diff --git a/auto.ini b/auto.ini deleted file mode 100644 index b252dfd..0000000 --- a/auto.ini +++ /dev/null @@ -1,70 +0,0 @@ -[add_build_requires] -perl(Test::Pod)=0 - -[spec_description] -content= <<EOT -JavaScript Object Notation (JSON) is a lightweight data interchange format. -Test::JSON makes it easy to verify that you have built valid JSON and that -it matches your expected output. - -EOT - -[spec_prep] -setup_line=%setup -q -n Test-JSON-%{version} -use_custom_prep=0 -custom_prep= <<EOT - -EOT - -[spec_build] -; Set to 0 or delete section to use the default -use_custom=0 -custom= <<EOT -%{__perl} Build.PL installdirs=vendor -./Build - -EOT - -[spec_install] -; Set to 0 or delete section to use the default -use_custom=0 -custom= <<EOT -rm -rf $RPM_BUILD_ROOT - -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - -%{_fixperms} $RPM_BUILD_ROOT/* - -EOT - -[spec_check] -; Set to 0 or delete section to use the default -use_custom=0 -custom= <<EOT -./Build test - -EOT - -[spec_clean] -; Set to 0 or delete section to use the default -use_custom=0 -custom= <<EOT -rm -rf $RPM_BUILD_ROOT - -EOT - -[spec_files] -; Set to 0 or delete section to use the default -use_custom=0 -custom= <<EOT -%defattr(-,root,root,-) -%doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/* - -EOT - -[common] -; Set to 0 to DISABLE all description/prep/build/etc management. -is_fully_managed=1 diff --git a/perl-Test-JSON.spec b/perl-Test-JSON.spec index d281b05..5d02a89 100644 --- a/perl-Test-JSON.spec +++ b/perl-Test-JSON.spec @@ -1,16 +1,16 @@ Name: perl-Test-JSON Summary: Test JSON data Version: 0.11 -Release: 15%{?dist} +Release: 16%{?dist} License: GPL+ or Artistic -Group: Development/Libraries + Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-JSON-%{version}.tar.gz URL: http://search.cpan.org/dist/Test-JSON/ -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(JSON::Any) >= 1.2 BuildRequires: perl(Test::Differences) >= 0.47 BuildRequires: perl(Test::Pod) @@ -33,32 +33,26 @@ it matches your expected output. %setup -q -n Test-JSON-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} %install -rm -rf %{buildroot} - -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}/* +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* %check make test -%clean -rm -rf %{buildroot} - %files -%defattr(-,root,root,-) %doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/*.3* +%{perl_vendorlib}/Test* +%{_mandir}/man3/Test*.3* %changelog +* Tue Feb 02 2016 Emmanuel Seyman <emman...@seyman.fr> - 0.11-16 +- Modernize spec file + * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> - 0.11-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild -- cgit v0.11.2 http://pkgs.fedoraproject.org/cgit/perl-Test-JSON.git/commit/?h=master&id=bed929b05b943cc9a75bdcbd3211d74ce3ca6394 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org