[packages/perl-Sys-Filesystem-MountPoint] Initial
arekm
arekm at pld-linux.org
Wed Apr 26 13:29:15 CEST 2023
commit 7e56bbe613e63f26f26e6bea566f84a12a8276c3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Apr 26 13:28:28 2023 +0200
Initial
perl-Sys-Filesystem-MountPoint.spec | 55 +++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
---
diff --git a/perl-Sys-Filesystem-MountPoint.spec b/perl-Sys-Filesystem-MountPoint.spec
new file mode 100644
index 0000000..a7e2ece
--- /dev/null
+++ b/perl-Sys-Filesystem-MountPoint.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Sys
+%define pnam Filesystem-MountPoint
+Summary: Sys::Filesystem::MountPoint - shortcuts to resolve paths and devices to mount points
+Name: perl-Sys-Filesystem-MountPoint
+Version: 1.02
+Release: 1
+License: unknown
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 48ca0252c812dcfb607ef45e45677842
+# generic URL, check or change before uncommenting
+#URL: https://metacpan.org/release/Sys-Filesystem-MountPoint
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires: perl(Getopt::Std::Strict) >= 1.01
+BuildRequires: perl(Sys::Filesystem) >= 1.22
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+What if you have a path of a file on disk, and you want to know what
+that file's mount point is? Or a device, and you want to resolve it?
+These are shortcuts to get that kind of info.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/mounpointq
+%{perl_vendorlib}/Sys/Filesystem/MountPoint.pm
+%{_mandir}/man3/Sys::Filesystem::MountPoint.3*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Sys-Filesystem-MountPoint.git/commitdiff/7e56bbe613e63f26f26e6bea566f84a12a8276c3
More information about the pld-cvs-commit
mailing list