#
# Conditional build:
-# _without_tests - do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
-%define pdir Date
-%define pnam ICal
-Summary: Perl extension for ICalendar date objects
-Summary(pl): Modu³ perla Date::ICal
+%bcond_without tests # do not perform "make test"
+
+%define pdir Date
+%define pnam ICal
+Summary: Date::ICal - Perl extension for ICalendar date objects
+Summary(pl.UTF-8): Date::ICal - rozszerzenie Perla o obiekty czasu ICalendar
Name: perl-Date-ICal
Version: 1.72
-Release: 2
-License: unknown
+Release: 5
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 69e10541f5da09fc0f53474073da6744
-BuildRequires: perl-devel >= 5.6.1
+URL: http://search.cpan.org/dist/Date-ICal/
BuildRequires: perl-Date-Leapyear >= 1.03
-BuildRequires: perl-Storable
BuildRequires: perl-Test-Simple >= 0.19
-BuildRequires: perl-Time-HiRes
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Perl extension for ICalendar date objects.
+Perl module Date::ICal talks the ICal date format, and is intended to
+be a base class for other date/calendar modules that know about ICal
+time format also.
-%description -l pl
-Rozszerzenie perla do obiektów danych ICalendar.
+%description -l pl.UTF-8
+Moduł Perla Date::ICal komunikuje sie za pomocą formatu daty ICal.
+Jest on zaprojektowany jako klasa bazowa dla innych modułów
+daty/kalendarza, rozumiejących ICal jako jeden z formatów czasu.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT