2010-04-22 11:00:06 +00:00
|
|
|
#
|
2011-11-21 11:49:05 +00:00
|
|
|
# spec file for package perl-Text-Template
|
2010-04-22 11:00:06 +00:00
|
|
|
#
|
2011-11-21 11:49:05 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-22 11:00:06 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Text-Template
|
|
|
|
|
%define cpan_name Text-Template
|
|
|
|
|
Summary: Expand template text with embedded Perl
|
2011-12-14 12:22:08 +00:00
|
|
|
License: GPL-2.0 or Artistic-1.0
|
2010-04-22 11:00:06 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2011-12-14 12:22:08 +00:00
|
|
|
Version: 1.45
|
|
|
|
|
Release: 0
|
2010-04-22 11:00:06 +00:00
|
|
|
Url: http://search.cpan.org/dist/Text-Template/
|
2011-11-21 11:49:05 +00:00
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
2010-04-22 11:00:06 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-05 21:24:29 +00:00
|
|
|
%{perl_requires}
|
2010-04-22 11:00:06 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This is a library for generating form letters, building HTML pages, or
|
|
|
|
|
filling in templates generally. A `template' is a piece of text that
|
|
|
|
|
has little Perl programs embedded in it here and there. When you `fill
|
|
|
|
|
in' a template, you evaluate the little programs and replace them with
|
|
|
|
|
their values.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
# do not perl_process_packlist (noarch)
|
|
|
|
|
# remove .packlist file
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
|
|
|
# remove perllocal.pod file
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Artistic COPYING README
|
|
|
|
|
|
|
|
|
|
%changelog
|