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