]> git.pld-linux.org Git - packages/perl-Text-vCard.git/blob - perl-Text-vCard.spec
f84a1d6e2d94fdca9cb721d9372c06dbf18864b8
[packages/perl-Text-vCard.git] / perl-Text-vCard.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages needed only for resolving deps
4 %bcond_without  tests           # do not perform "make test"
5 #
6 %include        /usr/lib/rpm/macros.perl
7 %define         pdir    Text
8 %define         pnam    vCard
9 Summary:        Text::vCard - module to edit and create a single vCard (RFC 2426)
10 Summary(pl.UTF-8):      Text::vCard - moduł do edycji i tworzenia pojedynczych vCardów (RFC 2426)
11 Name:           perl-Text-vCard
12 Version:        2.10
13 Release:        1
14 # same as perl
15 License:        GPL v1+ or Artistic
16 Group:          Development/Languages/Perl
17 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5:  e6053a00633cc115b24f0457114a8b5d
19 URL:            http://search.cpan.org/dist/Text-vCard/
20 BuildRequires:  perl-devel >= 1:5.8.0
21 BuildRequires:  rpm-perlprov >= 4.1-13
22 %if %{with autodeps} || %{with tests}
23 BuildRequires:  perl-Class-Accessor-Chained
24 BuildRequires:  perl-File-Slurp
25 BuildRequires:  perl-Text-vFile-asData
26 %endif
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description 
31 This Perl module implements interface for both single vcard
32 (Text::vCard) and addressbook (Text::vCard::Addressbook). vCard is an
33 electronic business card. You will find that many applications (Apple
34 Address Book, MS Outlook, Evolution etc) can export and import vCards.
35 This package has been developed based on RFC 2426.  
36
37 %description -l pl.UTF-8
38 Ten moduł Perla implementuje interfejs do pojedynczych vcardów
39 (Text::vCard) oraz książek adresowych (Text::vCard::Addressbook).
40 vCard to elektroniczna wizytówka. Jest wiele aplikacji (Apple Address
41 Book, MS Outlook, Evolution itp.) potrafiących eksportować i
42 importować vCardy. Ten pakiet został stworzony w oparciu o RFC 2426.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50
51 %{__make}
52
53 %{?with_tests:%{__make} test}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} pure_install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc Changes TODO
67 %{perl_vendorlib}/Text/vCard.pm
68 %dir %{perl_vendorlib}/Text/vCard
69 %{perl_vendorlib}/Text/vCard/*.pm
70 %{_mandir}/man3/*
This page took 0.05066 seconds and 2 git commands to generate.