3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Storage_Lite
8 Summary: OLE::Storage_Lite Perl module - simple class for OLE document interface
9 Summary(pl): Modu³ Perla OLE::Storage_Lite - prosta klasa obs³uguj±ca interfejs dokumentów OLE
10 Name: perl-%{pdir}-%{pnam}
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 4f28338c6c360ed1c5bb37e55eea23da
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-IO-stringy
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module allows you to read and write an OLE-Structured file.
26 The module will work on the majority of Windows, UNIX and Macintosh
30 Modu³ ten umo¿liwia odczyt i zapis plików w standardziee OLE.
31 Jest 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 install 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}