]> git.pld-linux.org Git - SPECS.git/blob - perl-Sys-Filesystem-MountPoint.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / perl-Sys-Filesystem-MountPoint.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Sys
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
9 Version:        1.02
10 Release:        1
11 License:        unknown
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
20 %if %{with tests}
21 BuildRequires:  perl(Getopt::Std::Strict) >= 1.01
22 BuildRequires:  perl(Sys::Filesystem) >= 1.22
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} pure_install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
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*
This page took 0.376729 seconds and 3 git commands to generate.