Logoj0ke.net Open Build Service > Projects > internetx:php4:extensions > php4-pdflib > Changes
Sign Up | Log In

Changes of Revision 2

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