[suggest] perl module HTML::Widget

Mike Weisenborn rpmforge.net at mailmw.org
Fri Mar 7 21:42:17 CET 2008


I have created (using dar-perl.py) this spec file to create a
perl-HTML-Widget package.

The only changes I made to the spec file were:

- I added some prerequisite packages
- I added all the files that needed to be installed (is there an
  easier/shorter way to specify this?)
- I added my name in the revision log, and at the top for "Authority"

Can you please check it out and if you think it's OK, add it to your
repository?

Thanks!

-- 
Mike Weisenborn, Senior Partner
mw at clearbuilt.com 770-886-0443 www.clearbuilt.com

Clearbuilt Technologies - consulting, development and education
for the real estate and construction industries
-------------- next part --------------
# $Id: perl-HTML-Widget.spec,v 1.1 2008/03/07 20:37:29 mdw Exp mdw $
# Authority: mdw
# Upstream: Sebastian Riedel, C<sri at oook.de>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name HTML-Widget

Summary: HTML Widget And Validation Framework
Name: perl-HTML-Widget
Version: 1.11
Release: 2
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/HTML-Widget/

Source: http://www.cpan.org/modules/by-module/HTML/HTML-Widget-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl >= 2:5.8.1 
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl-Test-NoWarnings
BuildRequires: perl-HTML-Tree
BuildRequires: perl-Class-Accessor
BuildRequires: perl-Class-Accessor-Chained
BuildRequires: perl-Class-Data-Accessor
BuildRequires: perl-HTML-Scrubber
BuildRequires: perl-Module-Pluggable-Fast
BuildRequires: perl-Email-Valid
BuildRequires: perl-Date-Calc

%description
HTML Widget And Validation Framework.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

### Clean up docs
find examples/ -type f -exec %{__chmod} a-x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README examples/
%doc %{_mandir}/man3/HTML::Widget.3pm*
%doc %{_mandir}/man3/HTML::Widget::Accessor.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::BlockContainer.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::ASCII.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::All.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::AllOrNone.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Any.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Bool.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Callback.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::CallbackOnce.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Date.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::DateTime.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::DependOn.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Email.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Equal.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::HTTP.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::In.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Integer.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Length.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Maybe.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Number.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Printable.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Range.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Regex.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::SingleValue.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::String.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Constraint::Time.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Container.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Block.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Button.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Checkbox.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Fieldset.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Hidden.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::NullContainer.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Password.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Radio.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::RadioGroup.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Reset.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Select.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Span.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Submit.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Textarea.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Textfield.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Element::Upload.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Error.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Filter.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Filter::Callback.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Filter::HTMLEscape.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Filter::HTMLStrip.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Filter::LowerCase.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Filter::TrimEdges.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Filter::UpperCase.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Filter::Whitespace.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Manual::Developer.3pm.gz
%doc %{_mandir}/man3/HTML::Widget::Result.3pm.gz
%dir %{perl_vendorlib}/HTML/
%dir %{perl_vendorlib}/HTML/Widget/
%{perl_vendorlib}/HTML/Widget.pm
%{perl_vendorlib}/HTML/Widget/Accessor.pm
%{perl_vendorlib}/HTML/Widget/BlockContainer.pm
%{perl_vendorlib}/HTML/Widget/Constraint.pm
%{perl_vendorlib}/HTML/Widget/Constraint/ASCII.pm
%{perl_vendorlib}/HTML/Widget/Constraint/All.pm
%{perl_vendorlib}/HTML/Widget/Constraint/AllOrNone.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Any.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Bool.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Callback.pm
%{perl_vendorlib}/HTML/Widget/Constraint/CallbackOnce.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Date.pm
%{perl_vendorlib}/HTML/Widget/Constraint/DateTime.pm
%{perl_vendorlib}/HTML/Widget/Constraint/DependOn.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Email.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Equal.pm
%{perl_vendorlib}/HTML/Widget/Constraint/HTTP.pm
%{perl_vendorlib}/HTML/Widget/Constraint/In.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Integer.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Length.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Maybe.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Number.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Printable.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Range.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Regex.pm
%{perl_vendorlib}/HTML/Widget/Constraint/SingleValue.pm
%{perl_vendorlib}/HTML/Widget/Constraint/String.pm
%{perl_vendorlib}/HTML/Widget/Constraint/Time.pm
%{perl_vendorlib}/HTML/Widget/Container.pm
%{perl_vendorlib}/HTML/Widget/Element.pm
%{perl_vendorlib}/HTML/Widget/Element/Block.pm
%{perl_vendorlib}/HTML/Widget/Element/Button.pm
%{perl_vendorlib}/HTML/Widget/Element/Checkbox.pm
%{perl_vendorlib}/HTML/Widget/Element/Fieldset.pm
%{perl_vendorlib}/HTML/Widget/Element/Hidden.pm
%{perl_vendorlib}/HTML/Widget/Element/NullContainer.pm
%{perl_vendorlib}/HTML/Widget/Element/Password.pm
%{perl_vendorlib}/HTML/Widget/Element/Radio.pm
%{perl_vendorlib}/HTML/Widget/Element/RadioGroup.pm
%{perl_vendorlib}/HTML/Widget/Element/Reset.pm
%{perl_vendorlib}/HTML/Widget/Element/Select.pm
%{perl_vendorlib}/HTML/Widget/Element/Span.pm
%{perl_vendorlib}/HTML/Widget/Element/Submit.pm
%{perl_vendorlib}/HTML/Widget/Element/Textarea.pm
%{perl_vendorlib}/HTML/Widget/Element/Textfield.pm
%{perl_vendorlib}/HTML/Widget/Element/Upload.pm
%{perl_vendorlib}/HTML/Widget/Error.pm
%{perl_vendorlib}/HTML/Widget/Filter.pm
%{perl_vendorlib}/HTML/Widget/Filter/Callback.pm
%{perl_vendorlib}/HTML/Widget/Filter/HTMLEscape.pm
%{perl_vendorlib}/HTML/Widget/Filter/HTMLStrip.pm
%{perl_vendorlib}/HTML/Widget/Filter/LowerCase.pm
%{perl_vendorlib}/HTML/Widget/Filter/TrimEdges.pm
%{perl_vendorlib}/HTML/Widget/Filter/UpperCase.pm
%{perl_vendorlib}/HTML/Widget/Filter/Whitespace.pm
%{perl_vendorlib}/HTML/Widget/Manual/Developer.pod
%{perl_vendorlib}/HTML/Widget/Result.pm

%changelog
* Fri Mar 07 2008 Mike Weisenborn <mw at clearbuilt.com> - 1.11-2
- fixed up

* Fri Mar 07 2008 Dag Wieers <dag at wieers.com> - 1.11-1
- Initial package. (using DAR)


More information about the users mailing list