]>
Commit | Line | Data |
---|---|---|
7c8bc3c1 | 1 | # |
2 | # Conditional build: | |
0bfa2249 | 3 | %bcond_with tests # perform "make test" (requires DISPLAY) |
7c8bc3c1 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Gnome2 | |
7 | %define pnam Vte | |
8 | Summary: Perl vte bindings | |
939fdeaf | 9 | Summary(pl.UTF-8): Wiązania vte dla Perla |
7c8bc3c1 | 10 | Name: perl-Gnome2-Vte |
0bfa2249 | 11 | Version: 0.10 |
292551d2 | 12 | Release: 7 |
33301f60 | 13 | License: LGPL v2.1+ |
7c8bc3c1 | 14 | Group: Development/Languages/Perl |
33301f60 | 15 | Source0: http://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz |
0bfa2249 | 16 | # Source0-md5: 821d413610733259db87ec40d0cb00fc |
7c8bc3c1 | 17 | URL: http://gtk2-perl.sourceforge.net/ |
7c8bc3c1 | 18 | BuildRequires: perl-ExtUtils-Depends >= 0.205 |
19 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.07 | |
0bfa2249 JB |
20 | BuildRequires: perl-Glib-devel >= 1.132 |
21 | BuildRequires: perl-Gtk2-devel >= 1.133 | |
7c8bc3c1 | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
23 | BuildRequires: rpm-perlprov >= 4.1-13 | |
0bfa2249 | 24 | BuildRequires: vte0-devel >= 0.13.7 |
7c8bc3c1 | 25 | Requires: perl-Glib >= 1.132 |
26 | Requires: perl-Gtk2 >= 1.133 | |
0bfa2249 | 27 | Requires: vte0 >= 0.13.7 |
7c8bc3c1 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | This module provides Perl access to vte library. | |
32 | ||
b0fea27f JR |
33 | %description -l pl.UTF-8 |
34 | Ten moduł daje dostęp z poziomu Perla do biblioteki vte. | |
7c8bc3c1 | 35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | ||
43 | %{__make} \ | |
fe7e9623 | 44 | CC="%{__cc}" \ |
7c8bc3c1 | 45 | OPTIMIZE="%{rpmcflags}" |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
33301f60 | 55 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/Vte/*.pod |
7c8bc3c1 | 56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
0bfa2249 | 62 | %doc ChangeLog.pre-git NEWS README |
6ea811bc JB |
63 | %{perl_vendorarch}/Gnome2/Vte.pm |
64 | %dir %{perl_vendorarch}/Gnome2/Vte | |
65 | %{perl_vendorarch}/Gnome2/Vte/Install | |
66 | %dir %{perl_vendorarch}/auto/Gnome2/Vte | |
33301f60 | 67 | %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/Vte/Vte.so |
33301f60 | 68 | %{_mandir}/man3/Gnome2::Vte*.3pm* |