- 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
|
||||
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 @@ URL: http://search.cpan.org/dist/JSON/
|
||||
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(Scalar::Util)
|
||||
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 @@ http://www.crockford.com/JSON/.
|
||||
%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 @@ rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%doc Changes README t/
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%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
|
||||
- bump
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user