]> git.pld-linux.org Git - packages/perl-Date-ICal.git/blobdiff - perl-Date-ICal.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Date-ICal.git] / perl-Date-ICal.spec
index 2e238dfc717cde252156c9b25838d7892e82f167..ee401a503841bd1d3ca5edca51e9acc255743337 100644 (file)
@@ -1,45 +1,59 @@
-%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
+#
+# Conditional build:
+%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.69
-Release:       1
-License:       ?
+Version:       1.72
+Release:       5
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6.1
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 69e10541f5da09fc0f53474073da6744
+URL:           http://search.cpan.org/dist/Date-ICal/
+BuildRequires: perl-Date-Leapyear >= 1.03
+BuildRequires: perl-Test-Simple >= 0.19
+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}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf README Changes
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Date/ICal.pm
-%{perl_sitelib}/Date/ICal
+%doc README Changes
+%{perl_vendorlib}/Date/ICal.pm
+%{perl_vendorlib}/Date/ICal
 %{_mandir}/man3/*
This page took 0.124894 seconds and 4 git commands to generate.