]> git.pld-linux.org Git - packages/perl-Image-Imlib2.git/blame - perl-Image-Imlib2.spec
- release 9
[packages/perl-Image-Imlib2.git] / perl-Image-Imlib2.spec
CommitLineData
2d354442 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
47b65842 5%include /usr/lib/rpm/macros.perl
36c4fa2e 6%define pdir Image
7%define pnam Imlib2
47b65842 8Summary: Interface to the Imlib2 image library
bfcb7822 9Summary(pl.UTF-8): Interfejs do biblioteki obrazów Imlib2
47b65842 10Name: perl-Image-Imlib2
5a6592a9 11Version: 2.03
a0d7b6c4 12Release: 9
2d354442 13# same as perl
14License: GPL v1+ or Artistic
47b65842 15Group: Development/Languages/Perl
5fe7fca4 16Source0: http://www.cpan.org/modules/by-module/Image/%{pdir}-%{pnam}-%{version}.tar.gz
5a6592a9 17# Source0-md5: 303b91fae2b863903e41a3cac34fa0d3
5fe7fca4 18URL: http://search.cpan.org/dist/Image-Imlib2/
da670981 19BuildRequires: imlib2-devel
29ddc30a 20BuildRequires: perl-Module-Build >= 0.20
37a85a5c
JB
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
47b65842
PG
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Image::Imlib2 is a Perl port of Imlib2, a graphics library that does
27image file loading and saving as well as manipulation, arbitrary
28polygon support, etc. It does ALL of these operations FAST. It allows
29you to create colour images using a large number of graphics
30primitives, and output the images in a range of formats.
31
a4f5f4fe 32%description -l pl.UTF-8
37a85a5c 33Image::Imlib2 to perlowy port Imlib2 - biblioteki graficznej
a4f5f4fe
JR
34wczytującej, zapisującej i przetwarzającej obrazy z obsługą dowolnych
35wielokątów itp. Wykonuje WSZYSTKIE te operacje SZYBKO. Pozwala na
36tworzenie kolorowych obrazów przy użyciu dużej liczby prymitywów
37a85a5c
JB
37graficznych i zapis ich w wielu formatach.
38
47b65842
PG
39%prep
40%setup -q -n %{pdir}-%{pnam}-%{version}
41
42%build
43%{__perl} Makefile.PL \
da670981 44 INSTALLDIRS=vendor \
45 destdir=$RPM_BUILD_ROOT
2d354442 46%{__make} \
4be1b469 47 CC="%{__cc}" \
2d354442 48 OPTIMIZE="%{rpmcflags}"
49
50%{?with_tests:%{__make} test}
47b65842
PG
51
52%install
53rm -rf $RPM_BUILD_ROOT
2d354442 54install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47b65842
PG
55
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
29ddc30a 58
da670981 59cd examples
60for f in * ; do
2d354442 61 sed -e "s@#!/usr/local/bin/perl@#!/usr/bin/perl@" $f \
62 > $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$f
63done
47b65842
PG
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69%defattr(644,root,root,755)
29ddc30a 70%doc CHANGES README
2d354442 71%{perl_vendorarch}/Image/Imlib2.pm
72%dir %{perl_vendorarch}/auto/Image/Imlib2
2d354442 73%attr(755,root,root) %{perl_vendorarch}/auto/Image/Imlib2/*.so
74%dir %{_examplesdir}/%{name}-%{version}
75%{_examplesdir}/%{name}-%{version}/*.txt
76%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
29ddc30a 77%{_mandir}/man3/Image::Imlib2*.3pm*
This page took 0.10497 seconds and 4 git commands to generate.