3 %bcond_without tests # do not perform "make test"
5 %define pnam Glib-Object-Introspection
6 Summary: Perl Glib Object-Introspection bindings
7 Summary(pl.UTF-8): Wiązania Glib Object-Introspection dla Perla
8 Name: perl-Glib-Object-Introspection
12 Group: Development/Languages/Perl
13 Source0: https://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
14 # Source0-md5: 0d8ab0bf9c4d0a72eb35c16a2ff10d42
15 URL: http://gtk2-perl.sourceforge.net/
16 BuildRequires: gobject-introspection-devel >= 1.60.0
17 BuildRequires: libffi-devel >= 3.0.0
18 BuildRequires: perl-ExtUtils-Depends >= 0.300
19 BuildRequires: perl-ExtUtils-PkgConfig >= 1.00
20 BuildRequires: perl-Glib-devel >= 1.320
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: pkgconfig(libffi) >= 3.0.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: rpmbuild(macros) >= 1.745
26 BuildRequires: cairo-devel
27 BuildRequires: glib2-devel >= 2.0
29 Requires: gobject-introspection >= 1.60.0
30 Requires: perl-Glib >= 1.320
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Glib::Object::Introspection uses the gobject-introspection and libffi
35 projects to dynamically create Perl bindings for a wide variety of
36 libraries. Examples include gtk+, webkit, libsoup and many more.
38 %description -l pl.UTF-8
39 Glib::GObject::Introspection wykorzystuje projekty
40 gobject-introspection oraz libffi do dynamicznego tworzenia wiązań
41 Perla do wielu bibliotek, na przykład gtk+, webkit, libsoup.
44 %setup -q -n %{pnam}-%{version}
47 %{__perl} Makefile.PL \
52 OPTIMIZE="%{rpmcflags}"
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
59 %{__make} pure_install \
60 DESTDIR=$RPM_BUILD_ROOT
62 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/Object/Introspection/.packlist
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_bindir}/perli11ndoc
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 %{_mandir}/man3/Glib::Object::Introspection.3pm*