]>
Commit | Line | Data |
---|---|---|
39ad1f75 | 1 | # |
2 | # Conditional build: | |
47e6da82 | 3 | %bcond_without tests # do not perform "make test" |
4075d9cd | 4 | |
062dbe6c | 5 | %define pdir Spreadsheet |
6 | %define pnam ParseExcel | |
cb2e2c45 | 7 | Summary: Spreadsheet::ParseExcel - get information from xls (Microsoft Excel) files |
cda4eb8e | 8 | Summary(pl.UTF-8): Spreadsheet::ParseExcel - odczyt informacji z plików w formacie xls (Microsoft Excel) |
ee1838ca | 9 | Name: perl-Spreadsheet-ParseExcel |
2e379939 | 10 | Version: 0.2603 |
6099206f | 11 | Release: 3 |
bc13abf9 | 12 | License: GPL or Artistic |
39ad1f75 | 13 | Group: Development/Languages/Perl |
ddb3526e | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
2e379939 | 15 | # Source0-md5: 6ee6257d4b66cb9e147a0b50603d1387 |
4075d9cd | 16 | URL: http://search.cpan.org/dist/Spreadsheet-ParseExcel/ |
39ad1f75 | 17 | BuildRequires: perl-OLE-Storage_Lite >= 0.08 |
4075d9cd ER |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
39ad1f75 | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
cb2e2c45 | 24 | Spreadsheet::ParseExcel makes you to get information from Excel95, |
25 | Excel97, Excel2000 file. | |
39ad1f75 | 26 | |
7f659b8e JR |
27 | %description -l pl.UTF-8 |
28 | Spreadsheet::ParseExcel umożliwia odczyt informacji z plików Excel95, | |
cb2e2c45 | 29 | Excel97 i Excel2000. |
39ad1f75 | 30 | |
31 | %prep | |
32 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
33 | ||
34 | %build | |
624346d5 | 35 | %{__perl} Makefile.PL \ |
706bd44d | 36 | INSTALLDIRS=vendor |
39ad1f75 | 37 | %{__make} |
47e6da82 | 38 | |
39 | %{?with_tests:%{__make} test} | |
39ad1f75 | 40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
44 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/Excel | |
45 | ||
47e6da82 | 46 | %{__make} install \ |
47 | DESTDIR=$RPM_BUILD_ROOT | |
4075d9cd ER |
48 | cp -p sample/{README,*.pl,res_*} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
49 | cp -p sample/Excel/*.xls $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/Excel | |
39ad1f75 | 50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc Changes README | |
624346d5 | 57 | %{perl_vendorlib}/Spreadsheet/ParseExcel.pm |
58 | %dir %{perl_vendorlib}/Spreadsheet/ParseExcel | |
59 | %{perl_vendorlib}/Spreadsheet/ParseExcel/*.pm | |
39ad1f75 | 60 | %{_mandir}/man3/* |
ee1838ca | 61 | %dir %{_examplesdir}/%{name}-%{version} |
62 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/x*.pl | |
63 | %{_examplesdir}/%{name}-%{version}/[^x]* |