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 # Source0-md5: 78edc8f66074787b98af92df9bc5cc79
16 BuildRequires: perl-devel >= 5.6.1
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: perl-IO-stringy
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module allows you to read and write an OLE-Structured file.
24 The module will work on the majority of Windows, UNIX and Macintosh
28 Modu³ ten umo¿liwia odczyt i zapis plików w standardziee OLE.
29 Jest niezale¿ny od platformy systemowej i powinien dzia³aæ na systemach
30 Windows, UNIX i Macintosh.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
39 %{!?_without_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45 %{__make} install DESTDIR=$RPM_BUILD_ROOT
46 install sample/{README,*.pl,*xls} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %{perl_vendorlib}/OLE/*.pm
56 %{_examplesdir}/%{name}-%{version}