]> git.pld-linux.org Git - SPECS.git/blob - perl-Data-ICal.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-Data-ICal.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Data
6 %define pnam    ICal
7 Summary:        Data::ICal.pm - Generates iCalendar (RFC 2445) calendar files
8 Name:           perl-Data-ICal
9 Version:        0.24
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 # Source0:      http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/%{pdir}-%{pnam}-%{version}.tar.gz
15 Source0:        https://cpan.metacpan.org/authors/id/B/BP/BPS/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  f90c55d07a03172f5f5ef516e8d45d3d
17 URL:            http://search.cpan.org/dist/Data-ICal/
18 BuildRequires:  perl-Class-ReturnValue
19 BuildRequires:  perl-Module-Install
20 BuildRequires:  perl-Test-LongString
21 BuildRequires:  perl-Test-NoWarnings
22 BuildRequires:  perl-Test-Simple
23 BuildRequires:  perl-Test-Warn
24 BuildRequires:  perl-Text-vFile-asData
25 BuildRequires:  perl-devel >= 1:5.8.0
26 BuildRequires:  rpm-perlprov >= 4.1-13
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 A Data::ICal object represents a VCALENDAR object as defined in the
32 iCalendar protocol (RFC 2445, MIME type "text/calendar"), as
33 implemented in many popular calendaring programs such as Apple's iCal.
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor < /dev/null
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc Changes
57 %{perl_vendorlib}/Data/ICal
58 %{perl_vendorlib}/Data/*.pm
59 %{_mandir}/man3/*
This page took 0.191015 seconds and 3 git commands to generate.