]>
Commit | Line | Data |
---|---|---|
df4a0303 | 1 | # |
2 | # Conditional build: | |
b4d7cabd | 3 | %bcond_without tests # do not perform "make test" |
984f8615 | 4 | |
52e50d37 | 5 | %define pdir OLE |
6 | %define pnam Storage_Lite | |
984f8615 | 7 | %include /usr/lib/rpm/macros.perl |
5790b1ce | 8 | Summary: OLE::Storage_Lite Perl module - simple class for OLE document interface |
e04b32b6 | 9 | Summary(pl.UTF-8): Moduł Perla OLE::Storage_Lite - prosta klasa obsługująca interfejs dokumentów OLE |
18221728 | 10 | Name: perl-OLE-Storage_Lite |
ec2e1a8a | 11 | Version: 0.19 |
fffe5758 | 12 | Release: 1 |
f4f7c3e0 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
df4a0303 | 15 | Group: Development/Languages/Perl |
b77b79a2 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
ec2e1a8a | 17 | # Source0-md5: 1a713f5342c7d90e54ab0d9659650296 |
984f8615 ER |
18 | URL: http://search.cpan.org/dist/OLE-Storage_Lite/ |
19 | BuildRequires: perl-IO-stringy | |
d90ccaf5 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
7306de5f | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
df4a0303 | 22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
984f8615 ER |
26 | This module allows you to read and write an OLE-Structured file. The |
27 | module will work on the majority of Windows, UNIX and Macintosh | |
bb1b4997 TP |
28 | platforms. |
29 | ||
e6da64ae | 30 | %description -l pl.UTF-8 |
984f8615 ER |
31 | Moduł ten umożliwia odczyt i zapis plików w standardzie OLE. Jest |
32 | niezależny od platformy systemowej i powinien działać na systemach | |
df4a0303 | 33 | Windows, UNIX i Macintosh. |
34 | ||
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
7306de5f | 39 | %{__perl} Makefile.PL \ |
bb1b4997 | 40 | INSTALLDIRS=vendor |
df4a0303 | 41 | %{__make} |
b4d7cabd | 42 | |
43 | %{?with_tests:%{__make} test} | |
df4a0303 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
48 | ||
a9f36116 | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
984f8615 | 51 | cp -p sample/{README,*.pl,*xls} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
df4a0303 | 52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
7306de5f | 59 | %{perl_vendorlib}/OLE/*.pm |
df4a0303 | 60 | %{_mandir}/man3/* |
61 | %{_examplesdir}/%{name}-%{version} |