]>
Commit | Line | Data |
---|---|---|
a4e9a820 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pnam Glib-Object-Introspection | |
a4e9a820 JB |
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 | |
33103ee5 | 9 | Version: 0.047 |
2ab70337 | 10 | Release: 4 |
a4e9a820 JB |
11 | License: LGPL v2.1+ |
12 | Group: Development/Languages/Perl | |
13 | Source0: http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz | |
33103ee5 | 14 | # Source0-md5: 1fe79aa2eaada96f0b2bdacb6bac960d |
a4e9a820 JB |
15 | URL: http://gtk2-perl.sourceforge.net/ |
16 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
d37f909a | 17 | BuildRequires: libffi-devel >= 3.0.0 |
a4e9a820 JB |
18 | BuildRequires: perl-ExtUtils-Depends >= 0.300 |
19 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.00 | |
bd1f337b | 20 | BuildRequires: perl-Glib-devel >= 1.320 |
a4e9a820 | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
d37f909a | 22 | BuildRequires: pkgconfig(libffi) >= 3.0.0 |
a4e9a820 JB |
23 | BuildRequires: rpm-perlprov >= 4.1-13 |
24 | %if %{with tests} | |
25 | BuildRequires: cairo-devel | |
26 | BuildRequires: glib2-devel >= 2.0 | |
27 | %endif | |
28 | Requires: gobject-introspection >= 0.10.0 | |
bd1f337b | 29 | Requires: perl-Glib >= 1.320 |
a4e9a820 JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | Glib::Object::Introspection uses the gobject-introspection and libffi | |
34 | projects to dynamically create Perl bindings for a wide variety of | |
35 | libraries. Examples include gtk+, webkit, libsoup and many more. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Glib::GObject::Introspection wykorzystuje projekty | |
39 | gobject-introspection oraz libffi do dynamicznego tworzenia wiązań | |
40 | Perla do wielu bibliotek, na przykład gtk+, webkit, libsoup. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
48 | ||
49 | %{__make} \ | |
50 | CC="%{__cc}" \ | |
51 | OPTIMIZE="%{rpmcflags}" | |
52 | ||
53 | %{?with_tests:%{__make} test} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} pure_install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/Object/Introspection/.packlist | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc NEWS README | |
bd1f337b | 69 | %attr(755,root,root) %{_bindir}/perli11ndoc |
a4e9a820 JB |
70 | %dir %{perl_vendorarch}/Glib/Object |
71 | %{perl_vendorarch}/Glib/Object/Introspection.pm | |
a4e9a820 JB |
72 | %dir %{perl_vendorarch}/Glib/Object/Introspection |
73 | %{perl_vendorarch}/Glib/Object/Introspection/Install | |
74 | %dir %{perl_vendorarch}/auto/Glib/Object | |
75 | %dir %{perl_vendorarch}/auto/Glib/Object/Introspection | |
76 | %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Object/Introspection/Introspection.so | |
a4e9a820 | 77 | %{_mandir}/man3/Glib::Object::Introspection.3pm* |