subpackage examples
[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
c0a0b18e 15Requires: php(core) >= 5.0
ba84953d
ER
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define _appdir %{php_data_dir}/tcpdf
ba84953d
ER
20
21%description
22Generic TCPDF screenshot TCPDF is a PHP class for generating PDF
23documents without requiring external extensions. TCPDF Supports UTF-8,
24Unicode, RTL languages and HTML.
25
6c2cbd52
ER
26%package examples
27Summary: TCPDF example programs
28Summary(pl.UTF-8): TCPDF programy przykładowe
29Group: Development/Libraries
30Requires: %{name} = %{version}-%{release}
31
32%description examples
33TCPDF example programs.
34
35%description examples -l pl.UTF-8
36TCPDF - przykładowe programy.
37
ba84953d
ER
38%prep
39%setup -q -n tcpdf
3995e872 40%undos *.TXT
ba84953d 41
68532b3a 42%build
3995e872
ER
43for a in %{_datadir}/fonts/TTF/DejaVuS*; do
44 php tools/tcpdf_addfont.php -t TrueTypeUnicode -i $a
68532b3a
AM
45done
46
ba84953d
ER
47%install
48rm -rf $RPM_BUILD_ROOT
49install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
50
11626367 51cp -a *.php config fonts include $RPM_BUILD_ROOT%{_appdir}
ba84953d
ER
52cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53
3995e872 54rm -r $RPM_BUILD_ROOT%{_appdir}/fonts/*-*
4a45d22d
AM
55rm -rf $RPM_BUILD_ROOT%{_appdir}/fonts/utils
56
ba84953d
ER
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
62%doc CHANGELOG.TXT README.TXT
63%{_appdir}
6c2cbd52
ER
64
65%files examples
66%defattr(644,root,root,755)
ba84953d 67%{_examplesdir}/%{name}-%{version}
This page took 0.077294 seconds and 4 git commands to generate.