3 %bcond_without tests # do not perform "make test"
6 %define pnam Filesystem-MountPoint
7 Summary: Sys::Filesystem::MountPoint - shortcuts to resolve paths and devices to mount points
8 Name: perl-Sys-Filesystem-MountPoint
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 48ca0252c812dcfb607ef45e45677842
15 # generic URL, check or change before uncommenting
16 #URL: https://metacpan.org/release/Sys-Filesystem-MountPoint
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: rpmbuild(macros) >= 1.745
21 BuildRequires: perl(Getopt::Std::Strict) >= 1.01
22 BuildRequires: perl(Sys::Filesystem) >= 1.22
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 What if you have a path of a file on disk, and you want to know what
29 that file's mount point is? Or a device, and you want to resolve it?
30 These are shortcuts to get that kind of info.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
45 %{__make} pure_install \
46 DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %attr(755,root,root) %{_bindir}/mounpointq
54 %{perl_vendorlib}/Sys/Filesystem/MountPoint.pm
55 %{_mandir}/man3/Sys::Filesystem::MountPoint.3*