Browse Source

Import spec file.

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4919 ec354946-7b23-47d6-9f5a-488ba84defc7
yasumichi 12 years ago
parent
commit
3799638eaf
1 changed files with 73 additions and 0 deletions
  1. 73 0
      p/perl-Test-UseAllModules/perl-Test-UseAllModules-vl.spec

+ 73 - 0
p/perl-Test-UseAllModules/perl-Test-UseAllModules-vl.spec

@@ -0,0 +1,73 @@
+%define	pkgname	Test-UseAllModules
+
+# Basic Information
+Name:		perl-%{pkgname}
+Version:	0.13
+Release:	1%{?_dist_release}
+License:	Artistic or GPL
+Group:		Development/Libraries
+Source0:	http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Vendor:		Project Vine
+Distribution:	Vine Linux
+Packager:	yasumichi
+
+Summary:	do use_ok() for all the MANIFESTed modules
+#Summary(ja):	ここに日本語で概要を記述してください
+
+# Dependency
+Requires:       perl
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+BuildRequires:  perl
+
+%description
+I'm sick of writing 00_load.t (or something like that) that'll do use_ok()
+for every module I write. I'm sicker of updating 00_load.t when I add
+another file to the distro. This module reads MANIFEST to find modules to be
+tested and does use_ok() for each of them. Now all you have to do is update
+MANIFEST. You don't have to modify the test any more (hopefully).
+
+#%%description -l ja
+#ここに日本語で詳細を記述してください。
+
+%prep
+%setup -q -n Test-UseAllModules-0.13
+
+%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
+%{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Test/UseAllModules/.packlist
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+
+%files -f %{name}.files
+%defattr(-,root,root)
+%doc Changes README
+%{_mandir}/*/*
+
+
+%changelog
+* Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.13-1
+- initial build for Vine Linux