[packages/perl-DateTime-Event-Sunrise] - initial, version 0.0505

adwol adwol at pld-linux.org
Fri Dec 25 21:17:42 CET 2015


commit efd2785a749d11998dbbebcee68a4db6212ab6b7
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Fri Dec 25 21:17:22 2015 +0100

    - initial, version 0.0505

 perl-DateTime-Event-Sunrise.spec | 61 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/perl-DateTime-Event-Sunrise.spec b/perl-DateTime-Event-Sunrise.spec
new file mode 100644
index 0000000..9a3a889
--- /dev/null
+++ b/perl-DateTime-Event-Sunrise.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without	tests		# perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	DateTime
+%define	pnam	Event-Sunrise
+Summary:	DateTime::Event::Sunrise - Perl DateTime extension for computing the sunrise/sunset on a given day
+Summary(pl.UTF-8):	DateTime::Event::Sunrise - moduł Perla do obliczania wschodów i zachodów Słońca
+Name:		perl-DateTime-Event-Sunrise
+Version:	0.0505
+Release:	1
+# 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:	9aa0c4e005d6b8c985f1e9ae8d04047c
+URL:		http://search.cpan.org/dist/DateTime-Event-Sunrise/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module will computes the time of sunrise and sunset for a given
+date and a given location. The computation uses Paul Schlyter's
+algorithm.
+Actually, the module creates a DateTime::Event::Sunrise object or
+a DateTime::Set object, which are used to generate the sunrise or
+the sunset times for a given location and for any date.
+
+%description -l pl.UTF-8
+Ten moduł oblicza momenty wschodów i zachodów Słońca dla
+podanej daty i lokalizacji. Obliczenia wykorzystują algorytm Paula
+Schlytera. Moduł tworzy obiekty typu DateTime::Event::Sunrise lub
+DateTime::Set.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/DateTime/Event/Sunrise.pm
+%{_mandir}/man3/DateTime::Event::Sunrise.*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-DateTime-Event-Sunrise.git/commitdiff/efd2785a749d11998dbbebcee68a4db6212ab6b7



More information about the pld-cvs-commit mailing list