]>
Commit | Line | Data |
---|---|---|
a2820eaf | 1 | # |
2 | # Conditional build: | |
ec9b7e4b | 3 | %bcond_without tests # do not perform "make test" |
a2820eaf | 4 | # |
a2820eaf | 5 | %include /usr/lib/rpm/macros.perl |
8d03ed46 | 6 | %define pnam Glib |
a2820eaf | 7 | Summary: Perl Glib bindings |
bcbbc3ff | 8 | Summary(pl.UTF-8): Wiązania Glib dla Perla |
a2820eaf | 9 | Name: perl-Glib |
89a5b2ec | 10 | # note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch |
18516b9f | 11 | Version: 1.183 |
656d010d | 12 | Release: 1 |
a1c9efd6 | 13 | License: LGPL v2.1+ |
a2820eaf | 14 | Group: Development/Languages/Perl |
aca6586e | 15 | Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz |
18516b9f | 16 | # Source0-md5: 582fc784f05802f3a8e592a53a3099c4 |
f9622589 | 17 | URL: http://gtk2-perl.sourceforge.net/ |
89a5b2ec | 18 | BuildRequires: glib2-devel >= 1:2.12.2 |
5fe2d151 | 19 | BuildRequires: perl-ExtUtils-Depends >= 0.300 |
e080889e | 20 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.06 |
a153f89c | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
a2820eaf | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
89a5b2ec | 23 | Requires: glib2 >= 1:2.12.2 |
a2820eaf | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | This module provides perl access to Glib and GLib's GObject libraries. | |
28 | ||
73d26e9b JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł daje dostęp z poziomu Perla do bibliotek GLib i GObject. | |
3c0e6838 | 31 | |
a2820eaf | 32 | %prep |
07d67a93 | 33 | %setup -q -n %{pnam}-%{version} |
a2820eaf | 34 | |
35 | %build | |
36 | %{__perl} Makefile.PL \ | |
37 | INSTALLDIRS=vendor | |
38 | ||
39 | %{__make} \ | |
e262c27f | 40 | CC="%{__cc}" \ |
a2820eaf | 41 | OPTIMIZE="%{rpmcflags}" |
42 | ||
ec9b7e4b | 43 | %{?with_tests:%{__make} test} |
a2820eaf | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
f1b5acd7 | 47 | install -d $RPM_BUILD_ROOT%{perl_vendorarch}/{Gnome2,auto/Gnome2} |
a2820eaf | 48 | |
89a5b2ec | 49 | %{__make} pure_install \ |
a2820eaf | 50 | DESTDIR=$RPM_BUILD_ROOT |
51 | ||
ec9b7e4b | 52 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod |
feb5177c | 53 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod |
9c2036ef | 54 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist |
ec9b7e4b | 55 | |
a2820eaf | 56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
6a44e5b5 | 61 | %doc AUTHORS ChangeLog NEWS README* |
4a04421c | 62 | %{perl_vendorarch}/Glib.pm |
a2820eaf | 63 | %dir %{perl_vendorarch}/Glib |
41e220a9 | 64 | %{perl_vendorarch}/Glib/*.pm |
65 | %{perl_vendorarch}/Glib/Install | |
66 | %{perl_vendorarch}/Glib/Object | |
3c0e6838 | 67 | %dir %{perl_vendorarch}/auto/Glib |
59cde2ec JB |
68 | %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so |
69 | %{perl_vendorarch}/auto/Glib/Glib.bs | |
4a04421c | 70 | %{_mandir}/man3/Glib*.3pm* |
f1b5acd7 JB |
71 | # for Gnome2-related packages |
72 | %dir %{perl_vendorarch}/Gnome2 | |
73 | %dir %{perl_vendorarch}/auto/Gnome2 |