Files
perl-CGI-FormBuilder-Source…/perl-CGI-FormBuilder-Source-Perl.spec

69 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-CGI-FormBuilder-Source-Perl
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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-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
Source: %{cpan_name}-%{version}.tar.gz
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