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