]> git.pld-linux.org Git - packages/perl-Date-Simple.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 31 Oct 2003 21:38:54 +0000 (21:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Date-Simple.spec -> 1.1

perl-Date-Simple.spec [new file with mode: 0644]

diff --git a/perl-Date-Simple.spec b/perl-Date-Simple.spec
new file mode 100644 (file)
index 0000000..e110b41
--- /dev/null
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Date
+%define        pnam    Simple
+Summary:       Date::Simple - a simple date object
+Summary(pl):   Date::Simple - prosty obiekt daty
+Name:          perl-Date-Simple
+Version:       1.03
+Release:       1
+License:       GPL v2+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 07cdc013b4f5b9c0c76757164404d0b6
+BuildRequires: perl-devel >= 5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module may be used to create simple date objects. It only handles
+dates within the range of Unix time. It will only allow the creation
+of objects for valid dates. Attempting to create an invalid date will
+return undef.
+
+%description -l pl
+Ten modu³ mo¿e byæ u¿ywany do tworzenia prostych obiektów daty.
+Obs³uguje tylko daty z uniksowego przedzia³u czasu. Pozwala stworzyæ
+obiekty tylko dla poprawnych dat - przy próbie stworzenia b³êdnej daty
+zwróci undef.
+
+%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 README
+%{perl_vendorlib}/Date/Simple.pm
+%{_mandir}/man3/*
This page took 0.085806 seconds and 4 git commands to generate.