3 %bcond_without tests # do not perform "make test"
7 Summary: File::Signature - Detect changes to a file's content or attributes
8 Summary(pl.UTF-8): File::Signature - wykrywa zmiany zawartości plików albo ich atrybutów
9 Name: perl-File-Signature
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://search.cpan.org/CPAN/authors/id/J/JE/JEREMY/File-Signature-%{version}.tar.gz
16 # Source0-md5: ef5baa7b8fcf50b8c3136810ca6aa964
17 URL: http://search.cpan.org/dist/File-Signature/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module provides a way to monitor files for changes. It implements
27 an object oriented interface to file "signatures." In the case of this
28 module, a signature includes an MD5 digest (other digests may be added
29 later), the file's size, its inode number, its mode, its owner's uid,
30 its group's gid, and its mtime. This information is associated with a
31 file by the file's "pathname." The pathname is considered to be the
32 file's unique identifier. In reality, a file may have more than one
33 pathname, but this module doesn't recognize that. It will simply treat
34 two differing pathnames as two different files, even if they refer to
37 As this module checks whether a file changes over time, a minimal use
38 of it would include the time when the signature was created and a
39 different time when the signature is regenerated and compared with the
40 previous one. The amount of time between these checks is arbitrary.
41 This module makes it easy to save a signature object and then load it
42 and check for consistency at a later time, whether seconds or years
45 %description -l pl.UTF-8
46 Moduł ten wykrywa zmiany zawartości plików albo ich atrybutów.
49 %setup -q -n %{pdir}-%{pnam}-%{version}
52 %{__perl} Makefile.PL \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
61 %{__make} pure_install \
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %{perl_vendorlib}/File/*.pm