Jelajahi Sumber

first import

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6885 ec354946-7b23-47d6-9f5a-488ba84defc7
yasumichi 12 tahun lalu
induk
melakukan
2c16929cb3
1 mengubah file dengan 73 tambahan dan 0 penghapusan
  1. 73 0
      p/perl-HTML-SimpleParse/perl-HTML-SimpleParse-vl.spec

+ 73 - 0
p/perl-HTML-SimpleParse/perl-HTML-SimpleParse-vl.spec

@@ -0,0 +1,73 @@
+%define	pkgname	HTML-SimpleParse
+
+# Basic Information
+Name:		perl-%{pkgname}
+Version:	0.12
+Release:	1%{?_dist_release}
+# COPYING  などを参照して License を修正してください。
+License:	Artistic or GPL
+Group:		Development/Libraries
+Source0:	http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/%{pkgname}-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+BuildArch:	noarch
+
+Vendor:		Project Vine
+Distribution:	Vine Linux
+Packager:	yasumichi
+
+Summary:	HTML::SimpleParse - a bare-bones HTML parser
+Summary(ja):	ここに日本語で概要を記述してください。
+
+# Dependency
+Requires:       perl
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+BuildRequires:  perl
+
+%description
+This module is a simple HTML parser. It is similar in concept to
+HTML::Parser, but it differs from HTML::TreeBuilder in a couple of important
+ways.
+
+%description -l ja
+このモジュールは、簡易 HTML パーサーです。HTML::Parser のコンセプトに似てい
+ますが、2、3 の重要な点で HTML::TreeBuilder と異なっています。
+
+%prep
+%setup -q -n HTML-SimpleParse-0.12
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+%{__make} %{?_smp_mflags}
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
+
+# remove unnecessary files.
+find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
+find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
+find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+# generate file list
+find $RPM_BUILD_ROOT%{_prefix} -type f -print |
+        sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
+
+if [ "$(cat %{name}.files)X" = "X" ] ; then
+	echo "ERROR: EMPTY FILE LIST"
+	exit -1
+fi
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+
+%files -f %{name}.files
+%defattr(-,root,root)
+%doc Changes README
+
+%changelog
+* Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-1
+- initial build for Vine Linux