3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
6 %define pnam Storage_Lite
7 Summary: OLE::Storage_Lite perl module
8 Summary(pl): Modu³ OLE::Storage_Lite
9 Name: perl-%{pdir}-%{pnam}
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 BuildRequires: perl >= 5.6.1
16 BuildRequires: rpm-perlprov >= 4.0.2-56
17 BuildRequires: perl-IO-stringy
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This module allows you to read and write an OLE-Structured file.
23 The module will work on the majority of Windows, UNIX and Macintosh
27 Modu³ ten umo¿liwia odczyt i zapis plików w standardziee OLE.
28 Jest niezale¿ny od platformy systemowej i powinien dzia³aæ na systemach
29 Windows, UNIX i Macintosh.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{!?_without_tests:%{__make} test}
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
43 %{__make} install DESTDIR=$RPM_BUILD_ROOT
44 install sample/{README,*.pl,*xls} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_sitelib}/OLE/*.pm
54 %{_examplesdir}/%{name}-%{version}