File perl-Sys-Filesystem.spec of Package perl-Sys-Filesystem

#
# spec file for package perl-Sys-Filesystem
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           perl-Sys-Filesystem
Version:        1.408
Release:        0
%define cpan_name Sys-Filesystem
Summary:        Retrieve list of filesystems and their properties
License:        Apache-2.0
Group:          Development/Libraries/Perl
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(IPC::Cmd) >= 0.80
BuildRequires:  perl(Module::Pluggable) >= 4.8
BuildRequires:  perl(Params::Util) >= 1.00
BuildRequires:  perl(Test::More) >= 0.9
Requires:       perl(IPC::Cmd) >= 0.80
Requires:       perl(Module::Pluggable) >= 4.8
Requires:       perl(Params::Util) >= 1.00
%{perl_requires}

%description
Sys::Filesystem is intended to be a portable interface to list and query
filesystem names and their properties. At the time of writing there were
only Solaris and Win32 modules available on CPAN to perform this kind of
operation. This module hopes to provide a consistent API to list all,
mounted, unmounted and special filesystems on a system, and query as many
properties as possible with common aliases wherever possible.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CREDITS NOTICE README TODO
%license LICENSE

%changelog
openSUSE Build Service is sponsored by