rpms/perl-File-Modified/FC-5 perl-File-Modified.spec, NONE, 1.1 tests.patch, NONE, 1.1 sources, 1.1, 1.2

Chris Weyl (cweyl) fedora-extras-commits at redhat.com
Fri May 4 01:02:53 UTC 2007


Author: cweyl

Update of /cvs/extras/rpms/perl-File-Modified/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12848

Modified Files:
	sources 
Added Files:
	perl-File-Modified.spec tests.patch 
Log Message:
pseudo-branch of perl-File-Modified to FC-5


--- NEW FILE perl-File-Modified.spec ---
Name:           perl-File-Modified
Version:        0.07
Release:        4%{?dist}
Summary:        Checks intelligently if files have changed
License:        GPL or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/File-Modified/
Source0:        http://www.cpan.org/authors/id/C/CO/CORION/File-Modified-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# make TODO tests fail properly :)
Patch0:         tests.patch

# core
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Digest::MD5)
# tests
BuildRequires:  perl(Digest::MD2)
BuildRequires:  perl(Digest::SHA1)
BuildRequires:  perl(Test::Exception)

%description
The Modified module is intended as a simple method for programs to detect
whether configuration files (or modules they rely on) have changed. There
are currently two methods of change detection implemented, mtime and MD5.
The MD5 method will fall back to use timestamps if the Digest::MD5 module
cannot be loaded.

%prep
%setup -q -n File-Modified-%{version}
%patch0

# source cleanup
find . -type f -exec chmod -c -x {} \;
sed -i 's/\r//' README bug.txt

# hey, you guys shouldn't be here!
# http://rt.cpan.org/Ticket/Display.html?id=26843
find . -type f -name .cvsignore -exec rm -v {} \;
sed -i '/^.*cvsignore$/d' MANIFEST

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf %{buildroot}

make pure_install PERL_INSTALL_ROOT=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
# we expect two tests to be skipped -- perl(Digest) is _always_ installed
make test

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
# note: example/ deliberately left out -- useless
%doc bug.txt Changes MANIFEST.skip README t/
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Thu May 03 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.07-4
- bump

* Mon Apr 30 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.07-3
- comments, keep Makefile.PL from complaining about missing .cvsignore files

* Sun Apr 29 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.07-2
- patch tests to enable successful failure of one TODO test :)

* Tue Apr 10 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.07-1
- Specfile autogenerated by cpanspec 1.70.

tests.patch:

--- NEW FILE tests.patch ---
--- t/test.t.orig	2007-04-29 14:21:59.437035109 -0700
+++ t/test.t	2007-04-29 14:35:42.247571286 -0700
@@ -7,6 +7,7 @@
 #########################
 
 use Test::More;
+use Test::Exception;
 use vars qw($have_file_temp $have_digest @methods @digest_methods);
 
 BEGIN {
@@ -122,6 +123,7 @@
 
   {
     package File::Modified::Signature::Complicated;
+    use base 'File::Modified::Signature';
 
     sub signature {
       my ($self) = @_;
@@ -130,9 +132,10 @@
     };
   };
 
-  my $d = File::Modified->new(method => 'Complex',files => ['does_not_need_to_exist']);
+  my $d = File::Modified->new(method => 'Complicated',files => ['does_not_need_to_exist']);
 
-  ok(! $d->changed);
+  lives_and {$d->changed, 0} "don't die on complex comparisons"; 
+  #lives_ok {$d->changed} "don't die on complex comparisons"; 
 };
 
 SKIP: {


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-File-Modified/FC-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 May 2007 00:51:10 -0000	1.1
+++ sources	4 May 2007 01:02:17 -0000	1.2
@@ -0,0 +1 @@
+271a991b96ccbdaeb7098272c9f97d51  File-Modified-0.07.tar.gz




More information about the fedora-extras-commits mailing list