subpackage dejavu fonts
[packages/php-tcpdf.git] / php-tcpdf.spec
CommitLineData
ba84953d
ER
1# TODO
2# - config to /etc
00bed017 3%define pkgname tcpdf
ba84953d
ER
4%define ver %(echo %{version} | tr . _)
5Summary: TCPDF - PHP class for PDF
00bed017 6Name: php-%{pkgname}
406b91a1 7Version: 6.2.6
11626367 8Release: 1
ba84953d
ER
9License: LGPL v2.1
10Group: Development/Languages/PHP
c0a0b18e 11Source0: http://downloads.sourceforge.net/tcpdf/tcpdf_%{ver}.zip
406b91a1 12# Source0-md5: 9185f0ca4ecc65fb8a1dc115ab96b52b
a13238bd 13URL: http://www.tcpdf.org/
c6973e2d
ER
14BuildRequires: %{php_name}-cli
15BuildRequires: %{php_name}-pcre
00bed017 16BuildRequires: %{php_name}-zlib
853004dc 17BuildRequires: fonts-TTF-DejaVu
ba84953d 18BuildRequires: rpmbuild(macros) >= 1.268
ec0c9764 19BuildRequires: unzip
c0a0b18e 20Requires: php(core) >= 5.0
ba84953d
ER
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
00bed017 24%define _appdir %{php_data_dir}/%{pkgname}
ba84953d
ER
25
26%description
27Generic TCPDF screenshot TCPDF is a PHP class for generating PDF
28documents without requiring external extensions. TCPDF Supports UTF-8,
29Unicode, RTL languages and HTML.
30
02a10897
ER
31%package fonts-dejavu
32Summary: DejaVu fonts for TCPDF
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35
36%description fonts-dejavu
37This package allow to use system DejaVu font faces in TCPDF.
38
6c2cbd52
ER
39%package examples
40Summary: TCPDF example programs
41Summary(pl.UTF-8): TCPDF programy przykładowe
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
44
45%description examples
46TCPDF example programs.
47
48%description examples -l pl.UTF-8
49TCPDF - przykładowe programy.
50
ba84953d 51%prep
02a10897
ER
52%setup -qc
53mv tcpdf/* .
3995e872 54%undos *.TXT
ba84953d 55
00bed017 56# remove bundled fonts
02a10897 57rm -r fonts/dejavu-fonts-ttf-* fonts/freefont-* fonts/ae_fonts_*
00bed017 58
68532b3a 59%build
00bed017
ER
60for a in %{_fontsdir}/TTF/DejaVuS*; do
61 %{__php} tools/tcpdf_addfont.php -t TrueTypeUnicode -i $a
68532b3a
AM
62done
63
ba84953d
ER
64%install
65rm -rf $RPM_BUILD_ROOT
00bed017 66install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_examplesdir}/%{name}-%{version}}
ba84953d 67
11626367 68cp -a *.php config fonts include $RPM_BUILD_ROOT%{_appdir}
00bed017 69install -p tools/tcpdf_addfont.php $RPM_BUILD_ROOT%{_bindir}/tcpdf_addfont
ba84953d
ER
70cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71
ba84953d
ER
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(644,root,root,755)
77%doc CHANGELOG.TXT README.TXT
00bed017 78%attr(755,root,root) %{_bindir}/tcpdf_addfont
02a10897
ER
79%dir %{_appdir}
80%{_appdir}/config
81%{_appdir}/include
82%{_appdir}/tcpdf*.php
83
84%dir %{_appdir}/fonts
85%{_appdir}/fonts/aealarabiya*
86%{_appdir}/fonts/aefurat*
87%{_appdir}/fonts/cid0*
88%{_appdir}/fonts/courier*
89%{_appdir}/fonts/freemono*
90%{_appdir}/fonts/freesans*
91%{_appdir}/fonts/freeserif*
92%{_appdir}/fonts/helvetica*
93%{_appdir}/fonts/hysmyeongjostdmedium*
94%{_appdir}/fonts/kozgopromedium*
95%{_appdir}/fonts/kozminproregular*
96%{_appdir}/fonts/msungstdlight*
97%{_appdir}/fonts/pdfacourier*
98%{_appdir}/fonts/pdfahelvetica*
99%{_appdir}/fonts/pdfasymbol*
100%{_appdir}/fonts/pdfatimes*
101%{_appdir}/fonts/pdfazapfdingbats*
102%{_appdir}/fonts/stsongstdlight*
103%{_appdir}/fonts/symbol*
104%{_appdir}/fonts/times*
105%{_appdir}/fonts/uni2cid_*
106%{_appdir}/fonts/zapfdingbats*
107
108%files fonts-dejavu
109%defattr(644,root,root,755)
110%{_appdir}/fonts/dejavusans*
111%{_appdir}/fonts/dejavuserif*
6c2cbd52
ER
112
113%files examples
114%defattr(644,root,root,755)
ba84953d 115%{_examplesdir}/%{name}-%{version}
This page took 0.228997 seconds and 4 git commands to generate.