]> git.pld-linux.org Git - packages/perl-Glib-Object-Introspection.git/blob - perl-Glib-Object-Introspection.spec
fae5b128363e278a81c95e0c0dbd7167f095d11c
[packages/perl-Glib-Object-Introspection.git] / perl-Glib-Object-Introspection.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pnam    Glib-Object-Introspection
6 %include        /usr/lib/rpm/macros.perl
7 Summary:        Perl Glib Object-Introspection bindings
8 Summary(pl.UTF-8):      Wiązania Glib Object-Introspection dla Perla
9 Name:           perl-Glib-Object-Introspection
10 Version:        0.015
11 # place real perl-Glib version and set to 1 when required perl-Glib is released
12 Release:        2
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:  c3a7f69d2748b5d2d9b9cdfc838cb1ec
17 URL:            http://gtk2-perl.sourceforge.net/
18 BuildRequires:  gobject-introspection-devel >= 0.10.0
19 BuildRequires:  libffi-devel >= 3.0.0
20 BuildRequires:  perl-ExtUtils-Depends >= 0.300
21 BuildRequires:  perl-ExtUtils-PkgConfig >= 1.00
22 BuildRequires:  perl-Glib-devel >= 1.280
23 BuildRequires:  perl-devel >= 1:5.8.0
24 BuildRequires:  pkgconfig(libffi) >= 3.0.0
25 BuildRequires:  rpm-perlprov >= 4.1-13
26 %if %{with tests}
27 BuildRequires:  cairo-devel
28 BuildRequires:  glib2-devel >= 2.0
29 %endif
30 Requires:       gobject-introspection >= 0.10.0
31 Requires:       perl-Glib >= 1.280
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 Glib::Object::Introspection uses the gobject-introspection and libffi
36 projects to dynamically create Perl bindings for a wide variety of
37 libraries. Examples include gtk+, webkit, libsoup and many more.
38
39 %description -l pl.UTF-8
40 Glib::GObject::Introspection wykorzystuje projekty
41 gobject-introspection oraz libffi do dynamicznego tworzenia wiązań
42 Perla do wielu bibliotek, na przykład gtk+, webkit, libsoup.
43
44 %prep
45 %setup -q -n %{pnam}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50
51 %{__make} \
52         CC="%{__cc}" \
53         OPTIMIZE="%{rpmcflags}"
54
55 %{?with_tests:%{__make} test}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} pure_install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/Object/Introspection/.packlist
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc NEWS README
71 %dir %{perl_vendorarch}/Glib/Object
72 %{perl_vendorarch}/Glib/Object/Introspection.pm
73 %dir %{perl_vendorarch}/Glib/Object/Introspection
74 %{perl_vendorarch}/Glib/Object/Introspection/Install
75 %dir %{perl_vendorarch}/auto/Glib/Object
76 %dir %{perl_vendorarch}/auto/Glib/Object/Introspection
77 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Object/Introspection/Introspection.so
78 %{perl_vendorarch}/auto/Glib/Object/Introspection/Introspection.bs
79 %{_mandir}/man3/Glib::Object::Introspection.3pm*
This page took 0.057001 seconds and 2 git commands to generate.