Files
perl-Geometry-Primitive/perl-Geometry-Primitive.spec

58 lines
1.7 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: perl-Geometry-Primitive
Version: 0.22
Release: 0
Summary: Primitive Geometry Entities
Source: http://search.cpan.org/CPAN/authors/id/G/GP/GPHAT/Geometry-Primitive-%{version}.tar.gz
URL: http://search.cpan.org/dist/Geometry-Primitive/
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: make perl
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Storage)
BuildRequires: perl(MooseX::Clone)
BuildRequires: perl(Test::More)
BuildRequires: perl(Class::MOP)
BuildRequires: perl(MooseX::Storage::Format::JSON)
BuildRequires: perl(JSON::Any)
%description
Geometry::Primitive is a device and library agnostic system for representing
geometric entities such as points, lines and shapes. It provides simple objects
and many convenience methods you would expect from a simple geometry library.
%prep
%setup -q -n "Geometry-Primitive-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Geometry
%{perl_vendorlib}/Geometry/Primitive.pm
%{perl_vendorlib}/Geometry/Primitive
%dir %{perl_vendorarch}/auto/Geometry
%{perl_vendorarch}/auto/Geometry/Primitive
%doc %{perl_man3dir}/Geometry::Primitive.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Geometry::Primitive::*.%{perl_man3ext}%{ext_man}
/var/adm/perl-modules/%{name}