3 %bcond_without tests # do not perform "make test"
6 %define pnam Storage_Lite
7 Summary: OLE::Storage_Lite Perl module - simple class for OLE document interface
8 Summary(pl.UTF-8): Moduł Perla OLE::Storage_Lite - prosta klasa obsługująca interfejs dokumentów OLE
9 Name: perl-OLE-Storage_Lite
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 1a713f5342c7d90e54ab0d9659650296
17 URL: http://search.cpan.org/dist/OLE-Storage_Lite/
18 BuildRequires: perl-IO-stringy
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module allows you to read and write an OLE-Structured file. The
26 module will work on the majority of Windows, UNIX and Macintosh
29 %description -l pl.UTF-8
30 Moduł ten umożliwia odczyt i zapis plików w standardzie OLE. Jest
31 niezależny od platformy systemowej i powinien działać na systemach
32 Windows, UNIX i Macintosh.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 DESTDIR=$RPM_BUILD_ROOT
50 cp -p sample/{README,*.pl,*xls} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/OLE/*.pm
60 %{_examplesdir}/%{name}-%{version}