]> git.pld-linux.org Git - packages/perl-Glib.git/blame_incremental - perl-Glib.spec
- release 2
[packages/perl-Glib.git] / perl-Glib.spec
... / ...
CommitLineData
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
7Summary: Perl Glib bindings
8Summary(pl.UTF-8): Wiązania Glib dla Perla
9Name: perl-Glib
10# note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch
11Version: 1.200
12Release: 2
13License: LGPL v2.1+
14Group: Development/Languages/Perl
15Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
16# Source0-md5: d5c693756c944e273e41434c642410c8
17URL: http://gtk2-perl.sourceforge.net/
18BuildRequires: glib2-devel >= 1:2.12.2
19BuildRequires: perl-ExtUtils-Depends >= 0.300
20BuildRequires: perl-ExtUtils-PkgConfig >= 1.06
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
23Requires: glib2 >= 1:2.12.2
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This module provides perl access to Glib and GLib's GObject libraries.
28
29%description -l pl.UTF-8
30Ten 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 CC="%{__cc}" \
41 OPTIMIZE="%{rpmcflags}"
42
43%{?with_tests:%{__make} test}
44
45%install
46rm -rf $RPM_BUILD_ROOT
47install -d $RPM_BUILD_ROOT%{perl_vendorarch}/{Gnome2,auto/Gnome2}
48
49%{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod
53rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
54rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%doc AUTHORS ChangeLog NEWS README*
62%{perl_vendorarch}/Glib.pm
63%dir %{perl_vendorarch}/Glib
64%{perl_vendorarch}/Glib/*.pm
65%{perl_vendorarch}/Glib/Install
66%{perl_vendorarch}/Glib/Object
67%dir %{perl_vendorarch}/auto/Glib
68%attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
69%{perl_vendorarch}/auto/Glib/Glib.bs
70%{_mandir}/man3/Glib*.3pm*
71# for Gnome2-related packages
72%dir %{perl_vendorarch}/Gnome2
73%dir %{perl_vendorarch}/auto/Gnome2
This page took 0.031768 seconds and 4 git commands to generate.