3 %bcond_without tests # do not perform "make test"
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
11 # place real perl-Glib version and set to 1 when required perl-Glib is released
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
27 BuildRequires: cairo-devel
28 BuildRequires: glib2-devel >= 2.0
30 Requires: gobject-introspection >= 0.10.0
31 Requires: perl-Glib >= 1.280
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
45 %setup -q -n %{pnam}-%{version}
48 %{__perl} Makefile.PL \
53 OPTIMIZE="%{rpmcflags}"
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
60 %{__make} pure_install \
61 DESTDIR=$RPM_BUILD_ROOT
63 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/Object/Introspection/.packlist
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %dir %{perl_vendorarch}/Glib/Object
72 %{perl_vendorarch}/Glib/Object/Introspection.pm
73 %dir %{perl_vendorarch}/Glib/Object
74 %dir %{perl_vendorarch}/Glib/Object/Introspection
75 %{perl_vendorarch}/Glib/Object/Introspection/Install
76 %dir %{perl_vendorarch}/auto/Glib/Object
77 %dir %{perl_vendorarch}/auto/Glib/Object/Introspection
78 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Object/Introspection/Introspection.so
79 %{perl_vendorarch}/auto/Glib/Object/Introspection/Introspection.bs
80 %{_mandir}/man3/Glib::Object::Introspection.3pm*