BR fonts-TTF-DejaVu
[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/
853004dc 13BuildRequires: fonts-TTF-DejaVu
ba84953d 14BuildRequires: rpmbuild(macros) >= 1.268
ec0c9764 15BuildRequires: unzip
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
6c2cbd52
ER
27%package examples
28Summary: TCPDF example programs
29Summary(pl.UTF-8): TCPDF programy przykładowe
30Group: Development/Libraries
31Requires: %{name} = %{version}-%{release}
32
33%description examples
34TCPDF example programs.
35
36%description examples -l pl.UTF-8
37TCPDF - przykładowe programy.
38
ba84953d
ER
39%prep
40%setup -q -n tcpdf
3995e872 41%undos *.TXT
ba84953d 42
68532b3a 43%build
3995e872
ER
44for a in %{_datadir}/fonts/TTF/DejaVuS*; do
45 php tools/tcpdf_addfont.php -t TrueTypeUnicode -i $a
68532b3a
AM
46done
47
ba84953d
ER
48%install
49rm -rf $RPM_BUILD_ROOT
50install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
51
11626367 52cp -a *.php config fonts include $RPM_BUILD_ROOT%{_appdir}
ba84953d
ER
53cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54
3995e872 55rm -r $RPM_BUILD_ROOT%{_appdir}/fonts/*-*
4a45d22d
AM
56rm -rf $RPM_BUILD_ROOT%{_appdir}/fonts/utils
57
ba84953d
ER
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc CHANGELOG.TXT README.TXT
64%{_appdir}
6c2cbd52
ER
65
66%files examples
67%defattr(644,root,root,755)
ba84953d 68%{_examplesdir}/%{name}-%{version}
This page took 0.053964 seconds and 4 git commands to generate.