File perl-XML-Trivial.spec of Package perl-XML-Trivial
%define _real_name XML-Trivial
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
Summary: representing parsed XML as tree of read only objects
Name: perl-XML-Trivial
Version: 0.01
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~pajout/XML-Trivial-0.01/lib/XML/Trivial.pm
Buildarch: noarch
Source: http://search.cpan.org/CPAN/authors/id/P/PA/PAJOUT/XML-Trivial-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
The trivial tool representing parsed XML as tree of read only objects.
%prep
%setup -n %{_real_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
%{__make}
%install
%{__rm} -rf %{buildroot}
%{__make} install
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%{_mandir}/man3/*.gz
%dir %{perl_vendorlib}/XML
%{perl_vendorlib}/XML/Trivial.pm
%changelog
* Thu Aug 30 2007 Leo Eraly <leo@unstable.be> - 0.01-1
- Initial package