]> git.pld-linux.org Git - packages/perl-YAML.git/blame - perl-YAML.spec
- rel 3
[packages/perl-YAML.git] / perl-YAML.spec
CommitLineData
7f06e248
ER
1# TODO
2# - YAML::Types depends on B::Deparse therefore the perl-devel dep)
73096fb5 3#
4# Conditional build:
81e56ade 5%bcond_without tests # do not perform "make test"
6#
73096fb5 7%include /usr/lib/rpm/macros.perl
03b72ad2 8%define pdir YAML
73096fb5 9Summary: YAML - YAML Ain't Markup Language (tm)
b35bb5fc 10Summary(pl.UTF-8): YAML - YAML nie jest językiem znaczników
73096fb5 11Name: perl-YAML
5caf3edb 12Version: 0.70
3cdf2a0c 13Release: 3
5f948d76 14# same as perl
6a76ee06 15License: GPL v1+ or Artistic
73096fb5 16Group: Development/Languages/Perl
5caf3edb 17Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
18# Source0-md5: 425973520e8fd84beb6cb95de29f3534
73096fb5 19URL: http://www.yaml.org/spec/
f6a64733 20BuildRequires: perl-devel >= 1:5.8.0
7297c5c3 21%if %{with tests}
7297c5c3 22BuildRequires: perl-Spiffy >= 0.29
7f06e248 23BuildRequires: perl-perldoc
7297c5c3 24%endif
caf805f0 25BuildRequires: rpm-perlprov >= 4.1-13
7f06e248 26Requires: perl-devel
73096fb5 27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
f8e9500e
JB
31The YAML.pm module implements a YAML Loader and Dumper based on the
32YAML 1.0 specification.
73096fb5 33
f8e9500e
JB
34YAML is a generic data serialization language that is optimized for
35human readability. It can be used to express the data structures of
7f06e248 36most modern programming languages. (Including Perl!!!)
73096fb5 37
6b932ded
JR
38%description -l pl.UTF-8
39Moduł YAML.pm jest implementacją klas YAML Loader i Dumper bazujących
40na specyfikacji YAML 1.0. YAML to język do serializacji ogólnych
41danych, zoptymalizowany pod względem czytelności dla człowieka. Może
42być używany do wyrażania struktur danych większości współczesnych
43języków programowania (włącznie z Perlem).
73096fb5 44
45%prep
46%setup -q -n %{pdir}-%{version}
47
48%build
af94652a 49%{__perl} Makefile.PL \
caf805f0 50 INSTALLDIRS=vendor
73096fb5 51%{__make}
52
81e56ade 53%{?with_tests:%{__make} test}
73096fb5 54
55%install
56rm -rf $RPM_BUILD_ROOT
57
81e56ade 58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
73096fb5 60
af94652a
ER
61# this pulls dozen of Test::* deps which we don't want
62rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Test/YAML.pm
63rm -f $RPM_BUILD_ROOT%{_mandir}/man3/Test::YAML.3pm*
64
73096fb5 65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69%defattr(644,root,root,755)
af94652a
ER
70%{perl_vendorlib}/YAML.pm
71%{perl_vendorlib}/YAML
72%{_mandir}/man3/YAML.3pm*
73%{_mandir}/man3/YAML::*.3pm*
This page took 0.033951 seconds and 4 git commands to generate.