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

55 lines
1.2 KiB
RPMSpec

%define cpan_name JSON-Any
Name: perl-%cpan_name
Version: 1.18
Release: 1
Provides: %cpan_name
Requires: perl = %{perl_version} perl-JSON perl-YAML-Syck
%if 0%{?suse_version} < 1100
Requires: perl-JSON-PC
%endif
%ifnarch x86_64
Requires: perl-JSON-DWIW
%endif
Group: Development/Libraries/Perl
License: Artistic
URL: http://search.cpan.org/dist/JSON-Any/
Summary: Wrapper Class for the various JSON classes.
Source: %cpan_name-%{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}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%{perl_vendorlib}/JSON
%{perl_vendorarch}/auto/JSON
/var/adm/perl-modules/%{name}
%doc Changes MANIFEST README
%changelog -n %{name}
* Sun Oct 26 2008 - gerrit.beine@gmx.de
- first release 1.17