]> git.pld-linux.org Git - packages/perl-Sub-Info.git/commitdiff
- initial
authorMarcin Krol <hawk@tld-linux.org>
Sat, 10 Mar 2018 17:55:47 +0000 (17:55 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 10 Mar 2018 17:55:47 +0000 (17:55 +0000)
perl-Sub-Info.spec [new file with mode: 0644]

diff --git a/perl-Sub-Info.spec b/perl-Sub-Info.spec
new file mode 100644 (file)
index 0000000..6252c96
--- /dev/null
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define        pdir    Sub
+%define        pnam    Info
+%include       /usr/lib/rpm/macros.perl
+Summary:       Sub::Info - Tool for inspecting subroutines
+Summary(pl.UTF-8):     Term::Info - Narzędzie do sprawdzania podprogramów
+Name:          perl-Sub-Info
+Version:       0.002
+Release:       2
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 335345b534fc0539c894050f7814cbda
+URL:           http://search.cpan.org/dist/Sub-Info/
+BuildRequires: perl-devel
+BuildRequires: rpm-perlprov
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tool to inspect subroutines.
+
+%description -l pl.UTF-8
+Narzędzie do sprawdzania podprogramów.
+
+%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} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{perl_vendorlib}/Sub/Info.pm
+%{_mandir}/man3/Sub::Info.3pm*
This page took 0.067618 seconds and 4 git commands to generate.