]> git.pld-linux.org Git - packages/perl-Find-Lib.git/commitdiff
- added to PLD
authorlisu <lisu@pld-linux.org>
Thu, 19 Nov 2009 10:21:45 +0000 (10:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Find-Lib.spec -> 1.1

perl-Find-Lib.spec [new file with mode: 0644]

diff --git a/perl-Find-Lib.spec b/perl-Find-Lib.spec
new file mode 100644 (file)
index 0000000..aca7d88
--- /dev/null
@@ -0,0 +1,58 @@
+#
+# TODO: - fix "make test"
+#      - pl
+#
+# Conditional build:
+%bcond_without autodeps        # don't BR packages needed only for resolving deps
+%bcond_with    tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define                pdir    Find
+%define                pnam    Lib
+Summary:       Find::Lib - helper to smartly find libs to use in the filesystem tree 
+Name:          perl-Find-Lib
+Version:       1.01
+Release:       0.1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Find/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 8986f9679a88fb265a5e5cf4720f22a1
+URL:           http://search.cpan.org/dist/Find-Lib/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+# foo
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Helper to smartly find libs to use in the filesystem tree
+
+%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
+%{_mandir}/man3/Find::Lib.3pm*
+%dir %{perl_vendorlib}/Find
+%{perl_vendorlib}/Find/Lib.pm
This page took 0.053159 seconds and 4 git commands to generate.