- new, never tested
[packages/php-tcpdf.git] / php-tcpdf.spec
CommitLineData
ba84953d
ER
1# TODO
2# - config to /etc
3%define ver %(echo %{version} | tr . _)
4Summary: TCPDF - PHP class for PDF
5Name: php-tcpdf
6Version: 4.0.006
7Release: 0.1
8License: LGPL v2.1
9Group: Development/Languages/PHP
10Source0: http://dl.sourceforge.net/tcpdf/tcpdf_%{ver}.zip
11# Source0-md5: 11ab1ca71836f424a2b7b941d6c3c81b
12URL: http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf
13BuildRequires: rpmbuild(macros) >= 1.268
14Requires(triggerpostun): sed >= 4.0
15Requires: php-common >= 4:5.0
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define _appdir %{php_data_dir}/tcpdf
20%define _phpdocdir %{_docdir}/phpdoc
21
22%description
23Generic TCPDF screenshot TCPDF is a PHP class for generating PDF
24documents without requiring external extensions. TCPDF Supports UTF-8,
25Unicode, RTL languages and HTML.
26
27%package phpdoc
28Summary: Online manual for %{name}
29Summary(pl.UTF-8): Dokumentacja online do %{name}
30Group: Documentation
31Requires: php-dirs
32
33%description phpdoc
34Documentation for %{name}.
35
36%description phpdoc -l pl.UTF-8
37Dokumentacja do %{name}.
38
39%prep
40%setup -q -n tcpdf
41
42%{__sed} -i -e 's,\r$,,' *.TXT
43
44%install
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
47
48cp -a *.php config fonts images $RPM_BUILD_ROOT%{_appdir}
49
50cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51
52install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
53cp -a doc/* $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc CHANGELOG.TXT README.TXT
61%{_appdir}
62
63%{_examplesdir}/%{name}-%{version}
64
65%files phpdoc
66%defattr(644,root,root,755)
67%{_phpdocdir}/%{name}
This page took 0.070687 seconds and 4 git commands to generate.