2011-11-17 15:34:22 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-HTML-FromText
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2006-10-31 15:13:21 +00:00
|
|
|
%define modname HTML-FromText
|
2011-11-17 15:34:22 +00:00
|
|
|
|
2006-10-31 15:13:21 +00:00
|
|
|
Name: perl-%{modname}
|
|
|
|
Version: 2.05
|
|
|
|
Release: 5
|
|
|
|
Summary: Convert plain text to HTML
|
|
|
|
Requires: perl = %{perl_version} perl-Email-Find perl-Exporter-Lite
|
|
|
|
Requires: perl-HTML-Parser
|
2011-11-17 15:34:22 +00:00
|
|
|
BuildRequires: perl perl-Email-Find perl-Exporter-Lite perl-HTML-Parser perl-macros
|
2006-10-31 15:13:21 +00:00
|
|
|
License: GPL/Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
2011-11-17 15:34:22 +00:00
|
|
|
Source: %{modname}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2006-10-31 15:13:21 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
"HTML::FromText" converts plain text to HTML. There are a handfull of options
|
|
|
|
that shape the conversion.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Casey West <casey@geeknest.com>
|
|
|
|
Gareth Rees <garethr@cre.canon.co.uk>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
make
|
|
|
|
# One of these tests fails on SUSE 10.1 and up, but the results are actually
|
|
|
|
# fine. I'm too lazy to fix the test, so I'll just disable it...
|
|
|
|
%if %suse_version < 1010
|
|
|
|
make test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc README Changes ext
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
/usr/bin/text2html
|
|
|
|
%{perl_vendorlib}/HTML/FromText.pm
|
|
|
|
%{perl_vendorarch}/auto/HTML/FromText
|
|
|
|
|
|
|
|
%changelog
|