]>
Commit | Line | Data |
---|---|---|
021f7bae | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
d6053a9d | 4 | |
021f7bae | 5 | %define pdir File |
6 | %define pnam Modified | |
d6053a9d | 7 | %include /usr/lib/rpm/macros.perl |
021f7bae | 8 | Summary: File::Modified - checks intelligently if files have changed |
fc9b9a6b | 9 | Summary(pl.UTF-8): File::Modified - inteligentne sprawdzanie, czy pliki uległy zmianie |
021f7bae | 10 | Name: perl-File-Modified |
11 | Version: 0.07 | |
0c180b89 | 12 | Release: 2 |
021f7bae | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 271a991b96ccbdaeb7098272c9f97d51 | |
d6053a9d | 18 | URL: http://search.cpan.org/dist/File-Modified/ |
021f7bae | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
e4bfe6f4 JB |
25 | The Modified module is intended as a simple method for programs to |
26 | detect whether configuration files (or modules they rely on) have | |
27 | changed. There are currently two methods of change detection | |
28 | implemented, mtime and MD5. The MD5 method will fall back to use | |
29 | timestamps if the Digest::MD5 module cannot be loaded. | |
021f7bae | 30 | |
e4bfe6f4 JB |
31 | There is another module, File::Signature, which has many similar |
32 | features, so if this module doesn't do what you need, maybe | |
33 | File::Signature does. There also is quite some overlap between the two | |
34 | modules, code wise. | |
021f7bae | 35 | |
79b18930 JR |
36 | %description -l pl.UTF-8 |
37 | Moduł Modified ma służyć programom za prostą metodę sprawdzania czy | |
38 | pliki konfiguracyjne (lub moduły na których polegają) się zmieniły. | |
39 | Aktualnie są zaimplementowane dwie metody sprawdzania zmian: mtime i | |
40 | MD5. Metoda MD5 będzie działać jako mtime jeśli moduł Digest::MD5 | |
41 | będzie niedostępny. | |
e4bfe6f4 | 42 | |
79b18930 JR |
43 | Istnieje inny moduł - File::Signature - mający wiele podobnych cech, |
44 | więc jeśli ten moduł nie jest tym co potrzeba, może File::Signature | |
45 | jest. Moduły te pokrywają się częściowo także pod względem kodu. | |
021f7bae | 46 | |
47 | %prep | |
48 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
49 | ||
50 | %build | |
51 | %{__perl} Makefile.PL \ | |
52 | INSTALLDIRS=vendor | |
53 | %{__make} | |
54 | ||
55 | %{?with_tests:%{__make} test} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
64 | cp -a example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc Changes README | |
72 | %{perl_vendorlib}/File/*.pm | |
73 | %{_mandir}/man3/* | |
74 | %{_examplesdir}/%{name}-%{version} |