OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tree-Simple-VisitorFactory?expand=0&rev=3
60 lines
1.7 KiB
RPMSpec
60 lines
1.7 KiB
RPMSpec
Name: perl-Tree-Simple-VisitorFactory
|
|
Version: 0.10
|
|
Release: 1%{?dist}
|
|
Summary: Factory object for dispensing Visitor objects
|
|
License: CHECK(GPL+ or Artistic)
|
|
Group: Development/Libraries/Perl
|
|
URL: http://search.cpan.org/dist/Tree-Simple-VisitorFactory/
|
|
Source0: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-VisitorFactory-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl(File::Spec) >= 0.6
|
|
BuildRequires: perl(Scalar::Util) >= 1.1
|
|
BuildRequires: perl(Test::Exception) >= 0.15
|
|
BuildRequires: perl(Tree::Simple) >= 1.12
|
|
%{perl_requires}
|
|
Requires: perl(File::Spec) >= 0.6
|
|
Requires: perl(Scalar::Util) >= 1.1
|
|
Requires: perl(Test::Exception) >= 0.15
|
|
Requires: perl(Tree::Simple) >= 1.12
|
|
|
|
%description
|
|
This object is really just a factory for dispensing
|
|
Tree::Simple::Visitor::* objects. It is not required to use this package in
|
|
order to use all the Visitors, it is just a somewhat convienient way to
|
|
avoid having to type thier long class names.
|
|
|
|
%prep
|
|
%setup -q -n Tree-Simple-VisitorFactory-%{version}
|
|
|
|
%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 -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Tue Jan 12 2010 Stefan Seifert <nine@detonation.org> 0.10-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|