Browse Source

first import

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5665 ec354946-7b23-47d6-9f5a-488ba84defc7
yasumichi 12 years ago
parent
commit
83f7c4201c
1 changed files with 77 additions and 0 deletions
  1. 77 0
      p/perl-Log-Dispatch-FileRotate/perl-Log-Dispatch-FileRotate-vl.spec

+ 77 - 0
p/perl-Log-Dispatch-FileRotate/perl-Log-Dispatch-FileRotate-vl.spec

@@ -0,0 +1,77 @@
+%define	pkgname	Log-Dispatch-FileRotate
+
+# Basic Information
+Name:		perl-%{pkgname}
+Version:	1.19
+Release:	1%{?_dist_release}
+License:	Artistic or GPL
+Group:		Development/Libraries
+Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MARKPF/%{pkgname}-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+BuildArch:	noarch
+
+Vendor:		Project Vine
+Distribution:	Vine Linux
+Packager:	yasumichi
+
+Summary:	Log::Dispatch::FileRotate - Log to files that archive/rotate themselves
+#Summary(ja):	
+
+# Dependency
+Requires:       perl
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+BuildRequires:  perl
+
+%description
+This module provides a simple object for logging to files under the
+Log::Dispatch::* system, and automatically rotating them according to
+different constraints. This is basically a Log::Dispatch::File wrapper
+with additions. To that end the arguments
+
+        name, min_level, filename and  mode
+
+behave the same as Log::Dispatch::File. So see its man page (perldoc
+Log::Dispatch::File)
+
+#%%description -l ja
+
+%prep
+%setup -q -n Log-Dispatch-FileRotate-1.19
+
+%build
+perl Makefile.PL
+%{__make}
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__make} install DESTDIR=${RPM_BUILD_ROOT}
+
+find $RPM_BUILD_ROOT%{_prefix} -type f -print |
+        sed "s@^$RPM_BUILD_ROOT@@g" |
+	grep -v ^%{_mandir} |
+	grep -v perllocal.pod |
+	grep -v "\.packlist" > %{name}.files
+
+if [ "$(cat %{name}.files)X" = "X" ] ; then
+	echo "ERROR: EMPTY FILE LIST"
+	exit -1
+fi
+
+# remove unnecessary files.
+%{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
+find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
+find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+
+%files -f %{name}.files
+%defattr(-,root,root)
+%doc Changes README
+
+%changelog
+* Thu Jan 26 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.19-1
+- initial build for Vine Linux