[packages/perl-Dir-Self] - new

qboosh qboosh at pld-linux.org
Sun Jul 2 12:42:11 CEST 2017


commit 9b748fb135da91dec5401ef841f1f7e590c7fc94
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 2 12:43:35 2017 +0200

    - new

 perl-Dir-Self.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
---
diff --git a/perl-Dir-Self.spec b/perl-Dir-Self.spec
new file mode 100644
index 0000000..2f21306
--- /dev/null
+++ b/perl-Dir-Self.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Dir
+%define		pnam	Self
+%include	/usr/lib/rpm/macros.perl
+Summary:	Dir::Self - a __DIR__ constant for the directory your source file is in
+Summary(pl.UTF-8):	Dir::Self - stała __DIR__ dla katalogu, w którym znajduje się plik źródłowy
+Name:		perl-Dir-Self
+Version:	0.11
+Release:	1
+# same as perl 5.8.8+
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Dir/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	e484446c3aa042737c0b7cbd0fb2f904
+URL:		http://search.cpan.org/dist/Dir-Self/
+BuildRequires:	perl-ExtUtils-MakeMaker >= 6.48
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Test-Simple
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Perl has two pseudo-constants describing the current location in your
+source code, __FILE__ and __LINE__. This module adds __DIR__, which
+expands to the directory your source file is in, as an absolute
+pathname.
+
+%description -l pl.UTF-8
+Perl ma dwie pseudo-stałe opisujące aktualne położenie kodu
+źródłowego: __FILE__ i __LINE__. Ten moduł dodaje __DIR__, rozwijającą
+się do katalogu, w którym znajduje się plik źródłowy, w postaci
+ścieżki bezwzględnej.
+
+%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)
+%doc Changes README
+%{perl_vendorlib}/Dir/Self.pm
+%{_mandir}/man3/Dir::Self.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Dir-Self.git/commitdiff/9b748fb135da91dec5401ef841f1f7e590c7fc94



More information about the pld-cvs-commit mailing list