- new, never tested
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 17 Jul 2008 17:56:38 +0000 (17:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-tcpdf.spec -> 1.1

php-tcpdf.spec [new file with mode: 0644]

diff --git a/php-tcpdf.spec b/php-tcpdf.spec
new file mode 100644 (file)
index 0000000..cafd880
--- /dev/null
@@ -0,0 +1,67 @@
+# 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}
This page took 0.067711 seconds and 4 git commands to generate.