]>
Commit | Line | Data |
---|---|---|
c293b7ff | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # do perform "make test"; disabled fusermount restricted | |
53382ba8 | 4 | |
0464aba5 | 5 | %define pdir Fuse |
53382ba8 | 6 | %include /usr/lib/rpm/macros.perl |
c293b7ff | 7 | Summary: Fuse - write filesystems in Perl using FUSE |
c293b7ff | 8 | Name: perl-Fuse |
0464aba5 | 9 | Version: 0.16.1 |
c293b7ff | 10 | Release: 1 |
11 | # same as perl (REMOVE THIS LINE IF NOT TRUE) | |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
b64527b2 | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/DPATES/%{pdir}-%{version}.tar.gz |
0464aba5 | 15 | # Source0-md5: 29534329808d8cf42fc78ca26c6fa698 |
53382ba8 | 16 | URL: http://search.cpan.org/dist/Fuse/ |
c293b7ff | 17 | BuildRequires: libfuse-devel |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
c293b7ff | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | This lets you implement filesystems in perl, through the FUSE | |
24 | (Filesystem in USErspace) kernel/lib interface. | |
25 | ||
26 | FUSE expects you to implement callbacks for the various functions. | |
27 | ||
28 | In the following definitions, "errno" can be 0 (for a success), | |
53382ba8 | 29 | - -EINVAL, -ENOENT, -EONFIRE, any integer less than 1 really. |
c293b7ff | 30 | |
53382ba8 ER |
31 | You can import standard error constants by saying something like "use |
32 | POSIX qw(EDOTDOT ENOANO);". | |
c293b7ff | 33 | |
53382ba8 ER |
34 | Every constant you need (file types, open() flags, error values, etc) |
35 | can be imported either from POSIX or from Fcntl, often both. See their | |
36 | respective documentations, for more information. | |
c293b7ff | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} \ | |
45 | CC="%{__cc}" \ | |
46 | OPTIMIZE="%{rpmcflags}" | |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} pure_install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc AUTHORS Changes README | |
65 | %{perl_vendorarch}/Fuse.pm | |
66 | %dir %{perl_vendorarch}/auto/Fuse/ | |
c293b7ff | 67 | %attr(755,root,root) %{perl_vendorarch}/auto/Fuse/*.so |
b56f1f26 | 68 | %{perl_vendorarch}/auto/Fuse/autosplit.ix |
c293b7ff | 69 | %{_mandir}/man3/* |
70 | %{_examplesdir}/%{name}-%{version} |