- update to 1.12
- add t/ to %%doc
This commit is contained in:
parent
070d19cad9
commit
a83a3b5cd4
@ -1 +1 @@
|
|||||||
JSON-1.11.tar.gz
|
JSON-1.12.tar.gz
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: perl-JSON
|
Name: perl-JSON
|
||||||
Version: 1.11
|
Version: 1.12
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Parse and convert to JSON (JavaScript Object Notation)
|
Summary: Parse and convert to JSON (JavaScript Object Notation)
|
||||||
License: GPL or Artistic
|
License: GPL or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -8,7 +8,11 @@ URL: http://search.cpan.org/dist/JSON/
|
|||||||
Source0: http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
# core
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
# cpan
|
||||||
BuildRequires: perl(HTTP::Request)
|
BuildRequires: perl(HTTP::Request)
|
||||||
BuildRequires: perl(HTTP::Response)
|
BuildRequires: perl(HTTP::Response)
|
||||||
|
|
||||||
@ -24,7 +28,6 @@ Requires: perl(Scalar::Util)
|
|||||||
Requires: perl(LWP::UserAgent)
|
Requires: perl(LWP::UserAgent)
|
||||||
Requires: perl(HTTP::Daemon)
|
Requires: perl(HTTP::Daemon)
|
||||||
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module converts between JSON (JavaScript Object Notation) and Perl
|
This module converts between JSON (JavaScript Object Notation) and Perl
|
||||||
@ -34,11 +37,19 @@ http://www.crockford.com/JSON/.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n JSON-%{version}
|
%setup -q -n JSON-%{version}
|
||||||
|
|
||||||
# remove errant exec bits...
|
# make rpmlint happy...
|
||||||
find . -type f -exec chmod -c -x {} \;
|
find . -type f -exec chmod -c -x {} \;
|
||||||
|
sed -i 's/\r//' README t/*.t
|
||||||
|
|
||||||
# fix some EOL encodings
|
# Filter unwanted Provides:
|
||||||
sed -i 's/\r//' README
|
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
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
@ -62,11 +73,15 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README
|
%doc Changes README t/
|
||||||
%{perl_vendorlib}/*
|
%{perl_vendorlib}/*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.12-1
|
||||||
|
- update to 1.12
|
||||||
|
- add t/ to %%doc
|
||||||
|
|
||||||
* Wed Apr 25 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.11-2
|
* Wed Apr 25 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.11-2
|
||||||
- bump
|
- bump
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user