File php5-pdflib.spec of Package php5-pdflib
x
1
# norootforbuild
2
%define pkg_name pdflib
3
%define pkg_version 2.1.10
4
%define php_version %(php-config --version 2>/dev/null)
5
#
6
Name: php-pdflib
7
Version: %{pkg_version}
8
Release: 0
9
#
10
License: PHP
11
Group: Productivity/Networking/Web/Servers
12
#
13
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
14
BuildRequires: php-devel PDFlib-Lite-devel gcc gcc-c++
15
Requires: php = %{php_version}
16
#
17
URL: http://pecl.php.net/
18
Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz
19
#make sure the extension understands lib64, most dont.
20
Patch0: php5-pdflib-lib64.patch
21
Summary: Creating PDF on the fly with the PDFlib library
22
23
%description
24
25
26
Authors:
27
---------
28
29
Rainer Schaaf <rjs@pdflib.com>
30
Uwe Steinmann <uwe@steinmann.cx>
31
32
%debug_package
33
34
%prep
35
%setup -n %{pkg_name}-%{version}
36
%patch0
37
38
%{__mkdir} %{name}
39
40
%build
41
/usr/bin/phpize
42
pushd %{name}
43
44
CFLAGS="%{optflags} -fno-strict-aliasing"
45
CXXFLAGS="%{optflags} -fno-strict-aliasing"
46
%if 0%{?suse_version} > 1000
47
CFLAGS="$CFLAGS -fstack-protector"
48
CXXFLAGS="$CXXFLAGS -fstack-protector"
49
%endif
50
51
export CFLAGS
52
export CXXFLAGS
53
54
../configure --with-pdflib=%{_usr} --with-libdir=%{_lib}
55
56
%{__make} %{?jobs:-j%jobs}
57
popd
58
59
%install
60
%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
61
%{__mkdir} -p %{buildroot}%{_sysconfdir}/php.d
62
echo "; comment out next line to disable pdf extension in php" > %{buildroot}%{_sysconfdir}/php.d/pdf.ini
63
echo "extension = pdf.so" >> %{buildroot}%{_sysconfdir}/php.d/pdf.ini
64
65
66
%clean
67
%{__rm} -rf %{buildroot}
68
69
%files
70
%defattr(-,root,root,-)
71
%{_libdir}/php/modules/pdf.so
72
%config(noreplace) %{_sysconfdir}/php.d/pdf.ini
73
74
%doc CREDITS
75
76
%changelog
77
* Fri Apr 12 2013 Carsten Schoene <cs@linux-administrator.com> - 2.1.10-1
78
- update to release 2.1.10
79
- fix startup crash on PHP 5.4
80
81
- changes in release 2.1.9
82
- added support for PHP 5.4
83
84
* Sun Jul 25 2010 Carsten Schoene <cs@linux-administrator.com> - 2.1.8-1
85
- update to release 2.1.8
86
87
* Sun Mar 22 2009 Carsten Schoene <cs@linux-administrator.com>
88
- new release 2.1.7
89
- fixed [PECL-BUG] Bug #16066 [NEW]: Missing php_pdflib.h in archive
90
91
* Fri Mar 20 2009 Carsten Schoene <cs@linux-administrator.com>
92
- new upstream release 2.1.6
93
- added PDF_utf32_to_utf16()
94
- improved show_boxed() function
95
- fixed GD_SUPPORT (not supported)
96
97
* Mon Mar 24 2008 Carsten Schoene <cs@linux-administrator.com>
98
- new upstream release 2.1.5
99
- switched to package.xml 2.0 Format
100
- improved exception handling
101