forked from pool/perl-Data-Hierarchy
* recreated by cpanspec 1.78.02
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Hierarchy?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
9b44bb7c78
commit
0c30dee8b9
@@ -17,51 +17,54 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-Data-Hierarchy
|
||||
License: Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://cpan.org/
|
||||
Requires: perl = %{perl_version}
|
||||
AutoReqProv: on
|
||||
%define cpan_name Data-Hierarchy
|
||||
Summary: Handle data in a hierarchical structure
|
||||
Version: 0.34
|
||||
Release: 112
|
||||
Source: http://cpan.org/modules/by-module/Data/Data-Hierarchy-%{version}.tar.gz
|
||||
Release: 1
|
||||
License: CHECK(GPL+ or Artistic)
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Data-Hierarchy/
|
||||
#Source: http://www.cpan.org/modules/by-module/Data/Data-Hierarchy-%{version}.tar.bz2
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
BuildRequires: perl(Test::Exception)
|
||||
Requires: perl = %{perl_version}
|
||||
Requires: perl(Test::Exception)
|
||||
|
||||
%description
|
||||
Data::Hierarchy provides a simple interface for manipulating
|
||||
inheritable data attached to a hierarchical environment
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Chia-liang Kao <clkao at clkao dot org>
|
||||
Data::Hierarchy provides a simple interface for manipulating inheritable
|
||||
data attached to a hierarchical environment (like a filesystem).
|
||||
|
||||
%prep
|
||||
%setup -n Data-Hierarchy-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
# do not perl_process_packlist (noarch)
|
||||
# remove .packlist file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||
# remove perllocal.pod file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%dir %{perl_vendorlib}/Data
|
||||
%{perl_vendorlib}/Data/Hierarchy.pm
|
||||
%dir %{perl_vendorarch}/auto/Data
|
||||
%dir %{perl_vendorarch}/auto/Data/Hierarchy
|
||||
%{_mandir}/man3/Data::Hierarchy.3pm.gz
|
||||
/var/adm/perl-modules/%{name}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user