]>
Commit | Line | Data |
---|---|---|
01e89423 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir CSS | |
6 | %define pnam Tiny | |
01e89423 JB |
7 | Summary: CSS::Tiny - Read/Write .css files with as little code as possible |
8 | Summary(pl.UTF-8): CSS::Tiny - odczyt/zapis plików .css przy użyciu jak najmniejszego kodu | |
9 | Name: perl-CSS-Tiny | |
af0bcfd6 | 10 | Version: 1.20 |
01e89423 JB |
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/CSS/%{pdir}-%{pnam}-%{version}.tar.gz | |
af0bcfd6 | 16 | # Source0-md5: 044e777384d22941bc6c104dcfa18035 |
01e89423 JB |
17 | URL: http://search.cpan.org/dist/CSS-Tiny/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Test-Simple >= 0.47 | |
22 | %endif | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | CSS::Tiny is a Perl class to read and write .css stylesheets with as | |
28 | little code as possible, reducing load time and memory overhead. | |
29 | CSS.pm requires about 2.6 meg of RAM to load, which is a large amount | |
30 | of overhead if you only want to do trivial things. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | CSS::Tiny to klasa Perla do odczytu i zapisu arkuszy styli .css przy | |
34 | użyciu jak najmniejszej ilości kodu, co zmniejsza czas ładowania i | |
35 | narzut pamięciowy. CSS.pm wymaga około 2.6MB RAM, co jest znacznym | |
36 | narzutem, jeśli chce się zrobić coś prostego. | |
37 | ||
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} pure_install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes | |
60 | %{perl_vendorlib}/CSS/Tiny.pm | |
61 | %{_mandir}/man3/CSS::Tiny.3pm* |