- up to 6.2.6
[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
406b91a1 6Version: 6.2.6
11626367 7Release: 1
ba84953d
ER
8License: LGPL v2.1
9Group: Development/Languages/PHP
c0a0b18e 10Source0: http://downloads.sourceforge.net/tcpdf/tcpdf_%{ver}.zip
406b91a1 11# Source0-md5: 9185f0ca4ecc65fb8a1dc115ab96b52b
a13238bd 12URL: http://www.tcpdf.org/
ba84953d 13BuildRequires: rpmbuild(macros) >= 1.268
ec0c9764 14BuildRequires: unzip
ba84953d 15Requires(triggerpostun): sed >= 4.0
c0a0b18e 16Requires: php(core) >= 5.0
ba84953d
ER
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define _appdir %{php_data_dir}/tcpdf
ba84953d
ER
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
ba84953d
ER
27%prep
28%setup -q -n tcpdf
29
30%{__sed} -i -e 's,\r$,,' *.TXT
31
68532b3a
AM
32%build
33for a in /usr/share/fonts/TTF/DejaVuS*; do
34 php tools/tcpdf_addfont.php -t TrueTypeUnicode -i $a;
35done
36
ba84953d
ER
37%install
38rm -rf $RPM_BUILD_ROOT
39install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
40
11626367 41cp -a *.php config fonts include $RPM_BUILD_ROOT%{_appdir}
ba84953d
ER
42
43cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44
4a45d22d
AM
45rm -rf $RPM_BUILD_ROOT%{_appdir}/fonts/*-*
46rm -rf $RPM_BUILD_ROOT%{_appdir}/fonts/utils
47
ba84953d
ER
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
53%doc CHANGELOG.TXT README.TXT
54%{_appdir}
55
56%{_examplesdir}/%{name}-%{version}
This page took 0.088801 seconds and 4 git commands to generate.