File perl-HTML-Tidy.spec of Package perl-HTML-Tidy (Revision ebed42590526b25283b3ab3fc403036c)
Currently displaying revision ebed42590526b25283b3ab3fc403036c , Show latest
116
1
#
2
# spec file for package perl-HTML-Tidy
3
#
4
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via http://bugs.opensuse.org/
16
#
17
18
19
Name: perl-HTML-Tidy
20
Version: 1.60
21
Release: 1.19
22
%define cpan_name HTML-Tidy
23
Summary: (X)HTML validation in a Perl object
24
License: Artistic-2.0
25
Group: Development/Libraries/Perl
26
Url: http://search.cpan.org/dist/HTML-Tidy/
27
Source0: https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/%{cpan_name}-%{version}.tar.gz
28
Source1: cpanspec.yml
29
BuildRoot: %{_tmppath}/%{name}-%{version}-build
30
BuildRequires: perl
31
BuildRequires: perl-macros
32
BuildRequires: perl(Test::More) >= 0.98
33
Requires: perl(Test::More) >= 0.98
34
%{perl_requires}
35
# MANUAL BEGIN
36
BuildRequires: libtidyp-devel
37
BuildRequires: perl(Alien::Tidyp)
38
Requires: perl(LWP::Simple)
39
BuildRequires: perl(LWP::Simple)
40
BuildRequires: perl(Test::Exception)
41
# MANUAL END
42
43
%description
44
'HTML::Tidy' is an HTML checker in a handy dandy object. It's meant as a
45
replacement for HTML::Lint. If you're currently an HTML::Lint user looking
46
to migrate, see the section Converting from HTML::Lint.
47
48
%prep
49
%setup -q -n %{cpan_name}-%{version}
50
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
51
52
%build
53
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
54
%{__make} %{?_smp_mflags}
55
56
%check
57
%{__make} test
58
59
%install
60
%perl_make_install
61
%perl_process_packlist
62
%perl_gen_filelist
63
64
%files -f %{name}.files
65
%defattr(-,root,root,755)
66
%doc Changes README.markdown
67
68
%changelog
69
* Sun Oct 8 2017 coolo@suse.com
70
- updated to 1.60
71
see /usr/share/doc/packages/perl-HTML-Tidy/Changes
72
1.60 Wed Sep 13 10:34:35 CDT 2017
73
====================================
74
No functionality changes. Fixes failing tests caused by differing
75
versions of the tidy library. Thanks, Rufus Cable.
76
1.58 Sat May 27 00:03:51 CDT 2017
77
====================================
78
No functionality changes. This just fixes some tests. This will probably
79
be the last release that uses the old tidy/tidyp. There is a new tidy
80
that supports HTML 5 and I'm going to start working on making HTML::Tidy
81
use that.
82
[FIXES]
83
Failing tests on Windows. Thanks, Klaus Baldermann. (GH #11, GH #23)
84
[INTERNALS]
85
Added more tests. Thanks, Hunter McMillen.
86
* Thu Sep 26 2013 pgajdos@suse.com
87
- updated to 1.56
88
* webtidy's version statement now shows the version number of
89
the underlying tidyp library.
90
* Fixed an undef warning in parse(). Thanks, Vladimir Timofeev.
91
* utf8 was never encoded correctly. Thanks, Vladimir Timofeev
92
and Alistair Francis.
93
* The ->parse() method would sometimes return false even though
94
everything worked fine. Thanks, @sebaer.
95
* Thu Nov 29 2012 pgajdos@suse.com
96
- license Artistic-2.0
97
* Tue Apr 12 2011 coolo@opensuse.org
98
- updated to 1.54
99
* Fixed incorrect calls to croak(). Thanks, Steve Grazzini.
100
- update to 1.52
101
* First release since the major overhaul that relies on libtidyp.
102
* Tue Nov 30 2010 coolo@novell.com
103
- switch to perl_requires macro
104
* Mon Nov 29 2010 coolo@novell.com
105
- remove /var/adm/perl-modules
106
* Sun Nov 28 2010 coolo@novell.com
107
- remove .packlist file
108
* Tue Jul 31 2007 pgajdos@suse.cz
109
- moved from OBS, version 1.08
110
* Fri Jun 22 2007 sierkb@gmx.de
111
- small changes to the spec file
112
- 1.08, don't fail on failing test suite for now, see
113
http://rt.cpan.org/Ticket/Display.html?id=26875
114
* Wed Jun 20 2007 suse-tux@gmx.de
115
- initial build
116