#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
%define pdir OLE
%define pnam Storage_Lite
-Summary: OLE::Storage_Lite perl module
-Summary(pl): Modu³ OLE::Storage_Lite
-Name: perl-%{pdir}-%{pnam}
-Version: 0.11
-Release: 1.1
-License: GPL
+Summary: OLE::Storage_Lite Perl module - simple class for OLE document interface
+Summary(pl): Modu³ Perla OLE::Storage_Lite - prosta klasa obs³uguj±ca interfejs dokumentów OLE
+Name: perl-OLE-Storage_Lite
+Version: 0.12
+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: 78edc8f66074787b98af92df9bc5cc79
-BuildRequires: perl-devel >= 5.6.1
+# Source0-md5: 4f28338c6c360ed1c5bb37e55eea23da
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: perl-IO-stringy
BuildArch: noarch
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
install sample/{README,*.pl,*xls} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean