]>
Commit | Line | Data |
---|---|---|
38aecad6 | 1 | # |
9ddfe430 | 2 | # Conditional build: |
ad469510 | 3 | %bcond_with tests # perform "make test" |
9ddfe430 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
fbb4405e | 6 | %define pnam Gnome2-VFS |
8edbdd18 | 7 | Summary: Perl bindings for the GNOME Virtual File System |
97f30c20 | 8 | Summary(pl.UTF-8): Dowiązania Perla dla biblioteki GNOME Virtual File System |
38aecad6 | 9 | Name: perl-Gnome2-VFS |
6268049f | 10 | Version: 1.080 |
f1e0040a | 11 | Release: 2 |
6268049f | 12 | License: LGPL v2+ |
9ddfe430 | 13 | Group: Development/Languages/Perl |
14 | Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz | |
6268049f | 15 | # Source0-md5: a01ce775f19040276eae4f9e5ca6a59c |
f81a942f | 16 | URL: http://gtk2-perl.sourceforge.net/ |
84687b3b | 17 | BuildRequires: gnome-vfs2-devel >= 2.14.1 |
c9abc558 | 18 | BuildRequires: perl-ExtUtils-Depends >= 0.201 |
19 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.03 | |
84687b3b JB |
20 | BuildRequires: perl-Glib >= 1.120 |
21 | BuildRequires: perl-Gtk2 >= 1.121 | |
9ddfe430 | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
23 | BuildRequires: rpm-perlprov >= 4.1-13 | |
84687b3b JB |
24 | Requires: gnome-vfs2-libs >= 2.14.1 |
25 | Requires: perl-Glib >= 1.120 | |
26 | Requires: perl-Gtk2 >= 1.121 | |
9ddfe430 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
aedeccaf | 30 | The VFS module allows a perl developer to use the GNOME Virtual File |
9ddfe430 | 31 | System. |
32 | ||
67f155ee JR |
33 | %description -l pl.UTF-8 |
34 | Moduł VFS pozwala programistom perlowym na używanie biblioteki GNOME | |
9ddfe430 | 35 | Virtual File System. |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | ||
44 | %{__make} \ | |
81317f3f | 45 | CC="%{__cc}" \ |
9ddfe430 | 46 | OPTIMIZE="%{rpmcflags}" |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
8760d876 | 53 | %{__make} pure_install \ |
9ddfe430 | 54 | DESTDIR=$RPM_BUILD_ROOT |
55 | ||
8760d876 | 56 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/VFS/{*,*/*,*/*/*}.pod |
9ddfe430 | 57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
8760d876 | 63 | %doc ChangeLog NEWS README |
9ddfe430 | 64 | %dir %{perl_vendorarch}/Gnome2/VFS |
9ddfe430 | 65 | %{perl_vendorarch}/Gnome2/VFS/Install |
66 | %{perl_vendorarch}/Gnome2/*.pm | |
8760d876 JB |
67 | %dir %{perl_vendorarch}/auto/Gnome2/VFS |
68 | %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/VFS/*.so | |
69 | %{perl_vendorarch}/auto/Gnome2/VFS/*.bs | |
6268049f | 70 | %{_mandir}/man3/Gnome2::VFS*.3pm* |