]>
Commit | Line | Data |
---|---|---|
72f29e36 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
72f29e36 | 5 | %define pdir YAML |
6 | %define pnam Tiny | |
7 | Summary: YAML::Tiny - Read/Write YAML files with as little code as possible | |
95be7542 | 8 | Summary(pl.UTF-8): YAML::Tiny - odczyt i zapis plików YAML z użyciem jak najmniejszego kodu |
72f29e36 | 9 | Name: perl-YAML-Tiny |
4506a805 | 10 | Version: 1.73 |
72f29e36 | 11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
4d8cdf3e | 15 | Source0: http://www.cpan.org/modules/by-module/YAML/%{pdir}-%{pnam}-%{version}.tar.gz |
4506a805 | 16 | # Source0-md5: d1bb2525e4ab46bfab4b22842c467529 |
72f29e36 | 17 | URL: http://search.cpan.org/dist/YAML-Tiny/ |
66ffcafe | 18 | BuildRequires: perl-devel >= 1:5.8.1 |
72f29e36 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
66ffcafe JB |
20 | %if %{with tests} |
21 | BuildRequires: perl(File::Spec) >= 0.80 | |
22 | BuildRequires: perl-File-Temp >= 0.19 | |
23 | BuildRequires: perl-JSON-PP | |
24 | BuildRequires: perl-Test-Simple >= 0.88 | |
25 | %endif | |
72f29e36 | 26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
95be7542 | 30 | YAML::Tiny is a Perl class for reading and writing YAML-style files, |
72f29e36 | 31 | written with as little code as possible, reducing load time and memory |
32 | overhead. | |
33 | ||
95be7542 JB |
34 | %description -l pl.UTF-8 |
35 | YAML::Tiny to klasa Perla od odczytu i zapisu plików w stylu YAML, | |
36 | napisana z użyciem jak najmniejszej ilości kodu, tym samym | |
37 | zmniejszając narzut czasowy i pamięciowy. | |
72f29e36 | 38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
45 | %{__make} | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} pure_install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
4d8cdf3e | 60 | %doc Changes README |
95be7542 JB |
61 | %{perl_vendorlib}/YAML/Tiny.pm |
62 | %{_mandir}/man3/YAML::Tiny.3pm* |