[perl-CGI-Application-Plugin-JSON] Clean up spec file

Emmanuel Seyman eseyman at fedoraproject.org
Sun May 19 09:46:56 UTC 2013


commit 6e180770737e710df0727df9c8cf1bbe9eec202c
Author: Emmanuel Seyman <emmanuel at seyman.fr>
Date:   Sun May 19 11:46:52 2013 +0200

    Clean up spec file

 perl-CGI-Application-Plugin-JSON.spec |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/perl-CGI-Application-Plugin-JSON.spec b/perl-CGI-Application-Plugin-JSON.spec
index 18e5640..ea04a46 100644
--- a/perl-CGI-Application-Plugin-JSON.spec
+++ b/perl-CGI-Application-Plugin-JSON.spec
@@ -1,12 +1,10 @@
 Name:           perl-CGI-Application-Plugin-JSON
 Version:        1.02
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Easy manipulation of JSON headers
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/CGI-Application-Plugin-JSON/
 Source0:        http://www.cpan.org/authors/id/W/WO/WONKO/CGI-Application-Plugin-JSON-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(CGI::Application) >= 4
 BuildRequires:  perl(JSON) >= 2.02
@@ -18,6 +16,8 @@ BuildRequires:  perl(Test::Pod::Coverage)
 Requires:       perl(CGI::Application)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+%{?perl_default_filter}
+
 %description
 When communicating with client-side JavaScript, it is common to send data
 in X-JSON HTTP headers or through the document body as content-type
@@ -32,8 +32,6 @@ methods to make that just a little bit easier.
 ./Build
 
 %install
-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 \;
 
@@ -42,16 +40,16 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %check
 ./Build test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Sun May 19 2013 Emmanuel Seyman <emmanuel at seyman.fr> - 1.02-9
+- Add perl default filter
+- Remove no-longer-used macros
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.02-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list