]>
Commit | Line | Data |
---|---|---|
18c883d0 MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
18c883d0 MP |
5 | %define pdir Filesys |
6 | %define pnam Virtual | |
4298cbd7 | 7 | Summary: Filesys::Virtual - Perl extension to provide a framework for a virtual filesystem |
e102587a | 8 | Summary(pl.UTF-8): Filesys::Virtual - szkielet dla wirtualnych systemów plików |
18c883d0 | 9 | Name: perl-Filesys-Virtual |
4298cbd7 | 10 | Version: 0.06 |
2ed1bbd6 | 11 | Release: 2 |
4298cbd7 | 12 | # same as perl |
7d7b92e9 | 13 | License: GPL v1+ or Artistic |
18c883d0 MP |
14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
4298cbd7 JB |
16 | # Source0-md5: 825f02140a699cd11d23ebce178746fb |
17 | URL: http://search.cpan.org/dist/Filesys-Virtual/ | |
18c883d0 MP |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
18c883d0 MP |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This module implements a base class for virtual filesystems. | |
25 | ||
b7d51dce JR |
26 | %description -l pl.UTF-8 |
27 | Ten moduł implementuje klasę bazową dla wirtualnych systemów plików. | |
4298cbd7 | 28 | |
18c883d0 MP |
29 | %prep |
30 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
31 | ||
32 | %build | |
33 | %{__perl} Makefile.PL \ | |
34 | INSTALLDIRS=vendor | |
35 | ||
36 | %{__make} | |
37 | ||
38 | %{?with_tests:%{__make} test} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
7d7b92e9 | 45 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Filesys/Virtual |
18c883d0 MP |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc Changes README | |
53 | # next one could be moved to perl-modules if more things | |
7d7b92e9 | 54 | # not depending on this module will require that directory |
18c883d0 | 55 | %dir %{perl_vendorlib}/Filesys |
4298cbd7 | 56 | # modules using this one puts them under next dir |
e040f422 | 57 | %dir %{perl_vendorlib}/Filesys/Virtual |
18c883d0 MP |
58 | %{perl_vendorlib}/Filesys/Virtual.pm |
59 | %{_mandir}/man3/* |