3 %bcond_with tests # perform "make test" (requires X server)
5 %include /usr/lib/rpm/macros.perl
7 %define pnam SourceView
8 Summary: Perl gtksourceview bindings
9 Summary(pl.UTF-8): Wiązania gtksourceview dla Perla
10 Name: perl-Gtk2-SourceView
14 Group: Development/Languages/Perl
15 Source0: http://dl.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 35f859153d9c8a41260f98ad969fcb78
17 URL: http://gtk2-perl.sourceforge.net/
18 BuildRequires: gtksourceview-devel >= 1.7.2
19 BuildRequires: perl-ExtUtils-Depends >= 0.205
20 BuildRequires: perl-ExtUtils-PkgConfig >= 1.07
21 BuildRequires: perl-Glib >= 1.132
22 BuildRequires: perl-Gnome2-Print >= 0.951
23 BuildRequires: perl-Gtk2 >= 1.133
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: rpm-perlprov >= 4.1-13
26 Requires: perl-Glib >= 1.132
27 Requires: perl-Gnome2-Print >= 0.951
28 Requires: perl-Gtk2 >= 1.133
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This module provides Perl access to gtksourceview library.
34 %description -l pl.UTF-8
35 Ten moduł daje dostęp z poziomu Perla do biblioteki gtksourceview.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
46 OPTIMIZE="%{rpmcflags}"
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
56 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Gtk2/SourceView/*.pod
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc AUTHORS README ChangeLog
64 %{perl_vendorarch}/Gtk2/SourceView.pm
65 %dir %{perl_vendorarch}/Gtk2/SourceView
66 %{perl_vendorarch}/Gtk2/SourceView/Install
67 %dir %{perl_vendorarch}/auto/Gtk2/SourceView
68 %attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/SourceView/*.so
69 %{perl_vendorarch}/auto/Gtk2/SourceView/*.bs