8
0
forked from pool/perl-JSON-Any
Files
perl-JSON-Any/perl-JSON-Any.spec

61 lines
1.4 KiB
RPMSpec
Raw Normal View History

%define cpan_name JSON-Any
Name: perl-JSON-Any
Version: 1.19
Release: 0
Requires: perl perl-JSON perl-YAML-Syck
%if 0%{?suse_version} < 1100
Requires: perl-JSON-PC
%endif
Requires: perl-JSON-DWIW
Group: Development/Libraries/Perl
License: Perl License
URL: http://search.cpan.org/dist/JSON-Any/
Summary: Wrapper Class for the various JSON classes.
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PERIGRIN/JSON-Any-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl-JSON >= 2.02
BuildRequires: perl-YAML-Syck perl-JSON-XS
BuildRequires: perl-JSON-DWIW
%description
Wrapper Class for the various JSON classes.
%prep
%setup -q -n %cpan_name-%{version}
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_usr}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%__rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%doc Changes MANIFEST README
%dir %{perl_vendorlib}/JSON
%{perl_vendorlib}/JSON/Any.pm
%dir %{perl_vendorarch}/auto/JSON
%dir %{perl_vendorarch}/auto/JSON/Any
%{perl_vendorarch}/auto/JSON/Any/.packlist
%doc %{perl_man3dir}/JSON::Any.%{perl_man3ext}*
/var/adm/perl-modules/%{name}
%changelog
* Thu Apr 9 2009 - pascal.bleser@opensuse.org
- update to 1.19
- spec file pimping
* Sun Oct 26 2008 - gerrit.beine@gmx.de
- first release 1.17