[perl-lib-abs] Import
Petr Pisar
ppisar at fedoraproject.org
Thu Mar 7 16:25:08 UTC 2013
commit ef12284da792cedc32c4af854aeeaf979d90a755
Author: Petr Písař <ppisar at redhat.com>
Date: Thu Mar 7 17:23:31 2013 +0100
Import
.gitignore | 1 +
perl-lib-abs.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bf35f29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lib-abs-0.92.tar.gz
diff --git a/perl-lib-abs.spec b/perl-lib-abs.spec
new file mode 100644
index 0000000..f9a2034
--- /dev/null
+++ b/perl-lib-abs.spec
@@ -0,0 +1,63 @@
+Name: perl-lib-abs
+Version: 0.92
+Release: 1%{?dist}
+Summary: Module lib that makes relative path absolute to caller
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/lib-abs/
+Source0: http://www.cpan.org/authors/id/M/MO/MONS/lib-abs-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: perl
+BuildRequires: perl(inc::Module::Install)
+BuildRequires: perl(Module::Install::AutoInstall)
+# Run-time:
+BuildRequires: perl(Carp)
+BuildRequires: perl(Cwd) >= 3.12
+BuildRequires: perl(lib)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Tests:
+BuildRequires: perl(Carp::Heavy)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(FindBin)
+BuildRequires: perl(overload)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(vars)
+BuildRequires: perl(XSLoader)
+# Optional tests:
+BuildRequires: perl(Test::Pod) >= 1.22
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(Carp)
+Requires: perl(Cwd) >= 3.12
+
+%description
+The main reason of this library is to transform relative paths to absolute
+at the BEGIN stage, and push transformed to @INC. Relative path basis is
+not the current working directory, but the location of file, where the
+statement is (caller file). When using common lib, relative paths stays
+relative to current working directory.
+
+%prep
+%setup -q -n lib-abs-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Wed Mar 06 2013 Petr Pisar <ppisar at redhat.com> 0.92-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..82193df 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d64cdde79c795f5980fc52588fdf56ce lib-abs-0.92.tar.gz
More information about the scm-commits
mailing list