]> git.pld-linux.org Git - SPECS.git/blob - perl-Clutter.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Clutter.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # perform "make test" (requires DISPLAY)
4 #
5 %define pdir    Clutter
6 Summary:        Clutter - Perl bindings for the Clutter 1.x API
7 Summary(pl.UTF-8):      Clutter - wiązania Perla do API biblioteki Clutter 1.x
8 Name:           perl-Clutter
9 Version:        1.110
10 Release:        1
11 License:        LGPL v2.1
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-authors/id/E/EB/EBASSI/Clutter-%{version}.tar.gz
14 # Source0-md5:  0bfc0a9463daf8ce25a84b54d01781c0
15 URL:            http://search.cpan.org/dist/Clutter/
16 BuildRequires:  perl-ExtUtils-MakeMaker >= 6.30
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-Cairo-GObject >= 1.000
21 BuildRequires:  perl-Glib >= 1.253
22 BuildRequires:  perl-Glib-Object-Introspection >= 0.002
23 BuildRequires:  perl-Pango >= 1.220
24 %endif
25 Requires:       perl-Cairo-GObject >= 1.000
26 Requires:       perl-Glib >= 1.253
27 Requires:       perl-Glib-Object-Introspection >= 0.002
28 Requires:       perl-Pango >= 1.220
29 # clutter with gobject binding
30 Requires:       clutter >= 1.0
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 This module allows you to use the Clutter library from Perl to create
35 dynamic, compelling, and portable graphical user interfaces, using a
36 Perlish and object oriented API.
37
38 %description -l pl.UTF-8
39 Ten moduł pozwala na wykorzystywanie biblioteki Clutter z poziomu
40 Perla w celu tworzenia dynamicznych, przenośnych graficznych
41 interfejsów użytkownika przy użyciu perlowego, zorientowanego
42 obiektowo API.
43
44 %prep
45 %setup -q -n %{pdir}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make} \
51         CC="%{__cc}" \
52         OPTIMIZE="%{rpmcflags}"
53
54 %{?with_tests:%{__make} test}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} pure_install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 install -d $RPM_BUILD_ROOT%{_examplesdir}
63 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc README
71 %{perl_vendorlib}/Clutter.pm
72 %{_mandir}/man3/Clutter.3pm*
73 %{_examplesdir}/%{name}-%{version}
This page took 0.319178 seconds and 3 git commands to generate.