File perl-Set-Crontab.spec of Package perl-Set-Crontab
#
# spec file for package perl-Set-Crontab (Version 1.02)
#
# Copyright (c) 2008 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-Set-Crontab
Version: 1.02
Release: 1
Requires: perl = %{perl_version}
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic License
Url: http://cpan.org/modules/by-module/Set
Summary: Expand crontab(5)-style integer lists
Source0: http://cpan.org/modules/by-module/Set/Set-Crontab-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Set::Crontab parses crontab-style lists of integers and defines some
utility functions to make it easier to deal with them.
Authors:
--------
Abhijit Menon-Sen <ams@wiw.org>
%prep
%setup -q -n Set-Crontab-%{version}
%build
# replace rest of /usr/local/bin/perl with /usr/bin/perl
for f in `find . -type f -exec grep -l /usr/local/bin/perl \{\} \;` ; do
rm -f tmp
sed -e "s:^#!.*/usr/local/bin/perl:#!/usr/bin/perl:g" $f > tmp
mv -f tmp $f
done
perl Makefile.PL
make
%check
make test
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Set
%{perl_vendorarch}/auto/Set
/var/adm/perl-modules/%{name}
%changelog
* Wed Sep 10 2008 anicka@suse.cz
- update to 1.02
* Relicensed on request from the old Artistic License to "the same
terms as Perl itself" (i.e. new Artistic/GPL).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 04 2005 dmueller@suse.de
- add norootforbuild
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Tue Jul 15 2003 mjancar@suse.cz
- adapt to perl-5.8.1
- use %%perl_process_packlist
* Wed Jun 18 2003 coolo@suse.de
- package directories
* Tue May 20 2003 mjancar@suse.cz
- remove unpackaged files
* Tue Jul 02 2002 mls@suse.de
- remove race in .packlist generation
* Fri Aug 03 2001 rvasice@suse.cz
- initial package release (version 1.00)