]> git.pld-linux.org Git - packages/perl-File-Modified.git/commitdiff
- initial revision
authormigo <migo@pld-linux.org>
Mon, 7 Nov 2005 14:26:59 +0000 (14:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-File-Modified.spec -> 1.1

perl-File-Modified.spec [new file with mode: 0644]

diff --git a/perl-File-Modified.spec b/perl-File-Modified.spec
new file mode 100644 (file)
index 0000000..d9ab0c3
--- /dev/null
@@ -0,0 +1,64 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    File
+%define        pnam    Modified
+Summary:       File::Modified - checks intelligently if files have changed
+#Summary(pl):  
+Name:          perl-File-Modified
+Version:       0.07
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 271a991b96ccbdaeb7098272c9f97d51
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+There is another module, File::Signature, which has many similar features,
+so if this module doesn't do what you need, maybe File::Signature does. There
+also is quite some overlap between the two modules, code wise.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/File/*.pm
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
This page took 0.069515 seconds and 4 git commands to generate.