fcd5037
# remirepo/fedora spec file for php-htmLawed
b28fe1f
#
9e21290
# Copyright (c) 2012-2017 Remi Collet
b28fe1f
# License: CC-BY-SA
fcd5037
# http://creativecommons.org/licenses/by-sa/4.0/
b28fe1f
#
b28fe1f
# Please, preserve the changelog entries
b28fe1f
#
46e3eef
%global libname    htmLawed
e7f36fb
%global libversion 124
e6f2bde
e6f2bde
Name:           php-%{libname}
e7f36fb
Version:        1.2.4
e7f36fb
Release:        1%{?dist}
e6f2bde
Summary:        PHP code to purify and filter HTML
e6f2bde
Group:          Development/Libraries
e6f2bde
License:        LGPLv3 and GPLv2+
e6f2bde
URL:            http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/
e6f2bde
46e3eef
Source0:        http://www.bioinformatics.org/phplabware/downloads/%{libname}%{libversion}.zip
e6f2bde
e6f2bde
BuildArch:      noarch
e6f2bde
e6f2bde
Requires:       php-ctype
e6f2bde
Requires:       php-pcre
e6f2bde
e6f2bde
e6f2bde
%description
e6f2bde
PHP code to purify and filter HTML
e6f2bde
e6f2bde
* make HTML markup in text secure and standard-compliant
e6f2bde
* process text for use in HTML, XHTML or XML documents
e6f2bde
* restrict HTML elements, attributes or URL protocols
e6f2bde
  using black or white-lists
e6f2bde
* balance tags, check element nesting, transform deprecated
e6f2bde
  attributes and tags, make relative URLs absolute, etc.
e6f2bde
* fast, highly customizable, well-documented
e6f2bde
* single, 48 kb file
e6f2bde
* simple HTML Tidy alternative
e6f2bde
* free and licensed under LGPL v3 and GPL v2+
e6f2bde
* use to filter, secure and sanitize HTML in blog comments or
e6f2bde
  forum posts, generate XML-compatible feed items from web-page
e6f2bde
  excerpts, convert HTML to XHTML, pretty-print HTML, scrape
e6f2bde
  web-pages, reduce spam, remove XSS code, etc.
e6f2bde
e6f2bde
e6f2bde
%prep
e6f2bde
%setup -qc
e6f2bde
896c052
chmod -x *
e6f2bde
e6f2bde
e6f2bde
%build
e6f2bde
# nothing to build
e6f2bde
e6f2bde
e6f2bde
%install
e6f2bde
install -d %{buildroot}%{_datadir}/php/%{libname}
e6f2bde
install -pm 0644 %{libname}.php %{buildroot}%{_datadir}/php/%{libname}
e6f2bde
e6f2bde
e6f2bde
%files
323299e
%{!?_licensedir:%global license %%doc}
323299e
%license LICENSE*
323299e
%doc *README* *TESTCASE* htmLawedTest.php
e6f2bde
%{_datadir}/php/%{libname}
e6f2bde
e6f2bde
e6f2bde
%changelog
e7f36fb
* Wed Sep  6 2017 Remi Collet <remi@remirepo.net> - 1.2.4-1
e7f36fb
- Update to 1.2.4
e7f36fb
b282bfc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
b282bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b282bfc
d13d075
* Sat May 27 2017 Remi Collet <remi@remirepo.net> - 1.2.2-1
d13d075
- Update to 1.2.2
d13d075
e53d853
* Tue May 23 2017 Remi Collet <remi@remirepo.net> - 1.2.1-1
e53d853
- Update to 1.2.1
e53d853
9e21290
* Thu Mar 30 2017 Remi Collet <remi@remirepo.net> - 1.2-1
9e21290
- Update to 1.2
9e21290
757459b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.22-2
757459b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
757459b
59f1a40
* Mon Mar  7 2016 Remi Collet <remi@fedoraproject.org> - 1.1.22-1
59f1a40
- update to 1.1.22
59f1a40
c01d4ae
* Tue Mar  1 2016 Remi Collet <remi@fedoraproject.org> - 1.1.21-1
c01d4ae
- update to 1.1.21
c01d4ae
9e92d4a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.20-2
9e92d4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9e92d4a
fcd5037
* Thu Jun 18 2015 Remi Collet <remi@fedoraproject.org> - 1.1.20-1
fcd5037
- update to 1.1.20
fcd5037
928c7ed
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.19-2
928c7ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
928c7ed
87f2e54
* Tue Jan 20 2015 Remi Collet <remi@fedoraproject.org> - 1.1.19-1
87f2e54
- update to 1.1.19
87f2e54
323299e
* Sun Aug 17 2014 Remi Collet <remi@fedoraproject.org> - 1.1.18-1
323299e
- update to 1.1.18 (security)
323299e
- fix license handling
323299e
e400fe8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.17-2
e400fe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e400fe8
6cf2e13
* Thu Mar 27 2014 Remi Collet <remi@fedoraproject.org> - 1.1.17-1
6cf2e13
- update to 1.1.17, improves php 5.5 compatibility
6cf2e13
b28fe1f
* Thu Sep 12 2013 Remi Collet <remi@fedoraproject.org> - 1.1.16-1
b28fe1f
- update to 1.1.16, fix for a potential security vulnerability
b28fe1f
  arising from specialy encoded space characters in URL schemes/protocols
b28fe1f
eda333b
* Fri Aug 23 2013 Remi Collet <remi@fedoraproject.org> - 1.1.15-2
eda333b
- new upstream sources with Licenses included
eda333b
896c052
* Fri Aug 23 2013 Remi Collet <remi@fedoraproject.org> - 1.1.15-1
896c052
- update to 1.1.15
896c052
423324f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.14-3
423324f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
423324f
6ecaadd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.14-2
6ecaadd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6ecaadd
49fba1b
* Thu Aug  9 2012 Remi Collet <remi@fedoraproject.org> - 1.1.14-1
49fba1b
- update to 1.1.14
49fba1b
17ee93a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.12-2
17ee93a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
17ee93a
46e3eef
* Thu Jul 05 2012 Remi Collet <remi@fedoraproject.org> - 1.1.12-1
46e3eef
- update to 1.1.12
46e3eef
- add License files
46e3eef
- fix source0 to permanent URL.
46e3eef
e6f2bde
* Wed Jul 04 2012 Remi Collet <remi@fedoraproject.org> - 1.1.11-2
e6f2bde
- fix License per review comment (#836587)
e6f2bde
e6f2bde
* Fri Jun 29 2012 Remi Collet <remi@fedoraproject.org> - 1.1.11-1
e6f2bde
- initial package
e6f2bde