]> git.pld-linux.org Git - packages/perl-Cairo-GObject.git/blob - perl-Cairo-GObject.spec
7618c3b0dd2dda4c5f5a47492572fdfa90073a2a
[packages/perl-Cairo-GObject.git] / perl-Cairo-GObject.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pnam    Cairo-GObject
7 Summary:        Perl Cairo-GObject bindings
8 Summary(pl.UTF-8):      Wiązania Cairo-GObject dla Perla
9 Name:           perl-Cairo-GObject
10 Version:        1.001
11 # set real perl-Cairo version and bump to 0.1 when compatible perl-Cairo is released
12 Release:        5
13 License:        LGPL v2.1+
14 Group:          Development/Languages/Perl
15 Source0:        http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
16 # Source0-md5:  7e126a3424d9eab91b006b2a7ce09cb8
17 URL:            http://gtk2-perl.sourceforge.net/
18 BuildRequires:  cairo-gobject-devel >= 1.10.0
19 BuildRequires:  perl-Cairo-devel >= 1.080
20 BuildRequires:  perl-ExtUtils-Depends >= 0.200
21 BuildRequires:  perl-ExtUtils-PkgConfig >= 1.0
22 BuildRequires:  perl-Glib-devel >= 1.224
23 BuildRequires:  perl-devel >= 1:5.8.0
24 BuildRequires:  rpm-perlprov >= 4.1-13
25 Requires:       cairo-gobject >= 1.10.0
26 Requires:       perl-Cairo >= 1.080
27 Requires:       perl-Glib >= 1.224
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 This module provides perl access to Cairo-GObject library.
32
33 %description -l pl.UTF-8
34 Ten moduł daje dostęp z poziomu Perla do biblioteki Cairo-GObject.
35
36 %prep
37 %setup -q -n %{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42
43 %{__make} \
44         CC="%{__cc}" \
45         OPTIMIZE="%{rpmcflags}"
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 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Cairo/GObject/.packlist
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc NEWS README
63 %{perl_vendorarch}/Cairo/GObject.pm
64 %dir %{perl_vendorarch}/Cairo/GObject
65 %{perl_vendorarch}/Cairo/GObject/Install
66 %dir %{perl_vendorarch}/auto/Cairo/GObject
67 %attr(755,root,root) %{perl_vendorarch}/auto/Cairo/GObject/GObject.so
68 %{_mandir}/man3/Cairo::GObject.3pm*
This page took 0.735064 seconds and 2 git commands to generate.