rpms/perl-JSON/FC-5 perl-JSON.spec,1.1,1.2 sources,1.2,1.3
Chris Weyl (cweyl)
fedora-extras-commits at redhat.com
Sat May 5 20:23:39 UTC 2007
Author: cweyl
Update of /cvs/extras/rpms/perl-JSON/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21964/FC-5
Modified Files:
perl-JSON.spec sources
Log Message:
* Fri May 04 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.12-1
- update to 1.12
- add t/ to %%doc
Index: perl-JSON.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-JSON/FC-5/perl-JSON.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- perl-JSON.spec 25 Apr 2007 20:25:07 -0000 1.1
+++ perl-JSON.spec 5 May 2007 20:23:04 -0000 1.2
@@ -1,6 +1,6 @@
Name: perl-JSON
-Version: 1.11
-Release: 2%{?dist}
+Version: 1.12
+Release: 1%{?dist}
Summary: Parse and convert to JSON (JavaScript Object Notation)
License: GPL or Artistic
Group: Development/Libraries
@@ -8,7 +8,11 @@
Source0: http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# core
BuildRequires: perl(ExtUtils::MakeMaker)
+# cpan
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
@@ -24,7 +28,6 @@
Requires: perl(LWP::UserAgent)
Requires: perl(HTTP::Daemon)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module converts between JSON (JavaScript Object Notation) and Perl
@@ -34,11 +37,19 @@
%prep
%setup -q -n JSON-%{version}
-# remove errant exec bits...
+# make rpmlint happy...
find . -type f -exec chmod -c -x {} \;
+sed -i 's/\r//' README t/*.t
-# fix some EOL encodings
-sed -i 's/\r//' README
+# Filter unwanted Provides:
+cat << \EOF > %{name}-prov
+#!/bin/sh
+%{__perl_provides} $* |\
+ sed -e '/perl(My.*)/d'
+EOF
+
+%define __perl_provides %{_builddir}/JSON-%{version}/%{name}-prov
+chmod +x %{__perl_provides}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -62,11 +73,15 @@
%files
%defattr(-,root,root,-)
-%doc Changes README
+%doc Changes README t/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Fri May 04 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.12-1
+- update to 1.12
+- add t/ to %%doc
+
* Wed Apr 25 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.11-2
- bump
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-JSON/FC-5/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources 25 Apr 2007 20:25:07 -0000 1.2
+++ sources 5 May 2007 20:23:04 -0000 1.3
@@ -1 +1 @@
-c1e50efa98c9f7c1907b0dfd6b2656a9 JSON-1.11.tar.gz
+6bce8b1ff5b242deea5228b1a3c4e6e7 JSON-1.12.tar.gz
More information about the fedora-extras-commits
mailing list