SPECS: perl-File-Rotate-Backup.spec (NEW) - initial, Version 0.13, ...
agaran
agaran at pld-linux.org
Tue Dec 25 19:06:50 CET 2007
Author: agaran Date: Tue Dec 25 18:06:50 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial, Version 0.13, rel 0.1 (i didn't tested that one yet), builds and tests here
---- Files affected:
SPECS:
perl-File-Rotate-Backup.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-File-Rotate-Backup.spec
diff -u /dev/null SPECS/perl-File-Rotate-Backup.spec:1.1
--- /dev/null Tue Dec 25 19:06:50 2007
+++ SPECS/perl-File-Rotate-Backup.spec Tue Dec 25 19:06:45 2007
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir File
+%define pnam Rotate-Backup
+Summary: File::Rotate::Backup - Make backups of multiple directories and rotate them on unix.
+#Summary(pl):
+Name: perl-File-Rotate-Backup
+Version: 0.13
+Release: 0.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: 64b978e360764350356a1b8aa09a6655
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module will make backups and rotate them according to your
+specification. It creates a backup directory based on the
+file_prefix you specify and the current time. It then copies the
+directories you specified in the call to new() to that backup
+directory. Then a tar'd and compressed file is created from that
+directory. By default, bzip2 is used for compression.
+
+This module has only been tested on Linux and Solaris.
+
+The only external programs used are tar and a compression
+program. Copies and deletes are implemented internally.
+
+
+# %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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc INSTALL README
+%{perl_vendorlib}/File/Rotate/*.pm
+%{perl_vendorlib}/File/Rotate/Backup
+%{_mandir}/man3/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007-12-25 18:06:45 agaran
+- initial, Version 0.13, rel 0.1 (i didn't tested that one yet), builds and tests here
+
================================================================
More information about the pld-cvs-commit
mailing list