| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package perl-HTML-Restrict
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2023-05-03 15:18:10 +00:00
										 |  |  | # Copyright (c) 2023 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-08 18:09:58 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-28 13:03:43 +00:00
										 |  |  | %define cpan_name HTML-Restrict
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | Name:           perl-HTML-Restrict
 | 
					
						
							| 
									
										
										
										
											2023-05-03 15:18:10 +00:00
										 |  |  | Version:        3.0.2
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2019-02-08 18:09:58 +00:00
										 |  |  | License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
					
						
							| 
									
										
										
										
											2022-09-28 13:03:43 +00:00
										 |  |  | Summary:        Strip unwanted HTML tags and attributes
 | 
					
						
							|  |  |  | URL:            https://metacpan.org/release/%{cpan_name}
 | 
					
						
							| 
									
										
										
										
											2018-02-16 08:46:18 +00:00
										 |  |  | Source0:        https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-v%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2017-03-06 07:05:28 +00:00
										 |  |  | Source1:        cpanspec.yml
 | 
					
						
							| 
									
										
										
										
											2025-08-12 18:14:35 +02:00
										 |  |  | Source100:      README.md
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | BuildArch:      noarch
 | 
					
						
							|  |  |  | BuildRequires:  perl
 | 
					
						
							|  |  |  | BuildRequires:  perl-macros
 | 
					
						
							|  |  |  | BuildRequires:  perl(Data::Dump)
 | 
					
						
							|  |  |  | BuildRequires:  perl(HTML::Entities)
 | 
					
						
							|  |  |  | BuildRequires:  perl(HTML::Parser)
 | 
					
						
							|  |  |  | BuildRequires:  perl(List::Util) >= 1.33
 | 
					
						
							|  |  |  | BuildRequires:  perl(Moo) >= 1.002000
 | 
					
						
							|  |  |  | BuildRequires:  perl(Sub::Quote)
 | 
					
						
							| 
									
										
										
										
											2017-03-06 07:05:28 +00:00
										 |  |  | BuildRequires:  perl(Test::Fatal)
 | 
					
						
							| 
									
										
										
										
											2022-09-28 13:03:43 +00:00
										 |  |  | BuildRequires:  perl(Test::More) >= 0.96
 | 
					
						
							| 
									
										
										
										
											2019-02-12 05:25:47 +00:00
										 |  |  | BuildRequires:  perl(Type::Tiny) >= 1.002001
 | 
					
						
							| 
									
										
										
										
											2019-03-13 15:31:31 +00:00
										 |  |  | BuildRequires:  perl(Types::Standard) >= 1.000001
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | BuildRequires:  perl(URI)
 | 
					
						
							|  |  |  | BuildRequires:  perl(namespace::clean)
 | 
					
						
							| 
									
										
										
										
											2018-02-16 08:46:18 +00:00
										 |  |  | BuildRequires:  perl(version)
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | Requires:       perl(Data::Dump)
 | 
					
						
							|  |  |  | Requires:       perl(HTML::Entities)
 | 
					
						
							|  |  |  | Requires:       perl(HTML::Parser)
 | 
					
						
							|  |  |  | Requires:       perl(List::Util) >= 1.33
 | 
					
						
							|  |  |  | Requires:       perl(Moo) >= 1.002000
 | 
					
						
							|  |  |  | Requires:       perl(Sub::Quote)
 | 
					
						
							| 
									
										
										
										
											2019-02-12 05:25:47 +00:00
										 |  |  | Requires:       perl(Type::Tiny) >= 1.002001
 | 
					
						
							| 
									
										
										
										
											2019-03-13 15:31:31 +00:00
										 |  |  | Requires:       perl(Types::Standard) >= 1.000001
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | Requires:       perl(URI)
 | 
					
						
							|  |  |  | Requires:       perl(namespace::clean)
 | 
					
						
							| 
									
										
										
										
											2018-02-16 08:46:18 +00:00
										 |  |  | Requires:       perl(version)
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | %{perl_requires}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | This module uses HTML::Parser to strip HTML from text in a restrictive
 | 
					
						
							|  |  |  | manner. By default all HTML is restricted. You may alter the default
 | 
					
						
							|  |  |  | behaviour by supplying your own tag rules.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2022-09-28 13:03:43 +00:00
										 |  |  | %autosetup  -n %{cpan_name}-v%{version}
 | 
					
						
							| 
									
										
										
										
											2023-05-03 15:18:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2019-02-08 18:09:58 +00:00
										 |  |  | perl Makefile.PL INSTALLDIRS=vendor
 | 
					
						
							| 
									
										
										
										
											2022-09-28 13:03:43 +00:00
										 |  |  | %make_build
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2019-02-08 18:09:58 +00:00
										 |  |  | make test
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %perl_make_install
 | 
					
						
							|  |  |  | %perl_process_packlist
 | 
					
						
							|  |  |  | %perl_gen_filelist
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %files -f %{name}.files
 | 
					
						
							| 
									
										
										
										
											2017-03-06 07:05:28 +00:00
										 |  |  | %doc Changes CONTRIBUTORS examples README.md
 | 
					
						
							|  |  |  | %license LICENSE
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:35:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |