]> git.pld-linux.org Git - packages/perl-YAML-Syck.git/blame - perl-YAML-Syck.spec
- removed zero-sized .bs file
[packages/perl-YAML-Syck.git] / perl-YAML-Syck.spec
CommitLineData
216a3eb6
ER
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
e3554191 6%define pdir YAML
7%define pnam Syck
8Summary: YAML::Syck - fast, lightweight YAML loader and dumper
a1f4b962 9Summary(pl.UTF-8): YAML::Syck - szybki, lekki moduł do wczytywania i zrzucania YAML-a
216a3eb6 10Name: perl-YAML-Syck
9751b06c 11Version: 1.27
0633b87a 12Release: 2
216a3eb6
ER
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
9e758b69 16Source0: http://www.cpan.org/modules/by-module/YAML/%{pdir}-%{pnam}-%{version}.tar.gz
9751b06c 17# Source0-md5: 8920091e68a078cfa9c42041e5759162
9e758b69 18URL: http://search.cpan.org/dist/YAML-Syck/
216a3eb6
ER
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl-YAML >= 0.60
23%endif
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This module provides a Perl interface to the libsyck data
28serialization library. It exports the Dump and Load functions for
29converting Perl data structures to YAML strings, and the other way
30around.
31
32NOTE: If you are working with other language's YAML/Syck bindings
33(such as Ruby), please set $YAML::Syck::ImplicitTyping to 1 before
34calling the Load/Dump functions. The default setting is for preserving
35backward-compatibility with YAML.pm.
36
1c379dfc
JR
37%description -l pl.UTF-8
38Ten moduł udostępnia perlowy interfejs do biblioteki serializacji
39danych libsyck. Eksportuje funkcje Dump i Load do przekształcania
40perlowych struktur danych na łańcuchy YAML i z powrotem.
4341bf95 41
1c379dfc
JR
42Uwaga: jeśli pracujemy z dowiązaniami YAML/Sych dla innego języka
43(np. Ruby), należy ustawić $YAML::Syck::ImplicitTyping na 1 przed
44wywołaniem funkcji Load/Dump. Domyślne ustawienie jest dla zachowania
45wstecznej zgodności z YAML.pm.
4341bf95 46
216a3eb6
ER
47%prep
48%setup -q -n %{pdir}-%{pnam}-%{version}
49
50%build
51%{__perl} Makefile.PL \
52 INSTALLDIRS=vendor
53%{__make} \
0c70dd4a 54 CC="%{__cc}" \
216a3eb6
ER
55 OPTIMIZE="%{rpmcflags}"
56
57%{?with_tests:%{__make} test}
58
59%install
60rm -rf $RPM_BUILD_ROOT
61
62%{__make} install \
63 DESTDIR=$RPM_BUILD_ROOT
64
65rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/YAML/Syck.pod
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
72%doc Changes README
73%dir %{perl_vendorarch}/YAML
74%{perl_vendorarch}/YAML/*.pm
75%dir %{perl_vendorarch}/JSON
76%{perl_vendorarch}/JSON/Syck.pm
77%dir %{perl_vendorarch}/YAML/Dumper
78%{perl_vendorarch}/YAML/Dumper/Syck.pm
79%dir %{perl_vendorarch}/YAML/Loader
80%{perl_vendorarch}/YAML/Loader/Syck.pm
81%dir %{perl_vendorarch}/auto/YAML
82%dir %{perl_vendorarch}/auto/YAML/Syck
216a3eb6
ER
83%attr(755,root,root) %{perl_vendorarch}/auto/YAML/Syck/*.so
84%{_mandir}/man3/*
This page took 0.07757 seconds and 4 git commands to generate.