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