summaryrefslogtreecommitdiffstats
path: root/php-htmLawed.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-29 17:14:10 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-29 17:14:10 +0200
commit76b561eaa4a03512a2c649466e66262062788b60 (patch)
tree6bf2fa0e439e4746feb5bd147c54cf03784bd791 /php-htmLawed.spec
parent77090ea2d5914f39b1d6ebeb8f91f964d95f3fe7 (diff)
php-htmLawed: cleanups
Diffstat (limited to 'php-htmLawed.spec')
-rw-r--r--php-htmLawed.spec71
1 files changed, 71 insertions, 0 deletions
diff --git a/php-htmLawed.spec b/php-htmLawed.spec
new file mode 100644
index 0000000..f4483db
--- /dev/null
+++ b/php-htmLawed.spec
@@ -0,0 +1,71 @@
+%global libname htmLawed
+
+Name: php-%{libname}
+Version: 1.1.11
+Release: 1%{?dist}
+Summary: PHP code to purify and filter HTML
+Group: Development/Libraries
+License: LGPLv3+ and GPLv2+
+URL: http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/
+
+# Latest archive is not versionned
+# No license included
+# see http://www.bioinformatics.org/phplabware/forum/viewtopic.php?id=220
+Source0: http://www.bioinformatics.org/phplabware/downloads/%{libname}.zip
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+Requires: php-ctype
+Requires: php-pcre
+
+
+%description
+PHP code to purify and filter HTML
+
+* make HTML markup in text secure and standard-compliant
+* process text for use in HTML, XHTML or XML documents
+* restrict HTML elements, attributes or URL protocols
+ using black or white-lists
+* balance tags, check element nesting, transform deprecated
+ attributes and tags, make relative URLs absolute, etc.
+* fast, highly customizable, well-documented
+* single, 48 kb file
+* simple HTML Tidy alternative
+* free and licensed under LGPL v3 and GPL v2+
+* use to filter, secure and sanitize HTML in blog comments or
+ forum posts, generate XML-compatible feed items from web-page
+ excerpts, convert HTML to XHTML, pretty-print HTML, scrape
+ web-pages, reduce spam, remove XSS code, etc.
+
+
+%prep
+%setup -qc
+
+chmod -x htm*
+
+
+%build
+# nothing to build
+
+
+%install
+rm -rf %{buildroot}
+install -d %{buildroot}%{_datadir}/php/%{libname}
+install -pm 0644 %{libname}.php %{buildroot}%{_datadir}/php/%{libname}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc *README* *TESTCASE* htmLawedTest.php
+%{_datadir}/php/%{libname}
+
+
+%changelog
+* Fri Jun 29 2012 Remi Collet <remi@fedoraproject.org> - 1.1.11-1
+- initial package
+