[packages/perl-Business-Hours] - initial

arekm arekm at pld-linux.org
Tue Mar 22 10:37:13 CET 2016


commit 7b9a93c9f4b28b7097a9210830b10eec52c266e3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Mar 22 10:36:58 2016 +0100

    - initial

 perl-Business-Hours.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
---
diff --git a/perl-Business-Hours.spec b/perl-Business-Hours.spec
new file mode 100644
index 0000000..6b61014
--- /dev/null
+++ b/perl-Business-Hours.spec
@@ -0,0 +1,54 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Business
+%define		pnam	Hours
+%include	/usr/lib/rpm/macros.perl
+Summary:	Business::Hours - Calculate business hours in a time period
+Name:		perl-Business-Hours
+Version:	0.12
+Release:	1
+License:	unknown
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Business/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	2dab93f41af8382ccb3ad1ce215d2d03
+URL:		http://search.cpan.org/dist/Business-Hours/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Set::IntSpan) >= 1.12
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is a simple tool for calculating business hours in a time
+period. Over time, additional functionality will be added to make it
+easy to calculate the number of business hours between arbitrary
+dates.
+
+%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} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Business/Hours.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Business-Hours.git/commitdiff/7b9a93c9f4b28b7097a9210830b10eec52c266e3



More information about the pld-cvs-commit mailing list