Logoj0ke.net Open Build Service > Projects > home:jg:php5-extensions > php5-pdflib > Changes
Sign Up | Log In

Problem getting expanded diff: bad link: patch 'project.diff' does not exist

Changes of Revision 4

[-] Added php5-pdflib.spec
x
 
1
@@ -0,0 +1,90 @@
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: php-pdflib
8
+Version: %{pkg_version}
9
+Release: 0
10
+#
11
+License: PHP
12
+Group: Productivity/Networking/Web/Servers
13
+#
14
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
15
+BuildRequires: php-devel PDFlib-Lite-devel gcc gcc-c++
16
+Requires: php = %{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: php5-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
+* Sun Mar 22 2009 Carsten Schoene <cs@linux-administrator.com>
79
+- new release 2.1.7
80
+ - fixed [PECL-BUG] Bug #16066 [NEW]: Missing php_pdflib.h in archive
81
+
82
+* Fri Mar 20 2009 Carsten Schoene <cs@linux-administrator.com>
83
+- new upstream release 2.1.6
84
+ - added PDF_utf32_to_utf16()
85
+ - improved show_boxed() function
86
+ - fixed GD_SUPPORT (not supported)
87
+
88
+* Mon Mar 24 2008 Carsten Schoene <cs@linux-administrator.com>
89
+- new upstream release 2.1.5
90
+ - switched to package.xml 2.0 Format
91
+ - improved exception handling
92