perl-TimeDate/perl-TimeDate.spec

98 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-TimeDate (Version 1.16)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-TimeDate
License: Artistic License
Group: Development/Libraries/Perl
Provides: TimeDate
Requires: perl = %{perl_version}
AutoReqProv: on
Version: 1.16
Release: 257
Summary: Perl Modules for Time and Date Calculation
Source: TimeDate-%{version}.tar.gz
Patch: TimeDate-deprecated_array_use.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
These modules provide Perl functions for performing time and date
calculations.
Authors:
--------
Graham Barr <gbarr@pobox.com>
%prep
%setup -n TimeDate-%{version}
%patch
%build
perl Makefile.PL
make
make test
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc ChangeLog README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Date
%{perl_vendorlib}/Time
%{perl_vendorarch}/auto/TimeDate
/var/adm/perl-modules/%{name}
%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Mon Jul 21 2003 rommel@suse.de
- update to version 1.16
- using perl_vendorlib and perl_vendorarch instead of
perl_sitearch and perl_archlib
* Wed Jun 18 2003 coolo@suse.de
- package directories
* Sun May 25 2003 ro@suse.de
- remove unpackaged files from buildroot
* Thu Jan 16 2003 rommel@suse.de
- update to version 1.14
- fixed depricated array use in timegm()
* Thu Aug 08 2002 mls@suse.de
- use sitearch macro
* Tue Jul 02 2002 mls@suse.de
- remove race in .packlist generation
* Tue Nov 07 2000 grimmer@suse.de
- added .packlist to file list and removed BuildRoot path
* Tue Nov 07 2000 grimmer@suse.de
- removed BuildRoot path from perllocal.pod
* Mon Nov 06 2000 grimmer@suse.de
- initial version (1.10)