From 7627f7fca4e448cb96455cc4d994c986b62bfd9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Sun, 8 Aug 2004 14:47:35 +0000 Subject: [PATCH] - new Changed files: perl-Class-Inspector.spec -> 1.1 --- perl-Class-Inspector.spec | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 perl-Class-Inspector.spec diff --git a/perl-Class-Inspector.spec b/perl-Class-Inspector.spec new file mode 100644 index 0000000..d751625 --- /dev/null +++ b/perl-Class-Inspector.spec @@ -0,0 +1,63 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Class +%define pnam Inspector +Summary: Class::Inspector - Provides information about classes +Summary(pl): Class::Inspector - Dostarcza informacji o klasach +Name: perl-Class-Inspector +Version: 1.06 +Release: 1 +# 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: 55392a383dc820b9052a058c9bc0c750 +URL: http://search.cpan.org/dist/Class-Imspector/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(File::Spec) >= 0.82 +BuildRequires: perl(Test::More) +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Class::Inspector allows you to get information about a loaded class. +Most or all of this information can be found in other ways, but they +arn't always very friendly, and usually involve a relatively high +level of Perl wizardry, or strange and unusual looking code. +Class::Inspector attempts to provide an easier, more friendly +interface to this information. + +# %description -l pl +# TODO + +%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) +%doc Changes README +%{perl_vendorlib}/Class/*.pm +%{_mandir}/man3/* -- 2.44.0