]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir YAML | |
6 | %define pnam Tiny | |
7 | Summary: YAML::Tiny - Read/Write YAML files with as little code as possible | |
8 | Summary(pl.UTF-8): YAML::Tiny - odczyt i zapis plików YAML z użyciem jak najmniejszego kodu | |
9 | Name: perl-YAML-Tiny | |
10 | Version: 1.73 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/YAML/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: d1bb2525e4ab46bfab4b22842c467529 | |
17 | URL: http://search.cpan.org/dist/YAML-Tiny/ | |
18 | BuildRequires: perl-devel >= 1:5.8.1 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
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 | |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | YAML::Tiny is a Perl class for reading and writing YAML-style files, | |
31 | written with as little code as possible, reducing load time and memory | |
32 | overhead. | |
33 | ||
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. | |
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) | |
60 | %doc Changes README | |
61 | %{perl_vendorlib}/YAML/Tiny.pm | |
62 | %{_mandir}/man3/YAML::Tiny.3pm* |