File perl-Text-vFile-asData.spec of Package perl-Text-vFile-asData
Summary: Parse vFile formatted files into data structures
Name: perl-Text-vFile-asData
Version: 0.05
Release: 1%{?dist}
License: Artistic/GPL
Group: Development/Libraries
URL: http://search.cpan.org/dist/Text-vFile-asData/
Source: http://www.cpan.org/modules/by-module/Text/Text-vFile-asData-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(Class::Accessor::Chained)
BuildRequires: perl(Test::More)
%description
With this package you can parse vFile formatted files into data structures.
%prep
%setup -q -n Text-vFile-asData-%{version}
find examples -type f -exec chmod 644 {} ';'
find examples -type d -exec chmod 755 {} ';'
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes examples/
%{perl_vendorlib}/Text/vFile/
%{_mandir}/man3/Text::vFile::asData.3*
%changelog
* Fri Aug 22 2008 Makoto Kato <mkato@miraclelinux.com>
- Initial package.