| 1 | Name: perl-YAML-LibYAML
|
|---|
| 2 | Epoch: 1
|
|---|
| 3 | Version: 0.69
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | Summary: Perl YAML Serialization using XS and libyaml
|
|---|
| 6 | License: GPL+ or Artistic
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 | URL: http://search.cpan.org/dist/YAML-LibYAML/
|
|---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/T/TI/TINITA/YAML-LibYAML-%{version}.tar.gz
|
|---|
| 10 |
|
|---|
| 11 | # Build
|
|---|
| 12 | BuildRequires: coreutils
|
|---|
| 13 | BuildRequires: findutils
|
|---|
| 14 | BuildRequires: gcc
|
|---|
| 15 | BuildRequires: make
|
|---|
| 16 | BuildRequires: perl-devel
|
|---|
| 17 | BuildRequires: perl-generators
|
|---|
| 18 | #BuildRequires: perl-interpreter
|
|---|
| 19 | BuildRequires: perl(Config)
|
|---|
| 20 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
|---|
| 21 |
|
|---|
| 22 | # Module
|
|---|
| 23 | BuildRequires: perl(B::Deparse)
|
|---|
| 24 | BuildRequires: perl(base)
|
|---|
| 25 | BuildRequires: perl(constant)
|
|---|
| 26 | BuildRequires: perl(Exporter)
|
|---|
| 27 | BuildRequires: perl(Scalar::Util)
|
|---|
| 28 | BuildRequires: perl(strict)
|
|---|
| 29 | BuildRequires: perl(warnings)
|
|---|
| 30 | BuildRequires: perl(XSLoader)
|
|---|
| 31 |
|
|---|
| 32 | # Tests
|
|---|
| 33 | BuildRequires: perl(B)
|
|---|
| 34 | BuildRequires: perl(blib)
|
|---|
| 35 | BuildRequires: perl(Carp)
|
|---|
| 36 | BuildRequires: perl(Data::Dumper)
|
|---|
| 37 | BuildRequires: perl(Devel::Peek)
|
|---|
| 38 | BuildRequires: perl(Encode)
|
|---|
| 39 | BuildRequires: perl(File::Find)
|
|---|
| 40 | BuildRequires: perl(File::Path)
|
|---|
| 41 | BuildRequires: perl(Filter::Util::Call)
|
|---|
| 42 | BuildRequires: perl(FindBin)
|
|---|
| 43 | BuildRequires: perl(IO::File)
|
|---|
| 44 | BuildRequires: perl(IO::Pipe)
|
|---|
| 45 | BuildRequires: perl(lib)
|
|---|
| 46 | BuildRequires: perl(Test::Builder)
|
|---|
| 47 | BuildRequires: perl(Test::More) >= 0.88
|
|---|
| 48 | BuildRequires: perl(Tie::Array)
|
|---|
| 49 | BuildRequires: perl(Tie::Hash)
|
|---|
| 50 | BuildRequires: perl(utf8)
|
|---|
| 51 |
|
|---|
| 52 | # Optional Tests
|
|---|
| 53 | BuildRequires: perl(Path::Class)
|
|---|
| 54 |
|
|---|
| 55 | # Dependencies
|
|---|
| 56 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 57 | Requires: perl(B::Deparse)
|
|---|
| 58 |
|
|---|
| 59 | # libyaml is tweaked and bundled
|
|---|
| 60 | # https://github.com/ingydotnet/yaml-libyaml-pm/issues/49
|
|---|
| 61 | # version number determined by comparing commits in upstream repo:
|
|---|
| 62 | # https://bitbucket.org/xi/libyaml/commits/branch/default
|
|---|
| 63 | Provides: bundled(libyaml) = 0.1.7
|
|---|
| 64 |
|
|---|
| 65 | # Avoid provides for perl shared objects
|
|---|
| 66 | %{?perl_default_filter}
|
|---|
| 67 |
|
|---|
| 68 | %description
|
|---|
| 69 | Kirill Siminov's "libyaml" is arguably the best YAML implementation. The C
|
|---|
| 70 | library is written precisely to the YAML 1.1 specification. It was originally
|
|---|
| 71 | bound to Python and was later bound to Ruby.
|
|---|
| 72 |
|
|---|
| 73 | %prep
|
|---|
| 74 | %setup -q -n YAML-LibYAML-%{version}
|
|---|
| 75 |
|
|---|
| 76 | %build
|
|---|
| 77 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
|
|---|
| 78 | make %{?_smp_mflags}
|
|---|
| 79 | make manifypods
|
|---|
| 80 |
|
|---|
| 81 | %install
|
|---|
| 82 | make pure_install DESTDIR=%{buildroot}
|
|---|
| 83 | find %{buildroot} -type f -name '*.bs' -empty -delete
|
|---|
| 84 | %{_fixperms} -c %{buildroot}
|
|---|
| 85 |
|
|---|
| 86 | %check
|
|---|
| 87 | #make test
|
|---|
| 88 |
|
|---|
| 89 | %files
|
|---|
| 90 | %license LICENSE
|
|---|
| 91 | %doc Changes CONTRIBUTING README
|
|---|
| 92 | %{perl_vendorarch}/auto/YAML/
|
|---|
| 93 | %{perl_vendorarch}/YAML/
|
|---|
| 94 | #%{_mandir}/man3/YAML::LibYAML.3*
|
|---|
| 95 | #%{_mandir}/man3/YAML::XS.3*
|
|---|
| 96 | %{_mandir}/man3/*.3*
|
|---|
| 97 |
|
|---|
| 98 | %changelog
|
|---|
| 99 | * Thu Mar 08 2018 Elbert Pol <elbert.pol@gmail.com> - 0.69-1
|
|---|
| 100 | - initial rpm for OS2
|
|---|