3 %bcond_without tests # perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Event-Sunrise
8 Summary: DateTime::Event::Sunrise - Perl DateTime extension for computing the sunrise/sunset on a given day
9 Summary(pl.UTF-8): DateTime::Event::Sunrise - moduł Perla do obliczania wschodów i zachodów Słońca
10 Name: perl-DateTime-Event-Sunrise
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 9aa0c4e005d6b8c985f1e9ae8d04047c
18 URL: http://search.cpan.org/dist/DateTime-Event-Sunrise/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module will computes the time of sunrise and sunset for a given
26 date and a given location. The computation uses Paul Schlyter's
28 Actually, the module creates a DateTime::Event::Sunrise object or
29 a DateTime::Set object, which are used to generate the sunrise or
30 the sunset times for a given location and for any date.
32 %description -l pl.UTF-8
33 Ten moduł oblicza momenty wschodów i zachodów Słońca dla
34 podanej daty i lokalizacji. Obliczenia wykorzystują algorytm Paula
35 Schlytera. Moduł tworzy obiekty typu DateTime::Event::Sunrise lub
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/DateTime/Event/Sunrise.pm
61 %{_mandir}/man3/DateTime::Event::Sunrise.*