]> git.pld-linux.org Git - packages/perl-Glib.git/blob - perl-Glib.spec
86ce60fc2b5e0198906efeba15737746db17b3ec
[packages/perl-Glib.git] / perl-Glib.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pnam    Glib
7 Summary:        Perl Glib bindings
8 Summary(pl.UTF-8):      Wiązania Glib dla Perla
9 Name:           perl-Glib
10 # note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch
11 Version:        1.162
12 Release:        2
13 License:        LGPL v2.1+
14 Group:          Development/Languages/Perl
15 Source0:        http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
16 # Source0-md5:  b2c3e4bb5e56c15709df2dd9a6704886
17 URL:            http://gtk2-perl.sourceforge.net/
18 BuildRequires:  glib2-devel >= 1:2.12.2
19 BuildRequires:  perl-ExtUtils-Depends >= 0.201
20 BuildRequires:  perl-ExtUtils-PkgConfig >= 1.06
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 Requires:       glib2 >= 1:2.12.2
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
29 %description -l pl.UTF-8
30 Ten moduł daje dostęp z poziomu Perla do bibliotek GLib i GObject.
31
32 %prep
33 %setup -q -n %{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38
39 %{__make} \
40         OPTIMIZE="%{rpmcflags}"
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{perl_vendorarch}/{Gnome2,auto/Gnome2}
47
48 %{__make} pure_install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod
52 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
53 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc AUTHORS ChangeLog NEWS README*
61 %{perl_vendorarch}/Glib.pm
62 %dir %{perl_vendorarch}/Glib
63 %{perl_vendorarch}/Glib/*.pm
64 %{perl_vendorarch}/Glib/Install
65 %{perl_vendorarch}/Glib/Object
66 %dir %{perl_vendorarch}/auto/Glib
67 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
68 %{perl_vendorarch}/auto/Glib/Glib.bs
69 %{_mandir}/man3/Glib*.3pm*
70 # for Gnome2-related packages
71 %dir %{perl_vendorarch}/Gnome2
72 %dir %{perl_vendorarch}/auto/Gnome2
This page took 0.069958 seconds and 3 git commands to generate.