SPECS: php-tcpdf.spec (NEW) - new, never tested

glen glen at pld-linux.org
Thu Jul 17 19:56:44 CEST 2008


Author: glen                         Date: Thu Jul 17 17:56:44 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, never tested

---- Files affected:
SPECS:
   php-tcpdf.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/php-tcpdf.spec
diff -u /dev/null SPECS/php-tcpdf.spec:1.1
--- /dev/null	Thu Jul 17 19:56:44 2008
+++ SPECS/php-tcpdf.spec	Thu Jul 17 19:56:38 2008
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+# TODO
+# - config to /etc
+%define		ver	%(echo %{version} | tr . _)
+Summary:	TCPDF - PHP class for PDF
+Name:		php-tcpdf
+Version:	4.0.006
+Release:	0.1
+License:	LGPL v2.1
+Group:		Development/Languages/PHP
+Source0:	http://dl.sourceforge.net/tcpdf/tcpdf_%{ver}.zip
+# Source0-md5:	11ab1ca71836f424a2b7b941d6c3c81b
+URL:		http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires(triggerpostun):	sed >= 4.0
+Requires:	php-common >= 4:5.0
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_appdir		%{php_data_dir}/tcpdf
+%define		_phpdocdir		%{_docdir}/phpdoc
+
+%description
+Generic TCPDF screenshot TCPDF is a PHP class for generating PDF
+documents without requiring external extensions. TCPDF Supports UTF-8,
+Unicode, RTL languages and HTML.
+
+%package phpdoc
+Summary:	Online manual for %{name}
+Summary(pl.UTF-8):	Dokumentacja online do %{name}
+Group:		Documentation
+Requires:	php-dirs
+
+%description phpdoc
+Documentation for %{name}.
+
+%description phpdoc -l pl.UTF-8
+Dokumentacja do %{name}.
+
+%prep
+%setup -q -n tcpdf
+
+%{__sed} -i -e 's,\r$,,' *.TXT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
+
+cp -a *.php config fonts images $RPM_BUILD_ROOT%{_appdir}
+
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
+cp -a doc/* $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.TXT README.TXT
+%{_appdir}
+
+%{_examplesdir}/%{name}-%{version}
+
+%files phpdoc
+%defattr(644,root,root,755)
+%{_phpdocdir}/%{name}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008/07/17 17:56:38  glen
+- new, never tested
================================================================


More information about the pld-cvs-commit mailing list