cleanups
[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
ba84953d
ER
26%prep
27%setup -q -n tcpdf
3995e872 28%undos *.TXT
ba84953d 29
68532b3a 30%build
3995e872
ER
31for a in %{_datadir}/fonts/TTF/DejaVuS*; do
32 php tools/tcpdf_addfont.php -t TrueTypeUnicode -i $a
68532b3a
AM
33done
34
ba84953d
ER
35%install
36rm -rf $RPM_BUILD_ROOT
37install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
38
11626367 39cp -a *.php config fonts include $RPM_BUILD_ROOT%{_appdir}
ba84953d
ER
40cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
41
3995e872 42rm -r $RPM_BUILD_ROOT%{_appdir}/fonts/*-*
4a45d22d
AM
43rm -rf $RPM_BUILD_ROOT%{_appdir}/fonts/utils
44
ba84953d
ER
45%clean
46rm -rf $RPM_BUILD_ROOT
47
48%files
49%defattr(644,root,root,755)
50%doc CHANGELOG.TXT README.TXT
51%{_appdir}
ba84953d 52%{_examplesdir}/%{name}-%{version}
This page took 0.048842 seconds and 4 git commands to generate.