3 %bcond_with tests # do perform "make test"; disabled fusermount restricted
6 %include /usr/lib/rpm/macros.perl
7 Summary: Fuse - write filesystems in Perl using FUSE
11 # same as perl (REMOVE THIS LINE IF NOT TRUE)
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/DPATES/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 29534329808d8cf42fc78ca26c6fa698
16 URL: http://search.cpan.org/dist/Fuse/
17 BuildRequires: libfuse-devel
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This lets you implement filesystems in perl, through the FUSE
24 (Filesystem in USErspace) kernel/lib interface.
26 FUSE expects you to implement callbacks for the various functions.
28 In the following definitions, "errno" can be 0 (for a success),
29 - -EINVAL, -ENOENT, -EONFIRE, any integer less than 1 really.
31 You can import standard error constants by saying something like "use
32 POSIX qw(EDOTDOT ENOANO);".
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.
39 %setup -q -n %{pdir}-%{version}
42 %{__perl} Makefile.PL \
46 OPTIMIZE="%{rpmcflags}"
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc AUTHORS Changes README
65 %{perl_vendorarch}/Fuse.pm
66 %dir %{perl_vendorarch}/auto/Fuse/
67 %attr(755,root,root) %{perl_vendorarch}/auto/Fuse/*.so
68 %{perl_vendorarch}/auto/Fuse/autosplit.ix
70 %{_examplesdir}/%{name}-%{version}