2011-01-14 11:30:04 +00:00
|
|
|
#
|
2011-11-17 15:20:16 +00:00
|
|
|
# spec file for package perl-CGI-FormBuilder-Source-Perl
|
2011-01-14 11:30:04 +00:00
|
|
|
#
|
2011-11-17 15:20:16 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-01-14 11:30:04 +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/
|
|
|
|
#
|
|
|
|
|
2011-11-17 15:20:16 +00:00
|
|
|
|
|
|
|
|
2011-01-14 11:30:04 +00:00
|
|
|
Name: perl-CGI-FormBuilder-Source-Perl
|
|
|
|
Version: 0.01
|
|
|
|
Release: 1
|
|
|
|
License: CHECK(GPL+ or Artistic)
|
|
|
|
%define cpan_name CGI-FormBuilder-Source-Perl
|
|
|
|
Summary: read FormBuilder config from Perl syntax files
|
|
|
|
Url: http://search.cpan.org/dist/CGI-FormBuilder-Source-Perl/
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
#Source: http://www.cpan.org/authors/id/E/EV/EVDB/CGI-FormBuilder-Source-Perl-%{version}.tar.gz
|
2011-11-17 15:20:16 +00:00
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
2011-01-14 11:30:04 +00:00
|
|
|
BuildRequires: perl(CGI::FormBuilder)
|
|
|
|
BuildRequires: perl(File::Slurp)
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
Requires: perl(CGI::FormBuilder)
|
|
|
|
Requires: perl(File::Slurp)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module allows you to specify the config for a the CGI::FormBuilder
|
|
|
|
manpage object using Perl syntax. The contents of the config file will be
|
|
|
|
'eval'ed and the hash ref returned will be used as the config for the
|
|
|
|
object.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%doc Changes TODO
|
|
|
|
|
|
|
|
%changelog
|