-# $Revision:
#
# Conditional build:
%bcond_without tests # do not perform "make test"
%define pdir common
%define pnam sense
Summary: common::sense - save a tree AND a kitten, use common::sense!
-Summary(pl.UTF-8): common::sense - dostarcza zdroworozsądkowe ustawienia domyślne
+Summary(pl.UTF-8): common::sense - zdroworozsądkowe ustawienia domyślne dla programów w Perlu
Name: perl-common-sense
-Version: 2.01
-Release: 1
-License: unknown
+Version: 3.73
+Release: 5
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 61446704bf14d1b70c2be0ec479e2188
-URL: http://search.cpan.org/dist/Devel-FindRef/
+Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 6da7455a43ab60ed21c2a5e3b3ddeda8
+URL: http://search.cpan.org/dist/common-sense/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
-%{__make} \
- CC="%{__cc}" \
- OPTIMIZE="%{rpmcflags}"
+%{__make}
%{?with_tests:%{__make} test}
%{__make} pure_install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/common/sense.pod
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{perl_vendorlib}/common/sense.pm
+%doc Changes LICENSE README
+%dir %{perl_vendorarch}/common
+%{perl_vendorarch}/common/sense.pm
%{_mandir}/man3/common::sense.3pm*