Chris Weyl 0af1333
Name:           perl-File-Modified
Chris Weyl 0af1333
Version:        0.07
653f332
Release:        5%{?dist}
Chris Weyl 0af1333
Summary:        Checks intelligently if files have changed
653f332
License:        GPL+ or Artistic
Chris Weyl 0af1333
Group:          Development/Libraries
Chris Weyl 0af1333
URL:            http://search.cpan.org/dist/File-Modified/
Chris Weyl 0af1333
Source0:        http://www.cpan.org/authors/id/C/CO/CORION/File-Modified-%{version}.tar.gz
Chris Weyl 0af1333
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl 0af1333
BuildArch:      noarch
Chris Weyl 0af1333
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl 0af1333
Chris Weyl 0af1333
# make TODO tests fail properly :)
Chris Weyl 0af1333
Patch0:         tests.patch
Chris Weyl 0af1333
Chris Weyl 0af1333
# core
Chris Weyl 0af1333
BuildRequires:  perl(ExtUtils::MakeMaker)
Chris Weyl 0af1333
BuildRequires:  perl(Test::More)
Chris Weyl 0af1333
BuildRequires:  perl(Digest::MD5)
Chris Weyl 0af1333
# tests
Chris Weyl 0af1333
BuildRequires:  perl(Digest::MD2)
Chris Weyl 0af1333
BuildRequires:  perl(Digest::SHA1)
Chris Weyl 0af1333
BuildRequires:  perl(Test::Exception)
Chris Weyl 0af1333
Chris Weyl 0af1333
%description
Chris Weyl 0af1333
The Modified module is intended as a simple method for programs to detect
Chris Weyl 0af1333
whether configuration files (or modules they rely on) have changed. There
Chris Weyl 0af1333
are currently two methods of change detection implemented, mtime and MD5.
Chris Weyl 0af1333
The MD5 method will fall back to use timestamps if the Digest::MD5 module
Chris Weyl 0af1333
cannot be loaded.
Chris Weyl 0af1333
Chris Weyl 0af1333
%prep
Chris Weyl 0af1333
%setup -q -n File-Modified-%{version}
Chris Weyl 0af1333
%patch0
Chris Weyl 0af1333
Chris Weyl 0af1333
# source cleanup
Chris Weyl 0af1333
find . -type f -exec chmod -c -x {} \;
Chris Weyl 0af1333
sed -i 's/\r//' README bug.txt
Chris Weyl 0af1333
Chris Weyl 0af1333
# hey, you guys shouldn't be here!
Chris Weyl 0af1333
# http://rt.cpan.org/Ticket/Display.html?id=26843
Chris Weyl 0af1333
find . -type f -name .cvsignore -exec rm -v {} \;
Chris Weyl 0af1333
sed -i '/^.*cvsignore$/d' MANIFEST
Chris Weyl 0af1333
Chris Weyl 0af1333
%build
Chris Weyl 0af1333
%{__perl} Makefile.PL INSTALLDIRS=vendor
Chris Weyl 0af1333
make %{?_smp_mflags}
Chris Weyl 0af1333
Chris Weyl 0af1333
%install
Chris Weyl 0af1333
rm -rf %{buildroot}
Chris Weyl 0af1333
Chris Weyl 0af1333
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl 0af1333
Chris Weyl 0af1333
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
Chris Weyl 0af1333
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Chris Weyl 0af1333
Chris Weyl 0af1333
%{_fixperms} %{buildroot}/*
Chris Weyl 0af1333
Chris Weyl 0af1333
%check
Chris Weyl 0af1333
# we expect two tests to be skipped -- perl(Digest) is _always_ installed
Chris Weyl 0af1333
make test
Chris Weyl 0af1333
Chris Weyl 0af1333
%clean
Chris Weyl 0af1333
rm -rf %{buildroot}
Chris Weyl 0af1333
Chris Weyl 0af1333
%files
Chris Weyl 0af1333
%defattr(-,root,root,-)
Chris Weyl 0af1333
# note: example/ deliberately left out -- useless
Chris Weyl 0af1333
%doc bug.txt Changes MANIFEST.skip README t/
Chris Weyl 0af1333
%{perl_vendorlib}/*
Chris Weyl 0af1333
%{_mandir}/man3/*
Chris Weyl 0af1333
Chris Weyl 0af1333
%changelog
653f332
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.07-5
653f332
- rebuild for new perl
653f332
Chris Weyl 40eb412
* Thu May 03 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07-4
Chris Weyl 40eb412
- bump
Chris Weyl 40eb412
Chris Weyl 0af1333
* Mon Apr 30 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07-3
Chris Weyl 0af1333
- comments, keep Makefile.PL from complaining about missing .cvsignore files
Chris Weyl 0af1333
Chris Weyl 0af1333
* Sun Apr 29 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07-2
Chris Weyl 0af1333
- patch tests to enable successful failure of one TODO test :)
Chris Weyl 0af1333
Chris Weyl 0af1333
* Tue Apr 10 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07-1
Chris Weyl 0af1333
- Specfile autogenerated by cpanspec 1.70.