dee0f07748
OBS-URL: https://build.opensuse.org/request/show/54328 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-YAML-Tiny?expand=0&rev=4
61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-YAML-Tiny
|
|
Version: 1.44
|
|
Release: 0
|
|
Summary: Read/Write YAML files with as little code as possible
|
|
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/YAML-Tiny-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/YAML-Tiny
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
BuildRequires: perl-macros
|
|
%{perl_requires}
|
|
BuildRequires: make perl
|
|
BuildRequires: perl(YAML)
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
BuildRequires: perl(File::Spec) >= 0.80
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
%description
|
|
YAML::Tiny is a perl class for reading and writing YAML-style files, written
|
|
with as little code as possible, reducing load time and memory overhead.
|
|
|
|
Most of the time it is accepted that Perl applications use a lot of memory and
|
|
modules. The ::Tiny family of modules is specifically intended to provide an
|
|
ultralight and zero-dependency alternative to many more-thorough standard
|
|
modules.
|
|
|
|
This module is primarily for reading human-written files (like simple config
|
|
files) and generating very simple human-readable files. Note that I said
|
|
human-readable and not geek-readable. The sort of files that your average
|
|
manager or secretary should be able to look at and make sense of.
|
|
|
|
%prep
|
|
%setup -q -n "YAML-Tiny-%{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}/YAML
|
|
%{perl_vendorlib}/YAML/Tiny.pm
|
|
%dir %{perl_vendorarch}/auto/YAML
|
|
%{perl_vendorarch}/auto/YAML/Tiny
|
|
%doc %{perl_man3dir}/YAML::Tiny.%{perl_man3ext}%{ext_man}
|
|
|