SPECS: perl-Dir-Split.spec (NEW) - initial, builds here, rel 1

agaran agaran at pld-linux.org
Mon Jan 14 01:01:18 CET 2008


Author: agaran                       Date: Mon Jan 14 00:01:18 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, builds here, rel 1

---- Files affected:
SPECS:
   perl-Dir-Split.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Dir-Split.spec
diff -u /dev/null SPECS/perl-Dir-Split.spec:1.1
--- /dev/null	Mon Jan 14 01:01:18 2008
+++ SPECS/perl-Dir-Split.spec	Mon Jan 14 01:01:13 2008
@@ -0,0 +1,78 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	autodeps	# don't BR packages needed only for resolving deps
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Dir
+%define	pnam	Split
+Summary:	Dir::Split - Split files of a directory to subdirectories
+#Summary(pl.UTF-8):	
+Name:		perl-Dir-Split
+Version:	0.79
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Dir/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	9ff9e6e91c1b6f6ed4bb908179489c3c
+# generic URL, check or change before uncommenting
+#URL:		http://search.cpan.org/dist/Dir-Split/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Dir::Split moves files to either numbered or characteristic subdirectories.
+
+Numeric splitting is an attempt to gather files from a source directory and
+split them to numbered subdirectories within a target directory. Its purpose is
+to automate the archiving of a great amount of files, that are likely to be indexed
+by numbers.
+
+Characteristic splitting allows indexing by using leading characters of filenames.
+While numeric splitting is being characterised by dividing file amounts, characteristic
+splitting tries to keep up the contentual recognition of data.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes INSTALL README TODO
+%{perl_vendorlib}/Dir/*.pm
+#%%{perl_vendorlib}/Dir/Split
+%{_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  2008-01-14 00:01:13  agaran
+- initial, builds here, rel 1
+
================================================================


More information about the pld-cvs-commit mailing list