- use php(core) as dependency to require php version
[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
38ac05e3 6Version: 5.9.150
c0a0b18e 7Release: 2
ba84953d
ER
8License: LGPL v2.1
9Group: Development/Languages/PHP
c0a0b18e 10Source0: http://downloads.sourceforge.net/tcpdf/tcpdf_%{ver}.zip
38ac05e3 11# Source0-md5: 87bae23323f2f6bca1ec0c2680674307
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
21%define _phpdocdir %{_docdir}/phpdoc
22
23%description
24Generic TCPDF screenshot TCPDF is a PHP class for generating PDF
25documents without requiring external extensions. TCPDF Supports UTF-8,
26Unicode, RTL languages and HTML.
27
28%package phpdoc
29Summary: Online manual for %{name}
30Summary(pl.UTF-8): Dokumentacja online do %{name}
31Group: Documentation
32Requires: php-dirs
33
34%description phpdoc
35Documentation for %{name}.
36
37%description phpdoc -l pl.UTF-8
38Dokumentacja do %{name}.
39
40%prep
41%setup -q -n tcpdf
42
43%{__sed} -i -e 's,\r$,,' *.TXT
44
45%install
46rm -rf $RPM_BUILD_ROOT
47install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
48
49cp -a *.php config fonts images $RPM_BUILD_ROOT%{_appdir}
50
51cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52
53install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
54cp -a doc/* $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
55
4a45d22d
AM
56rm -rf $RPM_BUILD_ROOT%{_appdir}/fonts/*-*
57rm -rf $RPM_BUILD_ROOT%{_appdir}/fonts/utils
58
ba84953d
ER
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc CHANGELOG.TXT README.TXT
65%{_appdir}
66
67%{_examplesdir}/%{name}-%{version}
68
69%files phpdoc
70%defattr(644,root,root,755)
71%{_phpdocdir}/%{name}
This page took 0.050929 seconds and 4 git commands to generate.