SPECS: htmlpurifier.spec - package files, deps

glen glen at pld-linux.org
Thu Oct 18 23:06:53 CEST 2007


Author: glen                         Date: Thu Oct 18 21:06:53 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- package files, deps

---- Files affected:
SPECS:
   htmlpurifier.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/htmlpurifier.spec
diff -u SPECS/htmlpurifier.spec:1.1 SPECS/htmlpurifier.spec:1.2
--- SPECS/htmlpurifier.spec:1.1	Thu Oct 18 22:43:16 2007
+++ SPECS/htmlpurifier.spec	Thu Oct 18 23:06:48 2007
@@ -3,16 +3,21 @@
 Name:		htmlpurifier
 Version:	2.1.2
 Release:	0.1
-License:	GPL
+License:	LGPL v2.1
 Group:		Development/Languages/PHP
 Source0:	http://htmlpurifier.org/releases/%{name}-%{version}.zip
 # Source0-md5:	b5cbe4cb5717c671ab00fb74cbc7f12e
 URL:		http://htmlpurifier.org/
 BuildRequires:	rpmbuild(macros) >= 1.268
-Requires:	php-common
+BuildRequires:	sed >= 4.0
+Requires:	php-common >= 3:4.3.2
+Suggests:	php(iconv)
+Suggests:	php(tidy)
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_phpdir		%{_datadir}/php
+
 %description
 HTML Purifier is a standards-compliant HTML filter library written in
 PHP. HTML Purifier will not only remove all malicious code (better
@@ -23,15 +28,21 @@
 
 %prep
 %setup -q
+%{__sed} -i -e 's,\r$,,' CREDITS INSTALL README TODO WHATSNEW WYSIWYG
+find -name '*.php' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_phpdir}
+cp -a library/* $RPM_BUILD_ROOT%{_phpdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc CREDITS INSTALL README TODO WHATSNEW WYSIWYG
+%{_phpdir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -39,6 +50,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2007/10/18 21:06:48  glen
+- package files, deps
+
 Revision 1.1  2007/10/18 20:43:16  glen
 - new, unfinished
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/htmlpurifier.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list