]>
Commit | Line | Data |
---|---|---|
81bc942b | 1 | # |
2 | # Conditional build: | |
5cb7ee58 | 3 | %bcond_without tests # do not perform "make test" |
4 | # | |
de22df83 | 5 | %include /usr/lib/rpm/macros.perl |
655ba5ac | 6 | %define pdir Image |
7 | %define pnam Xbm | |
4b902ce7 | 8 | Summary: Image::Xbm - load, create, manipulate and save xbm image files |
634a5f3a | 9 | Summary(pl.UTF-8): Image::Xbm - wczytywanie, tworzenie, modyfikacja i zapis obrazków w formacie xbm |
de22df83 JK |
10 | Name: perl-Image-Xbm |
11 | Version: 1.08 | |
b1c4849f | 12 | Release: 5 |
1bb7a2dd | 13 | License: LGPL |
de22df83 | 14 | Group: Development/Languages/Perl |
c3330af4 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
bea405cc | 16 | # Source0-md5: 3a6cde06d6de70ee98fb1849ba18b385 |
9ecb4e85 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
5cb7ee58 | 18 | %if %{with tests} |
83ff06d9 | 19 | BuildRequires: perl-Image-Base >= 1.06 |
81bc942b | 20 | %endif |
7366f8d3 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
de22df83 JK |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
81bc942b | 26 | This class module provides basic load, manipulate and save functionality |
27 | for the xbm file format. It inherits from Image::Base which provides | |
28 | additional manipulation functionality, e.g. new_from_image(). | |
de22df83 | 29 | |
27f7e307 JR |
30 | %description -l pl.UTF-8 |
31 | Image::Xbm dostarcza prostej funkcjonalności do wczytywania, manipulacji | |
32 | i zapisywania obrazów w formacie xbm. Dziedziczy po Image::Base, | |
33 | dostarczającym dodatkowych funkcji manipulacyjnych; np. new_from_image(). | |
c8f30cbd | 34 | |
de22df83 JK |
35 | %prep |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
7366f8d3 | 39 | %{__perl} Makefile.PL \ |
c49d6c1e | 40 | INSTALLDIRS=vendor |
de22df83 JK |
41 | %{__make} |
42 | ||
5cb7ee58 | 43 | %{?with_tests:%{__make} test} |
81bc942b | 44 | |
de22df83 JK |
45 | %install |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
68afbd64 | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
de22df83 JK |
50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
7366f8d3 | 56 | %{perl_vendorlib}/Image/* |
83ff06d9 | 57 | %{_mandir}/man3/* |