- update to 2.x series before F9
This commit is contained in:
parent
cc321cfdb9
commit
92d357751e
@ -1 +1 @@
|
|||||||
JSON-1.15.tar.gz
|
JSON-2.07.tar.gz
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: perl-JSON
|
Name: perl-JSON
|
||||||
Version: 1.15
|
Version: 2.07
|
||||||
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
|
||||||
@ -37,14 +37,15 @@ http://www.crockford.com/JSON/.
|
|||||||
%setup -q -n JSON-%{version}
|
%setup -q -n JSON-%{version}
|
||||||
|
|
||||||
# make rpmlint happy...
|
# make rpmlint happy...
|
||||||
find . -type f -exec chmod -c -x {} \;
|
find . -type f -exec chmod -c -x {} +
|
||||||
sed -i 's/\r//' README t/*.t
|
find t/ -type f -exec perl -pi -e 's|^#! perl|#!/usr/bin/perl|' {} +
|
||||||
|
sed -i 's/\r//' README t/*
|
||||||
|
|
||||||
# Filter unwanted Provides:
|
# Filter unwanted Provides:
|
||||||
cat << \EOF > %{name}-prov
|
cat << \EOF > %{name}-prov
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
%{__perl_provides} $* |\
|
%{__perl_provides} $* |\
|
||||||
sed -e '/perl(My.*)/d'
|
sed -e '/perl(My.*)/d; /perl(_unicode_handling)/d'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%define __perl_provides %{_builddir}/JSON-%{version}/%{name}-prov
|
%define __perl_provides %{_builddir}/JSON-%{version}/%{name}-prov
|
||||||
@ -59,7 +60,7 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||||
|
|
||||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
find %{buildroot} -type f -name .packlist -exec rm -f {} +
|
||||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
|
||||||
%{_fixperms} %{buildroot}/*
|
%{_fixperms} %{buildroot}/*
|
||||||
@ -77,6 +78,9 @@ rm -rf %{buildroot}
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Mar 09 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.07-1
|
||||||
|
- update to 2.x series before F9
|
||||||
|
|
||||||
* Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.15-2
|
* Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.15-2
|
||||||
- rebuild for new perl
|
- rebuild for new perl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user